perf(images): short-circuit reachable tag scan - #7554
Conversation
Signed-off-by: Ho Lim <subhoya@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughRemote release tags are now checked in descending semantic-version order and the search stops at the first reachable tag. Tests add Git trace instrumentation for probe counts, annotated-tag handling, unreachable newer tags, and local fallback behavior. ChangesRemote tag reachability
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant SourceIdentity
participant GitStatus
participant GitRepository
SourceIdentity->>GitRepository: read and sort remote release tags
SourceIdentity->>GitStatus: check newest candidate ancestry
GitStatus->>GitRepository: run merge-base --is-ancestor
GitRepository-->>GitStatus: return reachability result
GitStatus-->>SourceIdentity: return probe status
SourceIdentity-->>SourceIdentity: stop at first reachable tag
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: None This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
|
Replacement PR #7566 rebuilds this change from current It preserves Ho Lim as Author of the production commit, keeps the comparator-equivalence regression in a separate signed commit, and credits dfernandez365-rgb's earlier verified #7249 candidate as prior art without claiming copied code. The replacement passed the focused 29-test suite, the complete diff-scoped hook gate, exact-head security review, and documentation-writer review. I am leaving #7554 open and am not approving or merging either PR. |
<!-- markdownlint-disable MD041 --> ## Summary This replacement rebuilds #7554 from current `main` while retaining Ho Lim as Author for the production optimization. It reduces fallback reachability probes without changing tag selection, trust, or local fallback behavior. ## Related Issue Closes #7249. Supersedes #7554 without closing it. ## Changes - Parse the complete remote tag response, preserve peeled annotated-tag commits, and order candidates with the existing semantic-version comparator. - Stop after the first reachable candidate while preserving stable, prerelease, comparator-equivalent, and local-fallback behavior. - Add deterministic probe coverage for one-probe success, two-probe fallback, annotated tags, exhaustion, and comparator-equivalent textual tags. - Preserve Ho Lim as Author of commit `bf86e27a8`, replayed from the verified #7554 production commit `cc02a6b64`. - Credit dfernandez365-rgb's earlier verified candidate `0e1a0e59` as prior art, as recorded in [#7249](#7249 (comment)). The replacement does not claim that #7554 copied the candidate. - Documentation writer receipt for exact head `b67bf3a5a`: no docs change required because the documented selection contract is unchanged. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: internal reachability optimization; commands, configuration, output, and selection behavior are unchanged. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: exact-head nine-category maintainer review passed; published-image trust, digest pinning, override provenance, and fallback semantics are unchanged. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Verification - [x] PR description includes the DCO sign-off declaration and every commit appears as `Verified` in GitHub - [x] Git hooks passed during commit and push, or `npx prek run --from-ref main --to-ref HEAD` passes - [x] Targeted tests pass for changed behavior - [ ] Full `npm test` passes (broad runtime changes only) - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- <!-- DCO sign-off is required in this PR description, and every commit must appear as Verified in GitHub. Run: git config user.name && git config user.email --> Signed-off-by: Apurv Kumaria <akumaria@nvidia.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved release tag selection to consistently choose the newest reachable version from the remote repository. * Correctly checks tag reachability before selecting a release, avoiding unreachable or stale tags. * Preserves the nearest local version as a fallback when no remote release tag is reachable. * Maintains consistent ordering when multiple tags represent equivalent versions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Ho Lim <subhoya@gmail.com> Signed-off-by: Apurv Kumaria <akumaria@nvidia.com> Co-authored-by: Ho Lim <subhoya@gmail.com>
Summary
Base-image fallback now checks remote release tags in semantic-version order and stops at the first reachable candidate. It preserves the existing selected tag and local fallback while avoiding the exhaustive reachability fan-out on the common path.
Related Issue
Closes #7249.
Changes
Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededDGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shis unchanged.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubnpm run check:diffnpx vitest run --project cli src/lib/sandbox-base-image/source-identity.test.ts(28 passed).npm run test:changed(110 files, 1,125 tests) andnpm run typecheck.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Ho Lim subhoya@gmail.com
Summary by CodeRabbit