Repository navigation
ci: a pull request tests one platform and one Python, in shards, with a cached native library - #519
Conversation
… a cached native library A push to a pull request made me wait a median of 34 minutes. The stages ran one after the other, each could wait for a shared runner, and the two long ones (the native image build and each test suite) were single jobs. A pull request now tests Linux x86-64 on Python 3.14 only. Each suite is cut into shards that run side by side (2 for arcadedb-jvm, 3 for arcadedb; scripts/shard_tests.py), the native library of linux-x86_64 is restored from a cache keyed on everything it is built from, the examples run in the full tier only, and the summary and crash report jobs that would queue again after the last leg are skipped in the fast tier. Dependabot and ci:full pull requests, main, the nightly run, manual runs and releases keep their legs; a release never reads or writes the cache. Closes #517
The weekly engine snapshot run uses the legs of a pull request, which are now Python 3.14 in three shards with no pyver leg. Also pin that it is not treated as a pull request of the fast tier.
|
Waiting time from real runs, counted from the creation of the runs to the end of the last job:
I have not run the full tier on this branch. The push to |
|
After the merge, from real runs. The first three pull requests of other work that ran on the new tier, all green, with the native library restored from the cache that
The median wait of the three is 9.3 minutes. The full tier on |
What does this PR do?
It brings the checks of an ordinary pull request from a median wait of about 34 minutes (see the issue) towards 10 minutes. Only the fast tier of a pull request changes.
main, the nightly and weekly runs, manual runs of all legs, pull requests withci:full, Dependabot pull requests, and releases keep their platforms and Python versions.arcadedb-jvmtests, Linux x86-64arcadedbparity suite, Linux x86-64arcadedbpyversubsetmain, nightly, manual,ci:full)Test Summary,Examples Test Summary,Examples summary,Report parity crashesscripts/shard_tests.pysplits the test files, so every file runs in exactly one shard. A shard uploads nonative-passed-*marker.native/outsidenative/wheel/,test-native.yml, the engine release, the GraalVM archive, and the build settings. There is no partial match. Only a fast-tier pull request restores it. A release neither reads nor writes it, and a snapshot engine is never cached.mainstill opens or updates the report issue (report-red-main.ymllistens to the same workflows).Related issues
Closes #517
Performance changes
None in the packages. The CI timings are in a comment below.
Docs
development/ci.adoc(the two tiers, the shards, the cache) andCONTRIBUTING.md.Checklist
uvx pre-commit run --files <changed files>passes (without the two container hooks,shellcheckandhadolint, which the CI runs)