Skip to content

Pin the Dockerfile clones on the production branch - #19

Open
dionmcm wants to merge 1 commit into
groups-api-fixfrom
pin-clones-production
Open

Pin the Dockerfile clones on the production branch#19
dionmcm wants to merge 1 commit into
groups-api-fixfrom
pin-clones-production

Conversation

@dionmcm

@dionmcm dionmcm commented Aug 17, 2026

Copy link
Copy Markdown
Member

Merge this before anything that rebuilds the image. Right now a rebuild
produces an image that does not boot.

Both clones — snomed-drools-rules and snomed-release-validation-assertions
are unpinned git clone, so what the image contains depends on the day it was
built. PR #14 fixed this on the catch-up line (d5cb5129) but never reached
groups-api-fix, which is the branch production builds from.

Demonstrated today

While building an image to verify two unrelated fixes, the rebuild picked up
assertions HEAD 0160dd2e. Four files had been removed upstream since
fad36466, and RVF died during startup:

Caused by: java.io.FileNotFoundException:
  ./snomed-release-validation-assertions/scripts/release-type/
  release-type-delta-previous-snapshot-validation-inferred-relationship_EDITION.sql
    at AssertionsDatabaseImporter.addSqlTestsToAssertion(AssertionsDatabaseImporter.java:123)

ERROR: the RVF container exited during startup
image assertions ref files in scripts/release-type manifest reference resolves
last known good fad36466 140 yes
fresh, unpinned 0160dd2e 136 no

This is a startup failure, so the nightly produces no report at all rather
than a red one — the same shape as the 2026-08-07 outage, where a two-year-old
image was rebuilt and broke production for the same reason.

Why it matters now

The defect is latent until something forces a rebuild. Two fixes in flight do
exactly that: PR #18 (trailing empty column) and the schema-mapping fix. Either
one, merged and built before this, ships a nightly that cannot start.

On the chosen ref

fad36466 is what the last known-good image carries and what every green nightly
to date has used. It is not the newest commit, and that is deliberate — bumping it
requires re-checking that every sqlFile reference in testscripts/manifest.xml
still resolves, since a single missing one stops RVF booting. Pinning first makes
that bump a reviewable change rather than something that happens by calendar.

No behaviour change: the pinned refs are what a working image already contains.

Both clones - snomed-drools-rules and snomed-release-validation-assertions -
were unpinned `git clone`, so the image contents depend on the day it was built.
PR #14 fixed this on the catch-up line (d5cb512) but never reached
groups-api-fix, which is the branch production builds from.

Demonstrated today while building an image to verify two unrelated fixes: a
rebuild picked up assertions HEAD 0160dd2e, four files had been removed upstream
since fad36466, and RVF died during startup -

  FileNotFoundException: ./snomed-release-validation-assertions/scripts/
    release-type/release-type-delta-previous-snapshot-validation-inferred-
    relationship_EDITION.sql

  rvf-gate:local  (last known good)   fad36466   140 files in scripts/release-type
  rvf-gate:armE   (fresh, unpinned)   0160dd2e   136 files - the reference is gone

This is a startup failure, so the nightly produces no report at all rather than
a red one. It is latent until something forces a rebuild - which is exactly what
shipping the schema-mapping and column-count fixes requires. Pin first, then
rebuild.

fad36466 is chosen because it is what the working image carries and what every
green nightly to date has used, not because it is current. Bumping it requires
re-checking that every sqlFile reference in testscripts/manifest.xml resolves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018aYBXcyiozxQQGhzzhS7KG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant