Skip to content

fix(ci): bounded retry for container-images nix builds (#17390) - #17399

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17390-container-images-retry
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17390-container-images-retry

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17390

What

Run 46477086438 (and sibling 46476712076) failed in basic: Nix container image builds: the GitHub Actions Cache API throttled Magic Nix Cache (HTTP 418), the magic-nix-cache substituter was disabled mid-build, and the build then failed on a path no remaining substituter could supply.

This applies the repo's established bounded-retry pattern (#14859, fleet-smoke.yml) to every nix build step in .github/workflows/container-images.yml — all three steps in the build job and all three in publish-generic:

  • up to 3 attempts per build, 60s apart;
  • a fresh attempt re-queries the substituter once the short rate-limit window passes and reuses whatever earlier attempts already fetched/built into the local store;
  • after the 3rd failure the step fails with an explicit ::error::, so a genuinely broken build still fails the run.

Verification

  • YAML parses; every wrapped run: block passes bash -n.
  • Stub-nix functional test of the extracted step script: fails twice → succeeds on attempt 3 (exit 0, exactly 3 invocations, correct arguments); always-failing stub → exit 1 after exactly 3 attempts; succeeding stub → exactly 1 invocation.
  • A real workflow_dispatch run of container-images.yml on this branch is the end-to-end check; its conclusion will be recorded here before merge.

Lane 0900-CQ (xaltha, wave 0900).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T18:01:38Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Magic Nix Cache throttling (HTTP 418 from the GitHub Actions Cache
API) disables the magic-nix-cache substituter mid-build; the attempt
then fails on paths no remaining substituter can supply (run
46477086438). Apply the established #14859 bounded-retry pattern from
fleet-smoke.yml to all six nix build steps in container-images.yml
(build + publish-generic jobs): up to 3 attempts, 60s apart, reusing
the local store accumulated by earlier attempts.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89985e82-dfbc-453e-bc8e-8522443c92a6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 935079c into main Nov 30, 2026
2 of 3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/17390-container-images-retry branch November 30, 2026 18:03
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.

main CI failure: container images (run 46477086438)

1 participant