Skip to content

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

Closed

Description

@squid-protocol

Bug (CI flake): the db2 N/4 jobs intermittently fail before running any case because the Db2 COBOL image build downloads the IBM ODBC CLI driver from IBM's server and the connection times out:

equivalence_db2.py:201 _ensure_container -> docker build -q -t ...
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key:
Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": dial tcp 170.225.126.18:443: i/o timeout

followed by ::error title=Db2::the background Db2 start did not finish.

Seen on #4960, #4966, #4967 (e.g. #4967 job 114765386455, 2026-10-12 10:29Z). It sends otherwise-good PRs to shepherd:needs-fix and burns a full re-run.

Proposed fix: stop fetching the driver from IBM on every cold runner.

  1. Cache linuxx64_odbc_cli.tar.gz with actions/cache (key: URL + a pinned sha256), fetched with curl --retry 5 --retry-all-errors --connect-timeout 30 only on a cache miss.
  2. Have the Dockerfile COPY the tarball from the build context instead of fetching it by URL; verify the sha256.
  3. Optionally also cache the built image layer. In any case, a driver-download failure should name itself as infrastructure (not as a case failure) so the shepherd can retry it, not send the PR back.

Found during the 2026-10-12 churn-stall review (handoff fix 5). Not the cause of the red Evidence Refresh (#4977, which is the BMS race fixed in #4978).

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Oct 12, 2026
  2. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5048 (class sweep from PR #5047)

  3. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions