Continuous integration
Each package has one test workflow and one release workflow:
| Package | Test | Release |
|---|---|---|
|
|
|
|
|
|
The release workflows call the test workflows (workflow_call) and then publish; see Release. release-notes.yml runs after both of them have succeeded for a tag and creates the GitHub Release (and closes the milestone of a final release). Two workflows test the arcadedb-jvm package: test-jvm.yml builds a wheel and runs the unit tests, and test-python-examples.yml runs the scripts in examples/. Both build the wheel once for each platform, on a native runner of that platform (Build arcadedb-jvm wheel (<platform>) and Build wheel for examples (<platform>)), and install that one file into each Python they test. test-native.yml builds and tests the arcadedb (native) package; see Native build.
The workflow docs.yml builds these docs (the Antora component in docs/) as a site of its own with docs/antora-playbook.yml, on every pull request and push to main that changes docs/, and attaches the site as the docs-site artifact. Download it from the run to read a page as it will render. The test workflows ignore docs/** and *.adoc, so for a docs-only pull request this job is the only check. A warning fails it: a broken xref:, a misspelled {attribute}, an AsciiDoc syntax problem. Pages link into the main ArcadeDB manual as {arcadedb-docs-url}/<page>, not with an arcadedb:: xref, which the component on its own cannot resolve. To build the site locally, run npx -p @antora/[email protected] -p @antora/[email protected] antora docs/antora-playbook.yml from the repository root and open docs/build/site/index.html.
The package supports four platforms and four Python versions (3.11 to 3.14). That is 16 combinations. The organisation shares one runner limit with ArcadeData/arcadedb, so each macOS or Windows job delays the upstream jobs too, and not every combination runs.
Fast tier and full tier
The CI has two tiers.
-
The fast tier runs on every pull request: the static checks, and the builds and tests of both packages on one platform and one Python, Linux x86-64 with the newest Python the full suites run on (3.14). It waits for no macOS, Windows or arm64 runner, and it runs no example job, also when the pull request changes the examples: they are the slowest jobs (they build the vectors of a dataset and run 30 scripts), so they run in the full tier.
-
The full tier runs on a push to
main, on the nightly run, on a manual run and on a release. It tests all four platforms. A release tests every platform on every Python version.
A pull request runs the legs of a push to main when it carries the label ci:full. Add the label, then push a commit or choose "Re-run all jobs" on the test workflows of the pull request: scripts/ci_tier.py reads the labels again at the start of each run, so no new commit is needed. Use the label for a change that can behave differently on another platform or Python: file paths, processes and signals, the wheel build, the native library, the examples or their runner, a workflow file. To go back to the fast tier, remove the label and push a commit. A pull request that Dependabot opened always runs the full tier, because the hourly job merges it without a reader; nobody waits for it. When the labels cannot be read, the pull request runs the full tier.
The nightly runs start between 03:00 and 04:00 UTC, when the shared runners are least busy (issue 442 has the measurement of the queue for each hour).
A problem that only another platform, another Python or an example shows is found on main, after the merge, or in the nightly run. The badges of test-jvm.yml, test-native.yml and test-python-examples.yml at the top of the README show the last run of each workflow on main, GitHub sends a mail to the person who merged, and report-red-main.yml opens or updates an issue. Fix or revert before the next release. The release workflows run the full matrix again and publish nothing when a leg is red.
The summary jobs (Test Summary, Examples Test Summary, Examples summary) check the legs that a run of the full tier started: a leg that failed or was cancelled makes them red. A leg that the tier does not start is not in the run, so nothing waits for it. A pull request of the fast tier shows the three as skipped, and also the job Report parity crashes: each would wait for a runner of its own after the last leg, and every leg is a check of the pull request already. Test Summary runs in the fast tier too when the first job of its workflow failed.
How long a pull request waits
The checks of a pull request are meant to finish in about 10 minutes, and in 15 at the very most, counted from the creation of the runs to the end of the last job (issue 517 has the timings). Work that takes longer belongs on a push to main, the nightly or weekly run, or a run on demand. These things keep the fast tier short:
-
One platform and one Python for both packages.
-
Each suite is cut into shards that run side by side: two for
arcadedb-jvm(the option--shard I/Noftests/conftest.py) and three forarcadedb(the same option ofnative/wheel/parity_wheel.py).scripts/shard_tests.pymakes the split from the list of test files, so every file runs in exactly one shard, and balances it with the seconds of the longest files. A new test file needs no entry there. A run that is not sharded (main, nightly, a manual run of all legs, a release) runs each suite whole in one job. -
The native library is cached (see The cached native library). Without a hit, the wait is set by the image build, about 11 minutes, and the shards after it.
The time a job waits for a runner comes on top and can be longer than the job: the runners are shared with ArcadeData/arcadedb.
The cached native library
Most pull requests change no file that the native image is built from, so a new build gives the same library. test-native.yml keeps the library of linux-x86_64, with its build log and the Maven jars that the notices check reads, in the GitHub Actions cache. The key names everything the image is built from: the files of native/ outside native/wheel/ (pom.xml, the Maven wrapper, src/, scripts/), test-native.yml itself, the engine release, the GraalVM archive and the heap and extra options of the leg. The wheel is built from the checkout in every run, so a change of the Python sources, the tests or native/wheel/ is in it.
-
Only a pull request of the fast tier restores the cache. There is no partial match: a different key means a new image build.
-
A push to
main, the nightly run, a pull request withci:fulland a release always build the image. A release neither reads nor writes the cache. ASNAPSHOTengine (the weekly run) is never cached, because it moves. -
A push to
mainand the nightly run save the library for all pull requests. A pull request that had to build one saves it for its own next push. The library is saved after all gates of the build job passed. -
A wheel built from a restored library records the commit of its checkout as
SOURCE_COMMIT. The Java glue in the library is the same, because the key covers it. -
A new build input outside the files above must be added to the key.
tests/test_select_native_matrix.pyfails when a new file or directory appears undernative/.
One wheel for each platform
The wheel of arcadedb-jvm is tagged py3-none-<platform> (setup.py), like the native wheel: it carries a JRE for its platform, but nothing in it is compiled against CPython. So a Python version is a test, not a build. test-jvm.yml has two jobs:
-
Build arcadedb-jvm wheel (<platform>)builds the wheel once for each platform and uploads it aswheel-<platform>.scripts/verify_wheel_tag.pyfails the build when the wheel is notpy3-none-<platform>. -
Test arcadedb (<platform>, Python <version>)downloads that wheel and runs the tests on one Python in a throwawayuv run --no-project --with "<wheel>[test]" python -m pytestenvironment. It builds nothing. The release publishes these same four files.
The requires-python of the package is >=3.11,<3.15. The wheel tag no longer keeps an installer off Python 3.15, so the cap does it. JPype has no 3.15 wheel yet; remove the cap, and add 3.15 to the matrix, when it has one.
What runs when
The script scripts/select_matrix.py chooses the combinations. The first job of each workflow, Download ArcadeDB JARs, runs it and passes the result to the next jobs: the test legs and the platforms to build (--wheels).
| Event | Unit tests (Test arcadedb) |
Examples (Test Python Examples) |
|---|---|---|
Pull request (the fast tier) |
1 leg in 2 shards: |
None. |
Push to |
10 legs: |
All 16 combinations. |
A manual run (dispatch), a release |
All 16 combinations. |
All 16 combinations. |
The unit tests run one leg in two shards on a pull request (the newest Python on linux/amd64), 10 legs on a push to main and the nightly run (all Python versions on one Linux platform, the oldest and the newest elsewhere), and all 16 combinations on a release and a manual run, like the native package: what is published is tested on every platform and Python it claims. release-jvm.yml calls the workflow with release: true, which the matrix step turns into the event release, because in a called workflow github.event_name is the caller’s tag push. A pull request runs 7 jobs in these two workflows: 2 test jobs, 1 wheel build, the two Download ArcadeDB JARs jobs (the one of test-python-examples.yml only chooses the legs, and downloads nothing when there is none), Bandit security scan and Dependency floor audit. The build and the example job of test-python-examples.yml and the two summary jobs show as skipped. A push, the nightly run and a pull request that asks for the full tier run 40: 26 test jobs (10 and 16), 8 wheel builds (4 for each workflow), the same four other jobs and the two summary jobs. A manual run and a release run 46, with the 6 extra unit-test legs.
The names of the test jobs are Test arcadedb (<platform>, Python <version>), with , shard I/N after the Python on a sharded leg. A check of the full tier keeps its history. No check is required by a branch rule today. If one becomes required, choose a job that runs on every pull request: a required check that only the full tier starts would never report on a pull request, and a skipped summary job counts as passed.
release-jvm.yml expects exactly four wheels, one for each platform, all py3-none. It checks the count, the tags, the sizes and the names before it publishes. The nightly run also tests against the newest arcadedata/arcadedb:latest image.
Which engine each workflow tests
The two packages get their engine from different places, so between releases they are tested against different engines:
-
test-jvm.ymlandtest-python-examples.ymltake the engine jars from thearcadedata/arcadedbimage tag,latestby default.latestis upstream’s newest snapshot and moves nightly, which is why both workflows also run every night. -
test-native.ymllinksDEV_ENGINE, the newest release on Maven Central, unless the tag is a final or post version (then it links the release the tag is named after), theengineinput of a manual run says otherwise, or it is the weekly snapshot run below. -
test-native-snapshot.ymlruns once a week, on Saturday, and by hand. It callstest-native.ymlwithengine-snapshot: true, which links the floatingA.B.C-SNAPSHOTof the base ofDEFAULT_VERSION, upstream’s current snapshot, so that an engine change that breaks the native image or the tests shows up between releases. It runs the legs of a pull request only (linux-x86_64), is never skipped, has its own concurrency group, and publishes nothing. A red run opens the issue "Full CI is red on main: Test native (engine snapshot)". After upstream releases that base, the run follows to the next one only with the dev-engine bump below.
A JVM wheel that must carry the same engine as a release, such as the wheel of an A/B or of a release gate, comes from a manual run of test-jvm.yml with the release’s engine tag: gh workflow run "Test JVM (arcadedb-jvm)" -R ArcadeData/arcadedb-python --ref <branch> -f arcadedb-tag=26.11.1 (the engine of 26.11.1 and its .postN releases). Without the input the jars come from latest, the wheel carries another engine than the release, and a comparison with the release measures the engine as well as the change. The native build needs no such input, because it links a release engine by default.
A manual run of test-native.yml with a devN version may set engine to A.B.C-SNAPSHOT: native/pom.xml then resolves the engine jars from the Sonatype snapshot repository (snapshots on, releases off, so a release version still comes from Maven Central alone). The notices comparison of build_wheel.py is skipped for such a run, because THIRD_PARTY_NOTICES.md names a release and its jars. The plan job refuses a SNAPSHOT engine for a final or post version. A release run links a snapshot only for a .devN tag, and only the one pinned in scripts/dev_engine_pin.json (see Release); every other snapshot is refused, so a final or post release never depends on one. The legs input of a manual run chooses all four platforms (full, the default) or the one platform and one Python of a pull request, in shards (pull-request). A sharded leg uploads no native-passed-* marker.
The dev-engine bump after each release, described in Release, moves DEV_ENGINE to the new release and closes the gap until upstream publishes the next one.
Other rules
-
A pull request that changes only documentation (
docs/**,*.adoc,CLAUDE.md,examples/README.md,LICENSE*) runs nothing. -
A draft pull request skips the platform jobs. Marking it ready for review starts them.
-
The label
ci:fullchanges the legs of the workflows that the paths of the pull request start. It does not start a workflow that the paths leave out. -
A new push to a pull request cancels the run it replaces. A run on
mainis never cancelled. -
A JVM crash in an example leaves a HotSpot
hs_err_pid<pid>.log.test-python-examples.ymluploads these files as the artifactsjvm-crash-logdir-<platform>-py<version>andjvm-crash-cwd-<platform>-py<version>(issue 352); read them before you re-run a red example leg.
Repository automation
These workflows follow ArcadeData/arcadedb and need no secret. Issues and pull requests carry labels and a release milestone (one open milestone per version, with a due date).
| Workflow | What it does |
|---|---|
|
Labels a new issue from rules: the package from the bug form ( |
|
Adds |
|
On merge, puts the pull request and the issues it closes into the open milestone with the earliest due date, unless they have one. Dependabot pull requests are skipped. |
|
Every hour, squash-merges Dependabot pull requests that are patch or minor updates, mergeable, and have a non-empty list of checks that all succeeded. Majors and grouped updates stay open. Logic in |
|
Fails a pull request that adds a dependency with a known vulnerability (moderate or worse) or a GPL, AGPL or SSPL licence. Policy in |
|
Fails when a |
|
After |
|
Assigns every new issue and pull request to the maintainer when it is opened. Nothing from a pull request head is checked out or run. |
To close a release, close its milestone and open the next one with its due date: assign-milestone.yml picks the open milestone that is due first.
Engine changes to review
The workflow engine-watch.yml reports what changed in the upstream engine (ArcadeData/arcadedb) that may need a change in the bindings, in one issue titled "Engine changes to review". It runs scripts/engine_watch.py, a script that needs only the standard library, git and gh api, and no LLM API.
-
It runs on Monday at 05:23 UTC. On the other days it runs at the same time and does nothing unless upstream published a release in the last 48 hours (a release of another repository cannot start a workflow). It also runs by hand: with
dry_runit writes nothing to GitHub and puts the full text into the job summary, and only such a run acceptssinceanduntilto choose the range. -
It reports public methods, constructors, enum constants and nested types that were added, removed, changed or deprecated in the classes the bindings wrap,
GlobalConfigurationsettings, index types, and SQL statements, keywords, functions and methods. Each line names the upstream pull request or commit and the file. Other merged pull requests that touched the same files are listed in a collapsed block and never open an issue on their own. -
A new method has a row of its own only when it is abstract and on an interface the bindings implement, or on a class they name. All other new methods are one count.
-
One section lists new and removed exception classes below a class that
exceptions.pynames, or belowNeedRetryException. -
It also reports an engine class that is gone and that the native image configuration (
reachability-metadata.jsonand the.propertiesfiles) names. -
The column "Used" means only that the sources of the bindings hold the name, so check it before you rely on it. For a method, the class (or a type below it) and the method name must both match.
-
The list of wrapped classes is derived from the sources on every run:
JClass,JImplementsandJPackageinsrc/arcadedb, the imports and full names insrc/javaandnative/src/main/java, their supertypes, and the engine types returned by methods under names the bindings call. -
The mark, the last reviewed engine commit, is a hidden comment in the issue, so nothing is committed to the repository. Only issues written by
github-actions[bot]are read. Before the first issue the scan starts at4a91847a1(2026-11-06). -
When nothing relevant changed, nothing is written.
-
It does not see a change of behavior inside a method, openCypher, a wire protocol, or a class that the bindings do not reach.
-
It holds
contents: readandissues: writeonly, has no pull request trigger, and reads the engine without building or running it. Upstream links go throughredirect.github.com, so the issue leaves no "mentioned this" line on upstream pull requests. -
An issue text that is too long for GitHub is cut. The full text is in the job summary and in the run artifact
engine-watch-report, which is kept for 30 days.
To handle the issue, decide for each line whether the bindings need a change, open an issue for each one that does, then close the issue. Closing it marks its newest engine commit as reviewed, and the next run starts there. While it stays open, a run rewrites its text with everything since the mark and adds a comment when there is something new. Do not edit the hidden comment.
Native build
The workflow test-native.yml builds the native image of the arcadedb package and runs the test suite against the installed wheel. It does not follow the table above. It never publishes; release-native.yml calls it on a version tag.
-
A pull request runs it only when native paths change:
native/**,src/arcadedb/**,tests/**,examples/**(notexamples/README.md),pyproject.toml,setup.py,scripts/select_native_matrix.py,scripts/ci_tier.py,scripts/shard_tests.py,scripts/smoke_wheel.py,scripts/run_examples.sh,scripts/native_examples_skip.txtortest-native.ymlitself. Changes undertests/andsrc/arcadedb/are included because both backends share those files, so a shared test or source can break native parity without touching a native file; docs outside those paths do not run it. It then runs onlinux-x86_64only (the fast tier): the library (restored from the cache or built), the wheel, and the parity suite on Python 3.14 in three shards. It runs nopyverand no example leg. With the labelci:full, and for a Dependabot pull request, it runs the legs of a push tomain. -
A push to
main(only when a native path changed, same filter as a pull request), the nightly run (skipped when nothing changed in the last 25 hours, except on Mondays) and a manual run (dispatch) run all four platforms:linux-x86_64,linux-aarch64,macos-arm64andwindows-x64(Python 3.12 and 3.14). A release (release-native.ymlcalls the workflow withrelease: true) runs the same four platforms on all four Python versions, 16 legs. -
The
pyverjob installs the already builtlinux-x86_64wheel (no rebuild) into the Pythons that the full parity runs of the event leave out (3.11 and 3.13 on a push tomain, the nightly run and a dispatch; none on a release) into 3.15 and into the free-threaded 3.14t, and runs 13 test files there (14 where polars installs; 3.15 has no jpype1 wheel, so it leaves out the two files that need jpype1), about 20 seconds of tests per Python. A release needs it: apyverleg that passes uploads the markernative-passed-pyver-py<version>(it holds the file name of the wheel the leg installed), andVerify what may be publishedinrelease-native.ymlrequires the markers of 3.15 and 3.14t, the two legs of a release, and that both tested thelinux-x86_64wheel that is published. A red leg stops a release before anything reaches PyPI. A pull request of the fast tier runs no leg of this job: every Python but 3.14 runs in the full tier. In the 30 days before issue 442 nopyverleg was red on a commit where the parity suite on Linux x86-64 was green. Onlylinux-x86_64is checked on these two Pythons: the other platforms are not tested on 3.15 and 3.14t, and the JVM package has no such job. The 3.14t leg has no polars (no free-threaded wheel exists), so it skipstest_dataframe_ingest.py.scripts/select_native_matrix.pydecides its legs, andtests/test_select_native_matrix.pyandtests/test_release_native_verify.pypin the gate. -
Every test file runs in its own process (
native/wheel/parity_wheel.py). A process that dies without writing its result is aCRASHrow inparity-wheel.tsvwith its exit code, for exampleCRASH(rc=0xC0000005,3221225477), and it fails the leg. On the Windows legs only (the crashes of issue 295 happen there), the harness runs such a file once more in a fresh process (--retry-crash). A retry that produces a result is aFLAKY-CRASHrow: the gate lets the leg pass, the job summary lists the file with the first exit code, and on a release or a dispatch thecrash-reportjob adds one comment to issue 295 (run URL, Python, wheel version, exit codes). A second crash, a failing test, a timeout and every crash on Linux or macOS stay failures. A process that wrote its result and then died in shutdown is aDIRTY-EXITrecord (exit code, file, attempt) in the metadata, the job summary and the issue comment: it is not retried and does not fail the leg. Each Windows test process also writes a faulthandler trace,parity-wheel-xml/<file>.attemptN.fault.txt, into the parity artifact of the leg. Only a retry hides a crash, so treat aFLAKY-CRASHas an open bug: read the trace in the artifact before a release is announced. -
The four tests of
tests/test_vector_read_your_writes.pyrun again when they hit a known engine race, on both packages (issue 409). The engine of 26.11.1 can miss a vector that a commit has just returned: a graph rebuild trims it between the two phases of its commit. The fix is pull request 12087 of ArcadeData/arcadedb, which is in no release yet, and the test must keep detecting the race, so it is not skipped. The rerun is in the tests (run_with_known_race_rerunintests/conftest.py), not in a workflow, so every job that runs the file has it: the parity harness and the plain runs of the JVM build. A test body runs again on a fresh database, at most twice, and only when it failed with one of the three messages of the race (committed vectors were not found,Vector search failed,Record #<rid> not found). Any other failure, and a test that fails all three runs, fails the job. Each rerun is aUserWarningthat names issue 409 in the warnings summary of the log. A test that passed only after a rerun carries the junit propertyflaky_race: theTOTALrow ofparity-wheel.tsvcounts it asflaky_race=N, the gate step prints aFLAKY-RACEline, and thecrash-reportjob lists the tests in the job summary. A count never fails a leg. The rerun goes when the engine release that contains the fix is out and the file has passed 100 consecutive scheduled runs; then issue 409 is closed. -
The
examplesjob runs every script ofexamples/against the installed wheel of each platform (Python 3.12 and 3.14; a pull request of the fast tier: no leg) throughscripts/run_examples.sh, the runner thattest-python-examples.ymluses too.scripts/native_examples_skip.txtlists, with a reason, the examples that need the JVM package.Examples summaryis the one check for all its legs. These legs do not decide what a release publishes. -
A native image build takes about 5 to 30 minutes for each platform (macOS is the slowest). The organisation shares one runner limit with upstream ArcadeDB, so do not add runs lightly. Change the paths or the matrix of
test-native.ymlonly for a reason that you can write down.
Change the selection
Edit JVM_LEGS (unit tests on the events in JVM_REDUCED_EVENTS: a push and the nightly run; every other event but a pull request runs the full matrix) or PULL_REQUEST_LEGS and PULL_REQUEST_SHARDS (the fast tier) in scripts/select_matrix.py. The legs and the shards of the native workflow are in scripts/select_native_matrix.py, and the split of the test files into shards is in scripts/shard_tests.py. scripts/ci_tier.py holds the name of the label and decides whether a pull request runs the fast tier or the legs of a push. The tests tests/test_select_matrix.py, tests/test_select_native_matrix.py, tests/test_shard_tests.py and tests/test_ci_tier.py fix the legs, so a change that shrinks them fails. When you add a Python version, add it to PYTHONS in the script and to the classifiers in pyproject.toml. A test checks that both lists are the same, that requires-python starts at the oldest of them and stops before the minor after the newest. When you drop one, remove it from the same places and update the counts in the test.