Repository navigation
fix(ci): declare the image-tag output that seven e2e jobs already consume - #6593
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ -6.53% coverage variation |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (b6cfc6e) 164679 131743 80.00% Head commit (fa4b030) 197066 (+32387) 144786 (+13043) 73.47% (-6.53%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#6593) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
ReviewSmall, well-scoped CI fix. Verified against the full Correctness — confirmed
Guard in
Scope
Nit / follow-up idea (non-blocking)
No code correctness, security, or performance concerns — this is a CI-workflow-only change and the fix is verifiably consistent with the rest of the file. |
|
Confirmed the two things you verified that I had asserted without checking: all seven consumers do already carry the On the guard being dead code once the output is populated: agreed, and that is the intent. It costs one shell test and converts the same class of regression from a confusing On the lint idea: taking it, as a separate PR rather than here. Worth recording why this bug survived: it is not that nobody looked, it is that four separate consumers were each defensive enough to hide it. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6593 +/- ##
==========================================
- Coverage 71.31% 71.31% -0.01%
==========================================
Files 1868 1868
Lines 164679 164679
Branches 34806 34806
==========================================
- Hits 117447 117442 -5
- Misses 32977 32979 +2
- Partials 14255 14258 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
build-and-packagenever declared anoutputs:block, yet seven jobs passneeds.build-and-package.outputs.image-tagasARCADEDB_DOCKER_IMAGE. All seven have been receiving an empty string.Found by the M2 client smoke job (#6585) on its first run: it failed in 42 seconds with
(HTTP code 400) unexpected - invalid reference format, because Docker was handed an empty image reference.Why nobody noticed
Every existing consumer is defensive in a way that hides it:
e2e-go/fixtures_test.go:101guardsstrings.TrimSpace(os.Getenv(...)) != ""e2e-js/src/js-bolt-conformance.test.js:36usesprocess.env.ARCADEDB_DOCKER_IMAGE || "arcadedata/arcadedb:latest"e2e-js/src/js-pg-e2e.test.jsandjs-bolt-e2e.test.jshardcodearcadedata/arcadedb:latestand ignore the variable entirelyAnd because
Save docker imagesaves only the:latesttag, those fallbacks happen to land on the freshly built image. The suites have been testing the right thing by luck rather than by instruction.The documented intent has never actually held.
e2e-go/README.md:53-54says "In CI the branch-built image isdocker loaded under the tag passed viaARCADEDB_DOCKER_IMAGE" - it is loaded, but the tag passed is"".The fix
Declare the output.
arcadedata/arcadedb:latestis the correct value rather than the project version, because the artifact carries no other tag: afterdocker loadin a consuming job,:latestis the only reference that resolves.This is a no-op for the four suites that already fall back to
:latest. It makes the seven references honest, and it makes the intent enforceable rather than accidental.Also adds a guard to the
client-smoke-testjob: it now refuses to run on an emptyARCADEDB_DOCKER_IMAGEinstead of letting the client's e2e suite fall back to its published pin. That fallback is correct in the clients repository's own CI and wrong here - a smoke test that quietly tests a released server would report green while telling us nothing about the commit under review. That is precisely how the first run failed, and a loud refusal is better than a green lie.Verification
The workflow parses;
build-and-packagenow exposesimage-tag, and all seven consumers still resolve. The real verification is this pull request's own run:client-smoke-testshould now printSmoke-testing the client against arcadedata/arcadedb:latestand complete the suite rather than dying on an invalid reference.Worth noting what this says about the smoke job itself: its first run found a latent defect in the CI harness rather than in the OpenAPI contract. Not the class of bug it was built for, but it did exactly what a smoke test is supposed to do, and it surfaced something four existing suites had been papering over.