You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f83a5db
Browse filesBrowse the repository at this point in the historyBrowse files
CI: the examples leave the fast tier, the native pull-request leg keeps the oldest and the newest Python (#442)
The first run of this pull request took 31.8 minutes, and both jobs that
ended it were example jobs: `Test Python Examples (linux/amd64, Python
3.14)` (29.8 minutes) and `Examples on the installed wheel (linux-x86_64,
Python 3.12)` (19.0). Their longest step is `Download datasets` (891 s and
608 s), which mostly builds the vectors of the Stack Overflow dataset. The
target for a pull request is about 15 minutes.
- A pull request runs no example leg in either workflow. The examples run
on a push to main, in the nightly run, on a manual run and with the
label ci:full, like the rest of the full tier.
- Exception, by path and at job level: a pull request that changes a file
under examples/ (not examples/README.md), scripts/run_examples.sh or
scripts/native_examples_skip.txt runs the example leg of Linux x86-64.
scripts/ci_tier.py reads the changed files from the API and hands the
planners the event pull_request_examples. Files that cannot be read:
the example legs run (fails open).
- The workflows still start and their summary checks still report, so no
check is left pending: `Examples Test Summary` and `Examples summary`
are green for exactly the case "the plan has no example leg and the job
was skipped", and red when a planned leg failed, was cancelled or did
not run. In test-python-examples.yml the first job downloads no jars
when there is no leg.
- The native `pyver` job runs Python 3.11 and 3.14 on a pull request (the
ends of the range, about a minute each, beside the parity suite). 3.13,
3.15 and the free-threaded 3.14t stay in the full tier: in 30 days no
pyver leg was red on a commit whose Linux parity run was green.
What stays on every pull request: the arcadedb-jvm wheel and its tests,
the native image and wheel built from the pull request, and the parity
suite against the installed wheel.
Copy file name to clipboardExpand all lines: .github/workflows/test-native.yml
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,22 @@
4
4
#
5
5
# A native image build takes about 5 to 30 minutes per platform and the ArcadeData organisation shares a runner cap with
6
6
# upstream ArcadeDB, so the load is selective (scripts/select_native_matrix.py holds the legs, tests/test_select_native_matrix.py pins them):
7
-
# pull request only when a native path changed (the `paths` filter below); linux-x86_64, Python 3.12 (the fast tier); not for a draft.
8
-
# With the label ci:full, or opened by Dependabot: the legs of a push to main (scripts/ci_tier.py)
7
+
# pull request only when a native path changed (the `paths` filter below); linux-x86_64, Python 3.12, no example leg (the fast tier);
8
+
# not for a draft. The example leg runs when the pull request changes the examples or their runner. With the label
9
+
# ci:full, or opened by Dependabot: the legs of a push to main (scripts/ci_tier.py decides all three)
9
10
# push to main only when a native path changed; all four platforms, Python 3.12 and 3.14
10
11
# nightly all four platforms, Python 3.12 and 3.14, but only when something besides docs changed in the last 25 hours (a full run on Mondays)
11
12
# dispatch all four platforms, Python 3.12 and 3.14
12
13
# workflow_call from release-native.yml with `release: true`: all four platforms, Python 3.11 to 3.14
13
14
# This workflow never publishes: it has no id-token permission and no environment.
14
15
#
15
16
# Beside the full parity runs, the `pyver` job installs the already built linux-x86_64 wheel (py3-none: no rebuild) into the Pythons the full
16
-
# runs of the event leave out (main, nightly, dispatch: 3.11, 3.13; a release: none; a pull request has no `pyver` legs, the fast tier is one Python), into 3.15 (the full suite
17
+
# runs of the event leave out (main, nightly, dispatch: 3.11, 3.13; a release: none; a pull request runs only 3.11 and 3.14 of this job), into 3.15 (the full suite
17
18
# needs jpype1 and ladybug, which have no cp315 wheel yet, so 3.15 runs without the test files that need jpype1) and into the free-threaded 3.14t, and runs a small subset of the tests there (about 20 s of tests per Python). A release needs it: a leg that passes uploads a marker (native-passed-pyver-py<version>), and release-native.yml
18
19
# publishes nothing unless the legs of a release (3.15 and the free-threaded 3.14t) passed. Only linux-x86_64 is checked on them.
19
20
# scripts/select_native_matrix.py decides its legs.
20
21
#
21
-
# The `examples` job runs every script of examples/ against the installed wheel of each platform (Python 3.12 and 3.14; a pull request: linux-x86_64, 3.12), through
22
+
# The `examples` job runs every script of examples/ against the installed wheel of each platform (Python 3.12 and 3.14; a pull request: none, or linux-x86_64 on 3.12 when it changes the examples), through
22
23
# scripts/run_examples.sh, the runner test-python-examples.yml uses too. scripts/native_examples_skip.txt lists, with a reason, the examples that need the JVM package.
23
24
# `examples-summary` is the one check for all its legs. They do not decide what a release publishes (release-native.yml reads the markers and the wheels only).
24
25
#
@@ -234,9 +235,10 @@ jobs:
234
235
run: |
235
236
set -euo pipefail
236
237
run=true
237
-
# A pull request runs the fast tier (one platform, one Python). With the label ci:full, or opened by Dependabot, it runs the legs
238
-
# of a push to main: scripts/ci_tier.py turns its event into pull_request_full (it reads the labels again from the API, so a re-run
239
-
# after adding the label is enough). Every other event passes through unchanged.
238
+
# A pull request runs the fast tier (one platform, one Python, no examples). scripts/ci_tier.py turns its event into
239
+
# pull_request_examples when it changes the examples or their runner (the example leg too), and into pull_request_full with the
240
+
# label ci:full or a Dependabot author (the legs of a push to main; it reads the labels again from the API, so a re-run after
241
+
# adding the label is enough). Every other event passes through unchanged.
240
242
event="$(python3 -I scripts/ci_tier.py "$EVENT")"
241
243
echo "legs of the event: $event"
242
244
if [ "$RELEASE" = true ]; then event=release; fi
@@ -770,7 +772,9 @@ jobs:
770
772
name: Examples on the installed wheel (${{ matrix.key }}, Python ${{ matrix.python }})
771
773
needs: [plan, build]
772
774
# A platform whose build failed has no wheel to download and shows red here; the other platforms still run.
echo "## 🎯 Overall Examples Test Summary" >> $GITHUB_STEP_SUMMARY
602
-
echo "" >> $GITHUB_STEP_SUMMARY
603
-
604
-
if [ "${{ needs.build.result }}" = "success" ] && [ "${{ needs.test-examples.result }}" = "success" ]; then
605
-
echo "✅ **Every leg of this run passed example testing!**" >> $GITHUB_STEP_SUMMARY
606
-
echo "" >> $GITHUB_STEP_SUMMARY
607
-
echo "All examples ran successfully on every leg this run started, against one wheel built for each platform." >> $GITHUB_STEP_SUMMARY
608
-
echo "" >> $GITHUB_STEP_SUMMARY
609
-
echo "**Legs**: a pull request runs linux/amd64 only (the fast tier). A push to main, the nightly run, a manual run and a pull request with the label ci:full run linux/amd64, linux/arm64, darwin/arm64 and windows/amd64. The jobs of this run list its legs." >> $GITHUB_STEP_SUMMARY
621
+
echo "## 🎯 Overall Examples Test Summary" >> "$GITHUB_STEP_SUMMARY"
622
+
echo "" >> "$GITHUB_STEP_SUMMARY"
623
+
echo "first job: $PLAN, example legs in this run: ${RUN:-unknown}, build: $BUILD, examples: $LEGS"
echo "⏭️ **No example leg in this run**" >> "$GITHUB_STEP_SUMMARY"
627
+
echo "" >> "$GITHUB_STEP_SUMMARY"
628
+
echo "A pull request runs the examples only when it changes them or their runner, or carries the label ci:full. A push to main, the nightly run and a manual run run them on every platform." >> "$GITHUB_STEP_SUMMARY"
echo "✅ **Every leg of this run passed example testing!**" >> "$GITHUB_STEP_SUMMARY"
631
+
echo "" >> "$GITHUB_STEP_SUMMARY"
632
+
echo "All examples ran successfully on every leg this run started, against one wheel built for each platform. The jobs of this run list its legs." >> "$GITHUB_STEP_SUMMARY"
610
633
else
611
-
echo "❌ **Some legs failed example testing**" >> $GITHUB_STEP_SUMMARY
612
-
echo "" >> $GITHUB_STEP_SUMMARY
613
-
echo "Please check the individual platform jobs for details." >> $GITHUB_STEP_SUMMARY
634
+
echo "❌ **Some legs failed example testing**" >> "$GITHUB_STEP_SUMMARY"
635
+
echo "" >> "$GITHUB_STEP_SUMMARY"
636
+
echo "Please check the individual platform jobs for details." >> "$GITHUB_STEP_SUMMARY"
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,11 +146,13 @@ shellcheck and hadolint run as `docker_image` hooks (Docker pulls the images aut
146
146
147
147
CI has two tiers, so that a pull request does not wait for the macOS and Windows runners that the organisation shares with ArcadeData/arcadedb.
148
148
149
-
-**A pull request runs the fast tier.** The static checks (pre-commit, Bandit, the dependency audits) run as before. The builds and tests run on Linux x86-64 only: the `arcadedb-jvm` wheel with the tests on Python 3.11 and 3.14 and the examples on Python 3.14 and, when a native path changed, the native image and wheel with the tests and the examples on Python 3.12. A pull request that changes only documentation runs no platform job.
150
-
-**`main` runs the full tier.** A push to `main` and the nightly run (03:00 to 04:00 UTC) test all four platforms: Linux x86-64, Linux arm64, macOS arm64 and Windows x86-64. A release tests every platform on every Python version.
149
+
-**A pull request runs the fast tier.** The static checks (pre-commit, Bandit, the dependency audits) run as before. The builds and tests run on Linux x86-64 only: the `arcadedb-jvm` wheel with the tests on Python 3.11 and 3.14 and, when a native path changed, the native image and wheel with the parity suite on Python 3.12 and a short subset on Python 3.11 and 3.14. The examples do not run, unless the pull request changes a file under `examples/` or their runner (`scripts/run_examples.sh`, `scripts/native_examples_skip.txt`). A pull request that changes only documentation runs no platform job.
150
+
-**`main` runs the full tier.** A push to `main` and the nightly run (03:00 to 04:00 UTC) test all four platforms (Linux x86-64, Linux arm64, macOS arm64 and Windows x86-64) and run the examples on each. A release tests every platform on every Python version.
151
151
-**To run the full tier on a pull request**, add the label `ci:full`, then push a commit or choose "Re-run all jobs" on its test workflows. The pull request then runs what a push to `main` runs. Use it for a change that can behave differently on another platform: file paths, processes and signals, the wheel build, the native library, a workflow file. If you cannot add labels, ask for it in the pull request. Dependabot pull requests always run the full tier.
152
152
153
-
A problem that only another platform shows is found on `main` after the merge: the badges at the top of the README turn red, and the fix or the revert comes before the next release. [Continuous integration](docs/modules/ROOT/pages/development/ci.adoc) lists the legs of each event.
153
+
The wait of a pull request is set by the native image build and the parity suite that follows it. A pull request that changes no native path waits for the `arcadedb-jvm` tests only.
154
+
155
+
A problem that only another platform or an example shows is found on `main` after the merge: the badges at the top of the README turn red, and the fix or the revert comes before the next release. [Continuous integration](docs/modules/ROOT/pages/development/ci.adoc) lists the legs of each event.
154
156
155
157
A commit message starts with a short subject that says what changes and where, for example `Native find_nearest: send the query vector as one float32 array, not a Python list`. The body says why. Link the issue with `Closes #N` in the pull request.
0 commit comments