fix(openshell): trust sandbox build pin data#6779
Conversation
Signed-off-by: Aaron Erickson <aerickson@nvidia.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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe installer verifier now parses trusted sandbox build pins and ChangesInstaller verification
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant InstallerSource
participant runCli
participant TrustedTemplate
InstallerSource->>runCli: Extract sandbox pins and DEV_MIN_VERSION
runCli->>runCli: Validate releaseVersion consistency
runCli->>TrustedTemplate: Lock trusted installer functions
TrustedTemplate-->>runCli: Return template verification result
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage remains at 96%, unchanged from the branch. TypeScript / code-coverage/cliThe overall coverage in the branch remains at 79%, unchanged from the branch. Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — No blocking findingsMerge posture: No blocking advisor findings This is an automated review. Required findings need action before merge. Warnings and optional suggestions do not require a response or follow-up. A human maintainer makes the final merge decision. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@test/installer-hash-check.test.ts`:
- Around line 199-207: Make mutateSandboxBuildFunction require both
function-boundary markers and throw or assert when either is missing or
mutate(functionSource) returns the unchanged source. In
test/installer-hash-check.test.ts lines 273-285, replace the unchecked global
replacement used for pin addition with this strict helper so the positive test
proves its mutation was applied.
🪄 Autofix (Beta)
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: Enterprise
Run ID: 347fa08d-7890-4375-a221-2c58b3f16b18
📒 Files selected for processing (2)
scripts/checks/extract-installer-pins.mtstest/installer-hash-check.test.ts
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Summary
Extend the base-trusted installer parser so a separately reviewed dependency pin PR can add standalone sandbox binary identities as release data without authorizing operational installer changes. This is the remaining base-branch prerequisite for #6726 after #6778 landed.
Changes
pinned_sandbox_build_versionas a strict literal digest-to-version case map before normalizing it as release data.X.Y.Zversions, a fail-closed default branch, and at least one identity for the selected release.DEV_MIN_VERSIONto the same selected release as the installer tables and other stable selectors.The complete v0.0.82 upgrade tree passes this base-trusted checker against all three release manifests and all ten consumed archives.
Type of Change
Quality Gates
Verification
Verifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailablenpx vitest run test/installer-hash-check.test.ts(67/67),npm run build:cli,npm run typecheck, and the base-trusted checker against chore(openshell): upgrade supported version to 0.0.82 #6726npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: not applicable to this focused verifier grammar extension; normal hooks, typecheck, and focused integration coverage passed.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Aaron Erickson aerickson@nvidia.com
Summary by CodeRabbit