* ci: let a running main CI run finish instead of cancelling it
A CI run takes about 18 minutes and merges often land closer together
than that, so cancel-in-progress on refs/heads/main stopped runs partway
through: from 2026-10-05 to 2026-10-09, 77 of 138 CI runs on main were
cancelled, leaving most main commits without a result and a break
pointing at the wrong commit.
Cancel only on pull requests. On main the concurrency group still holds
one pending run that a newer merge replaces before it starts, so a burst
of merges is tested once, at its newest commit, and no run stops halfway.
Refs #5085
* ci: stop cancelling main runs in the other workflows that run on pushes to main
Checkstyle, Docs in sync and Partition Literals run on pull requests and
on pushes to main, so they get the same rule as ci.yml: cancel a superseded
run only on pull requests. The docs deploy never runs on pull requests, so
it stops cancelling altogether.
The remaining workflows named in #5085 (compatibility, compat-partitions,
iam-namespace-drift, nightly) have no push trigger, so a merge to main
never cancels them and they are left as they are.
Refs #5085
* ci: state the measured cancellation figures in the ci.yml comment
The comment quoted one-day figures (30 of 47 runs, a 13 minute median gap, 546 runner-minutes) that the run history does not reproduce. Replace them with the count measured from it: 77 of 138 CI runs on main cancelled from 2026-10-05 to 2026-10-09.
Refs #5085
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
---------
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* ci: abort hung tests with a thread dump and time out a stuck surefire fork
A hung test ran until the 20-minute job limit killed the shard, leaving no surefire report that named it.
Give every test and lifecycle method a 2-minute JUnit default with a thread dump, set through surefire configurationParameters so quarkus-junit's own junit-platform.properties (its profile-aware class orderer) is not shadowed. In CI, -Dsurefire.timeout=900 kills a fork whose test ignores the interrupt (deadlock, blocking I/O) before the job limit; shards' test steps take 10-11 minutes. SageMakerDockerIntegrationTest waits up to 150 s for real containers, so it gets a 3-minute timeout.
* test: give two Docker-backed tests a timeout that covers their own waits
EksRegistryHostsDockerIntegrationTest (three 60 s cluster-ready waits plus 105 s of polling) and TimestreamInfluxDbDockerIntegrationTest (three 180 s status waits) can legitimately run past the new 2-minute default.
* ci: size the fork timeout to the slowest shard and cover the remaining long tests
surefire.timeout caps a whole shard, and shard 2 already spends 903 s running tests, so 900 s would kill a passing run. Raise it to 1200 s and the job limit to 25 minutes so surefire still reports first. Give the Timestream test headroom beyond its 540 s of status waits, and the opt-in GPU SageMaker test a timeout covering its 300 s poll.
* ci: run the per-PR hygiene checks in one job
The signed commits, AI attribution, Conventional Commits, em-dash and PR
template checks were five workflows with one job each, so every push to a
pull request started five runners for about ten seconds of work apiece. At
busy times those jobs queued for up to twenty minutes behind the CI shards
and the compatibility suites under the account's concurrent-job limit.
They now run as steps of a single "PR hygiene" job. Each step keeps the old
check's name, script and annotations, and runs under !cancelled() so one
failure does not hide the others. The signature check also runs on
"edited" now: with one job, an edit-triggered run replaces the whole
result, and skipping signatures there would turn an unsigned PR green. A
per-PR concurrency group cancels superseded runs.
The path-filtered checks (docs tables, partition literals, changelog guard)
keep their own workflows.
* ci: skip draft PRs with a job condition instead of a gate job
CI and Compatibility Tests reached the draft rule through a reusable
workflow that started its own job on every run. That job did about three
seconds of work, but every other job in the run needed it, so under the
account's concurrent-job limit its queue wait sat at the head of the
critical path: on recent PR runs a median of about 35 seconds, and nine to
thirteen minutes at the tail, before a shard or native build could even be
queued.
The same condition now sits on the root jobs as a job-level if:, which
GitHub evaluates without a runner. Drafts, closed PRs and edited events
still skip the suites and pushes to main still run; the native suites
follow build-native. CI summary keeps always() so a failed shard still
reaches the partition check and report, and uses the same condition so it
does not run on a draft. pr-draft-gate.yml has no callers left and is
removed.
* ci: pull the Firelens router from Docker Hub and correct why
A post-merge run showed the ECR Public quota is per runner IP and per
byte, not specific to the docker/library mirror: the Firelens router
failed with "toomanyrequests: Data limit exceeded" right after the same
job had pulled two Lambda runtimes from ECR Public. The router is the same
image AWS publishes on Docker Hub (same manifest, config and layer digests
on both architectures), so the Firelens test now names it there, through
a TestImages pin the prefetch reads. The Lambda runtimes stay on ECR
Public: their Docker Hub copies lag by more than a year and some tags are
missing. The TestImages Javadoc now gives the corrected reason.
* ci: annotate a stale, unreadable or misrouted prefetch
The prefetch already writes a line when a key names a class that no longer
exists or when a TestImages pin cannot be read, but only into a log nobody
reads unless a shard fails. The results step now turns those lines into
workflow warning annotations, and adds one more: an image prefetched from
ECR Public that is not a Lambda runtime, since everything else the tests
start is carried by Docker Hub and belongs there. The prefetch stays
best-effort, so these are annotations, not failures.
* ci: warn on a misrouted prefetch whether or not its pull succeeded
The routing warning matched only "prefetched" lines, so an image on the
wrong registry whose pull failed on the quota, the very case the warning
is for, produced only the raw failure line. It now matches
"prefetch failed" lines too.
* ci: key the ECR Public prefetch on the classes that start each image
prefetch-images.sh keyed the four Lambda runtimes on any /lambda/ path in
shard.txt, and partition.sh spreads the Lambda tests over every shard, so
each of the four shards pulled all four runtimes (674 MiB) plus the Firelens
router (105 MiB) from ECR Public anonymously before its tests started. ECR
Public counts that transfer per runner IP, and once the quota is spent every
later anonymous pull fails with "toomanyrequests: Data limit exceeded",
which is how a 2 MiB busybox pull took a shard down on main twice on
2026-09-27.
Measured from a full four-shard run by pairing each ImageCacheService
"Pulling image" / "Image already present locally" line with the class that
logged it: nodejs:20 is reached from every shard, python:3.14 and
python:3.12 each have one Docker-backed class, nodejs:18 was pulled by every
shard and started by none, and the Firelens router has one class. Each entry
now keys on those classes, which cuts a shard's ECR Public prefetch from
about 800 MiB to between 120 and 330 MiB. A class the list misses pulls
inline, as before.
The tests also used three busybox tags (latest, 1.36, stable) for the same
2 MiB image. They now share one pin, TestImages.BUSYBOX (busybox:stable,
the tag application.yml and the compatibility suites already use), and the
prefetch script reads that pin from the class the way it reads the sidecar
pins from application.yml, so one prefetch serves every test and the two
cannot drift apart. The one test that pulls the other architecture keeps a
tag of its own: a foreign-platform pull replaces what the local tag points
at on a daemon without the containerd image store, and the docker build in
the VolumesFrom test resolves its base from that local tag.
Each key that names a class is checked against src/test/java, and a stale
name is written to the log, so a rename cannot silently turn a prefetch off.
The prefetch also set off ECR Public's per-second limit on its own: every
pull started in the background at once, so the shard's ECR Public pulls
landed in the same second. They are now queued and pulled one after another,
a second apart, small images first because core/common/docker sorts near
the top of every shard, while the Docker Hub pulls stay parallel. And each pull now
writes one result line to prefetch-images.log, printed by a step after the
tests, so a failed or still-running prefetch can be told apart from a test
pulling the image itself.
* ci: pull the Docker library test images from Docker Hub
The first run of the prefetch results log showed where the quota actually
runs out. On the two shards that failed, the very first pull of the job,
docker/library/busybox or docker/library/python from the ECR Public mirror,
came back with "toomanyrequests: Data limit exceeded" before the job had
transferred anything, so the shard's own volume was not what spent it. The
same runner then pulled busybox from Docker Hub seven seconds later and a
116 MiB lambda/ image from ECR Public half a minute after that, both fine.
The mirror at public.ecr.aws/docker/library has an anonymous quota of its
own, shared by runner IP and often already spent when a job starts, while
GitHub-hosted runners pull Docker Hub without a limit: the fourteen Docker
Hub images each shard prefetches have never failed.
TestImages now names busybox and python-alpine the Docker Hub way, with the
reason in its Javadoc, and the prefetch pulls them with the other Docker Hub
images instead of queuing them behind the ECR Public runtimes. The three
python-alpine literals share one pin. The pin is read with a regex that
tolerates spacing, and a pin the script cannot read writes a "prefetch
skipped" line instead of silently pulling nothing. An image two entries
name is pulled once. The results step also lists any docker pull still
running, so an early exit does not make an unfinished pull look like one
that never ran.
* test(compat): pull the SageMaker and CodeBuild images from Docker Hub
The SageMaker compatibility tests (Java and Python) and the CodeBuild one
named busybox through the public.ecr.aws/docker/library mirror, the same
namespace whose anonymous quota fails the Build and Test shards, and the
native Python jobs of another PR failed on it the same way. They now name
the image the Docker Hub way. The CodeBuild digest is the same on both
registries, so that reference only changes its host.
all-classes.txt is derived from src/test/java file names so shard.txt
exists before Compile. A test class whose name differed from its file
would drop out of both all-classes.txt and the shard union, and the
completeness check in CI summary would not notice. After Compile, derive
the list from target/test-classes as before and fail the shard if the
two disagree.
Measured on recent green runs, shards take 10m49s to 13m47s, so the
slowest had about a minute of margin under a 15 minute ceiling. Shard 1
timed out twice on an unrelated PR because of exactly that.
timeout-minutes is a kill switch for a hung job rather than a budget.
Actions bills the minutes a job actually uses, so raising the ceiling
costs nothing while runs stay the length they are, and it stops a slow
runner or a contended queue turning a passing suite into a red build.
This does not make anything faster, and it is not a substitute for the
work in #3963: it removes the failure mode while the suite sits where it
sits. Per shard that is about 1m15s compiling, 2.3 to 3.2 min building
one application per distinct test profile, and 7.2 to 8.2 min running
test classes, with the class time spread too flat to have a hot spot
left.
ci-summary keeps its 10 minute ceiling; it finishes in seconds.
The first prefetch-images.sh call ran before shard.txt existed, so it always
hit the readability guard and exited silently; only the second call, right
before the tests, did any work.
Derive the shard include list from src/test/java instead of
target/test-classes, so shard.txt is available before Compile. Every test is
a top-level class in src/test/java, so the source file name equals the class
name and the resulting shard.txt is byte-identical for all four shards.
Prefetch once, right after the shard is computed, and drop the second call.
Make the script log when it exits at the readability guard so a no-op call
shows up in the job log instead of being silent.
Closes#3995
Replaces the 38 floating tag refs left across ci, compatibility, doc-style, docs, docs-actions, conventional-commits, nightly, release and welcome with the SHA plus version comment style already used by release-cut and build-images. Floating majors are pinned to their current release (upload-artifact v7.0.1, download-artifact v8.0.1, setup-python v7.0.0, amazon-ecr-login v2.0.1). Every SHA was checked against the tag it annotates.
Consolidates three open dependabot PRs into one change so CI runs once
instead of three times, and the workflow files are touched by a single
commit rather than three overlapping ones.
- #2908 actions-minor-patch group, five workflows
- #2910 actions/setup-java 5.6.0 to 6.0.0
- #2909 actions/setup-node 6.0.0 to 7.0.0
Every changed line is a `uses:` reference: setup-buildx x8, setup-graalvm
x7, login-action x4, checkout x4, build-push-action x3, setup-java x2,
setup-node x1. Nothing outside .github/workflows is touched.
The maven-minor-patch group (#2906) is deliberately left out: it crosses
a Quarkus minor version and wants its own branch and a full test run.
Actions caches are ref-scoped: a pull_request run's write lands in
refs/pull/N/merge where no other PR can read it. ci.yml saved
~/.m2/repository on every run, so each open PR stored a ~201 MB
byte-identical duplicate of the copy main already publishes under the
same key — 1.61 GB across 8 open PRs when measured, against a 10 GB
repo-wide budget that had just been brought back under control.
PRs already restore main's copy: four sampled PR runs all logged
"Cache restored from key: maven-Linux-a80d20aaec", the key main holds.
Their own save adds nothing, and main sees ~15 qualifying pushes a day
so its copy stays fresh.
Restore is untouched and still runs on every shard of every event; only
the save is gated. A PR that edits pom.xml now misses this exact key,
falls back to the restore-keys prefix for the bulk, and re-downloads its
delta each re-run instead of caching it. pom.xml changed 21 times in the
last 30 days, so that is a small minority of PRs paying a small delta.
The suite grew past its timeout: 7,855 tests in mid-July to 11,800 today,
19-20 minute runs against the (now 30-minute) cap, with 51 serialized Quarkus
augmentations before any test executes. Sharding is the only >3x lever.
- 4 shards, each a deterministic slice computed at runtime from the compiled
test classes, so a new package can never silently fall outside every shard.
- Group-by-profile partitioner: classes sharing a @TestProfile land in one
shard atomically, since per-shard augmentation cost is distinct profiles
times ~5.4s and a split group pays its augmentation once per shard.
- ci-summary aggregation gate fails on any shard failure, any class assigned
to two shards, or any class assigned to none, checked against the same
commit's own class list rather than a hardcoded count.
- The maven cache step is split into restore (all shards) / save (shard 1
only) so four shards do not race one save key.
- Best-effort background Docker image prefetch per shard, pulling only the
images that shard's tests use.
- Per-shard timeout drops to 15 minutes; expected worst shard ~5.5-6.5 min.
* fix(ci): replace setup-java's broken maven cache with actions/cache
setup-java@v5.6.0's built-in cache: maven has never worked on this
repo: every run restores nothing ("maven cache is not found") and then
fails to save ("Path Validation Error: Path(s) specified in the action
for caching do(es) not exist"), so every single CI run resolves the
full dependency tree cold. Confirmed across 3 independent runs, no
custom localRepository override anywhere that would explain it -
looks like a bug in this pinned action version.
Uses actions/cache directly instead, keyed on pom.xml's hash - the
same underlying mechanism setup-java's option wraps, just debuggable
and not broken. Free (GitHub Actions cache storage is free up to
10GB/repo), same runner, no test/build logic touched.
* fix(ci): scope the maven cache key to the root pom.xml only
hashFiles('**/pom.xml') also picked up
compatibility-tests/sdk-test-java/pom.xml, a separate project this
workflow never builds - its own paths: trigger only watches the root
pom.xml. An unrelated change there would bust the cache key and cost
this fix its whole point on the next run.
* chore(ci): CI hygiene batch (concurrency, timeouts, action pinning, Dependabot)
Rework of #350 with release-related changes removed per maintainer
feedback on #348 (semantic-release intentionally disabled while main
stabilizes).
What's included:
- Concurrency groups on all workflows (cancel superseded runs)
- timeout-minutes on all jobs (prevent stuck builds)
- SHA-pinned third-party actions (supply chain hardening)
- Dependabot config for Maven deps + GitHub Actions
- CODEOWNERS routing CI/release paths to @hectorvent
- SECURITY.md with private vulnerability reporting instructions
What's NOT included (intentionally):
- semver.yml changes (semantic-release on main)
- .releaserc.json changes (main branch addition)
* chore: switch Dependabot schedule from weekly to monthly