π fix(maturity): surface swallowed auth errors and honor per-container threshold - #660
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: β Files ignored due to path filters (1)
π Files selected for processing (8)
π§ Files skipped from review as they are similar to previous changes (8)
π WalkthroughWalkthroughContainer maturity classification now uses Possibly related PRs
π₯ Pre-merge checks | β 2β Passed checks (2 passed)
β¨ Finishing Touches π‘ 1π οΈ Fix failing CI checks π‘
π Generate docstrings
π§ͺ Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
π€ Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/api/container/maturity-filter.test.ts`:
- Around line 37-60: Update the test around applyContainerMaturityFilter to set
DD_UI_MATURITY_THRESHOLD_DAYS to '7' before exercising the assertions, and
restore its prior environment value in a finally block. Keep the existing
per-container override assertions unchanged.
In `@app/watchers/providers/docker/image-comparison.test.ts`:
- Around line 838-863: Update the test around findNewVersion so its fixture
selects the GHCR and LSCR providers using their actual registry identifiers,
preferably parameterizing the case with test.each while preserving the 401
warning assertions; otherwise rename the test to describe a generic registry
authentication failure.
In `@app/watchers/providers/docker/image-comparison.ts`:
- Line 342: Guard the warning call in the digest-only error path around
getErrorMessage(error), matching the existing logContainer.warn guard used by
the regular path, so missing warn still returns the result without publishedAt.
Add a regression test in the image-comparison tests covering digest-only lookup
failure with no warning logger.
πͺ Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
βΉοΈ Review info
βοΈ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: cc65d749-badb-4400-82f7-70b3cd49d9fa
β Files ignored due to path filters (1)
CHANGELOG.mdis excluded by!CHANGELOG.md
π Files selected for processing (8)
app/api/container/maturity-filter.test.tsapp/api/container/maturity-filter.tsapp/model/container.test.tsapp/model/container.tsapp/watchers/providers/docker/Docker.containers.labels-version-finding.test.tsapp/watchers/providers/docker/Docker.containers.test.tsapp/watchers/providers/docker/image-comparison.test.tsapp/watchers/providers/docker/image-comparison.ts
|
Deployment failed with the following error: Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit |
64a0c7a to
7b7c697
Compare
β¦r threshold - Bump getImagePublishedAt failure logging from debug to warn in image-comparison.ts (GHCR/LSCR auth failures were invisible, silently degrading the maturity clock to updateDetectedAt) - getRawUpdateMaturityLevel (container.ts) and getContainerMaturityLevel (maturity-filter.ts) now resolve updatePolicy.maturityMinAgeDays per-container before falling back to the global DD_UI_MATURITY_THRESHOLD_DAYS, matching the actual gate logic in isUpdateSuppressed/isMaturityGatePending Fixes: #604
β¦tures, digest-path warn guard
7b7c697 to
f0c853a
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Wholesale-tree sync ahead of the v1.6.0-rc.12 cut: the head commit's tree is `origin/dev/v1.6`'s tree verbatim (`630c64ec`), parented on main's current head (`67f23419`). Squash-merging makes main tree-identical to `dev/v1.6`, satisfying the release-cut drift guard (`git diff --quiet origin/main origin/dev/v1.6`). Brings in since rc.11: #659 security pins, #662/#660/#661/#663 runtime fixes (#636/#604/#605/#637), #664 guard floor, #653β#656 deps, #665 Crowdin, #666 rc.12 prep. After merge: dispatch `release-cut.yml --ref main -f release_tag=v1.6.0-rc.12`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - π Updated dependency security pins and security-version tests. - β¨ Added anonymous-authenticated WebSocket log streams with IP-based rate limits. - β¨ Added agent component-registration state tracking. - π§ Downgraded selected update blockers during agent registration. - π§ Added controller-Docker transport detection. - π Added HTTP `501` responses for unsupported agent lifecycle actions. - π Fixed maturity filtering to use per-container thresholds. - π Changed Docker publish-date lookup failures to warning logs. - π§ Updated dependency versions, release metadata, documentation, mocks, and changelog links from `v1.6.0-rc.11` to `v1.6.0-rc.12`. - β¨ Added release highlights for `v1.6.0-rc.12`. ## Concerns - Fix the French `containerLogs.stderr` value if `"sdterr"` is not intentional. - Verify the release date `August 4, 2026`. - Dispatch the release-cut workflow for `main` with `release_tag=v1.6.0-rc.12` after merging. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Fixes #604.
Two contained defects from the #556 latents:
getImagePublishedAtfailures (incl. GHCR/LSCR 401/403) now log at warn instead of debug β the maturity gate's silent fallback from registrypublishedAttoupdateDetectedAtis no longer invisible.getRawUpdateMaturityLevelandgetContainerMaturityLevelnow resolve the container's ownupdatePolicy.maturityMinAgeDaysbefore the globalDD_UI_MATURITY_THRESHOLD_DAYS, matching the gate'sisUpdateSuppressed/isMaturityGatePendinglogic β badge and gate can no longer disagree in one response. Containers without an override keep byte-identical behavior.Review provenance: workflow-implemented, adversarial verify round (caught 2 stale debug-level assertions in the Docker.containers suites, fixed), independent Codex review: clean. Full app suite green.
Changelog
warn, including GHCR/LSCR authentication failures.updatePolicy.maturityMinAgeDaysbeforeDD_UI_MATURITY_THRESHOLD_DAYS.Concerns