Skip to content

fix(scripts): let check-image-arch probe local-only images - #1426

Merged
scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-check-image-arch-local
Oct 20, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-check-image-arch-local

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

The registry inspect added in DR-118 failed any reference that only exists locally, so the documented drydock:dev linux/arm64 example never reached the runtime probe. Tag-only references (no @sha256:) that are in the local image store now skip the inspect and run with --pull never. Digest references, which is what release-cut always passes, keep the registry inspect and --pull always. Header usage updated, tests extended (26 pass, shellcheck clean).

Script-only, no user-visible change.

✨ Added local tag-only image handling to check-image-arch.

  • Skip registry inspection for locally available tag-only images.
  • Use --pull never for local tag-only images.
  • Keep digest references on registry inspection with --pull always.
  • Updated usage documentation.

🔧 Extended tests for local images, digest references, pull policies, and architecture mismatches.

  • Review findings: unavailable.
  • The requested diff was empty, so source changes could not be independently verified.
  • Reported results: 26 tests passing and shellcheck clean.

The registry inspect added in DR-118 failed any reference that only exists
locally, so the documented drydock:dev example never reached the probe. A
tag-only reference already in the local image store now skips the inspect and
runs with --pull never. Digest references keep the registry path.
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 20, 2026 12:28am UTC
drydockdemo-website Ready Ready Preview Oct 20, 2026 12:28am UTC

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c5d1673c-adc6-46b3-bd78-494e1b15cfa9
📥 Commits

Reviewing files that changed from the base of the PR and between afd9f0c and 9209890.

📒 Files selected for processing: 2
  • scripts/check-image-arch.sh
  • scripts/check-image-arch.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The script now probes available non-digest image references locally, without registry inspection, and uses Docker pull policy never. Digest references and unavailable local tags retain registry inspection and use pull policy always. Tests cover both paths and local-image architecture mismatches.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 92098

The local-tag and digest paths have no established merge-blocking issue; merge after normal checks.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit 6f3996c into dev/v1.8 Oct 20, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-check-image-arch-local branch October 20, 2026 01:01

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 92098901 Deployed Oct 20, 2026 by vercel[bot]
Preview – drydock-website — 92098901 Deployed Oct 20, 2026 by vercel[bot]
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