Skip to content

fix(registry): bound Docker Hub metadata requests - #1272

Closed
scttbnsn wants to merge 1 commit into
dev/v1.6from
fix/v1.6-hub-metadata-timeout
Closed

scttbnsn wants to merge 1 commit into
dev/v1.6from
fix/v1.6-hub-metadata-timeout

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Fix

Docker Hub publish-date metadata requests omitted the shared outbound HTTP timeout. A stalled response could keep container discovery waiting before its first inventory report. Apply DD_OUTBOUND_HTTP_TIMEOUT_MS, including its existing default and invalid-value fallback, to that request.

Authentication, TLS, redirect restrictions, rate limiting and bounded retries stay unchanged. The watcher already handles exhausted metadata failures without losing its image comparison result.

Verification

  • Five regression assertions failed before the fix, including a real Axios request to a delayed loopback HTTP response that returned late instead of timing out.
  • After the fix, 159 tests passed across the Hub provider, timeout configuration, HTTP retry helper, image comparison and container processing.
  • The loopback server, sockets, timer and environment overrides are cleaned up in finally.
  • Full normal pre-push passed in 350.76 seconds: configured app/UI coverage, both builds, UI typecheck, static checks, 197 script tests, 102 workflow tests, 57 website script tests and Zizmor.

Found while investigating the Cucumber inventory-readiness failure on #1269. This fixes a reproduced defect, but the available hosted logs do not prove it caused that particular failure. No CI timeout increase or fixture exclusion.

This is the oldest affected release line. Forward ports to 1.7 and 1.8 follow separately.

✨ Added

  • Added Docker Hub timeout coverage for configured, default, invalid, and stalled responses.

🔧 Changed

  • Applied getRegistryRequestTimeoutMs() to Docker Hub metadata requests.
  • Reused the existing registry timeout utility and DD_OUTBOUND_HTTP_TIMEOUT_MS configuration.

🐛 Fixed

  • Stalled Docker Hub metadata requests now abort at the configured timeout.
  • Unset or invalid timeout values use the 30,000 ms default.

Concerns:

  • No actionable issues identified from the supplied evidence.
  • Review finding severity counts are unavailable.

@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Review Change StackReview 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: 4d42a79e-b3aa-4b65-8012-4d3003d3be52

📥 Commits

Reviewing files that changed from the base of the PR and between b52da9c and dc9a00d.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (2)
  • app/registries/providers/hub/Hub.test.ts
  • app/registries/providers/hub/Hub.ts

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


📝 Walkthrough

Walkthrough

getImagePublishedAt now passes getRegistryRequestTimeoutMs() to the Docker Hub metadata request. Tests verify the default timeout, invalid configuration handling, numeric string parsing, and an ECONNABORTED rejection when a response exceeds a configured 100 ms timeout.

Priority: ⬇️ Low

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
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

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.

@vercel

vercel Bot commented Sep 19, 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 Sep 19, 2026 4:12am UTC
drydockdemo-website Ready Ready Preview Sep 19, 2026 4:12am UTC

@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the metadata-only timeout change and its regression coverage. CodeRabbit completed its first source review with no findings. The full local gate passed; required CI still applies.

@scttbnsn

scttbnsn commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing without merging. 1.6.1 shipped on October 2 and the 1.6 line takes no further releases; it retires when 1.7.0 goes GA. This fix ships in 1.7 and is already on dev/v1.8.

@scttbnsn scttbnsn closed this Oct 3, 2026
auto-merge was automatically disabled October 3, 2026 12:59

Pull request was closed

@scttbnsn
scttbnsn deleted the fix/v1.6-hub-metadata-timeout branch October 3, 2026 13:04

This branch was successfully deployed

2 active deployments
Preview – drydock-website — dc9a00d1 Deployed Sep 19, 2026 by vercel[bot]
Preview – drydockdemo-website — dc9a00d1 Deployed Sep 19, 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.

2 participants