Skip to content

CI: pin, cache and retry the Db2 ODBC driver download (#4980) - #5047

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4980-20261013T1938Z
Oct 13, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4980-20261013T1938Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4980.

What

gnucobol-db2.Dockerfile did a bare ADD <ibm url>: no retry, no checksum, so an IBM hiccup failed Db2 CI jobs with an opaque docker error.

  • tests/equivalence/odbc_cli.pin: url + sha256 (single source of truth).
  • equivalence_db2.fetch_odbc_cli(): reuses a sha-matching file, else curl --fail --retry 5 --retry-all-errors, verifies sha256; every failure (curl rc, no file, empty, truncated, error page, curl missing, timeout) raises OdbcDownloadError starting "INFRASTRUCTURE (not a code defect)". Called before docker build in _ensure_container.
  • Dockerfile COPYs the tarball + pin and runs sha256sum -c.
  • Workflows (minimal): one actions/cache step keyed on hashFiles(odbc_cli.pin) in det-sweep.yml (db2 job, before the Db2 prewarm) and evidence-refresh.yml (db2-part job, before the image build). Same pinned action SHA as the rest.
  • evidence.py: pin added to the oracle globs / oracle:image-db2; docs line via register part.

Class table

member status
IBM ODBC driver ADD in gnucobol-db2.Dockerfile fixed here
`
apt-get in gnucobol.Dockerfile (pinned versions; weekly crucible notices) sibling gap
apt-get install universal-ctags (tri-comparison-audit/history) sibling gap
npm install [email protected] (graph-accuracy-audit) sibling gap
docker pull of the digest-pinned Db2 image sibling gap

Evidence

  • New tests/cobol_mainframe/test_db2_odbc_pin.py (pin, Dockerfile, ignore, evidence, workflows, fetch failure matrix); test_db2_image_pin.py, test_evidence.py pass.
  • Real fetch from IBM + real docker build of the image from the new Dockerfile: OK (clidriver present).
  • pr_gates --fast 5/5, --ratchets 7/7.
  • Editing the Dockerfile stales the Db2 evidence records (scheduled re-proof, not PR-blocking).

Cross-repo: none.

🤖 Generated with Claude Code

…s itself infrastructure (#4980)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 13, 2026 19:58
@squid-protocol
squid-protocol enabled auto-merge (squash) October 13, 2026 19:58
@squid-protocol
squid-protocol merged commit d042dcc into main Oct 13, 2026
50 checks passed
@squid-protocol
squid-protocol deleted the churn/4980-20261013T1938Z branch October 13, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: db2 jobs flake when the IBM ODBC CLI driver download times out; cache the driver

1 participant