Skip to content

fix(phase4): read root-owned OCI image store with sudo in Linux acceptance - #77

Closed
gitcommit90 wants to merge 1 commit into
mainfrom
fix/linux-acceptance-image-check-sudo
Closed

fix(phase4): read root-owned OCI image store with sudo in Linux acceptance#77
gitcommit90 wants to merge 1 commit into
mainfrom
fix/linux-acceptance-image-check-sudo

Conversation

@gitcommit90

@gitcommit90 gitcommit90 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

The retained channel-image check read /var/lib/1helm-oci-v1/shared-images/sha256/<digest> (created root-owned, mode 0700 by install-oci-runtime.sh) without sudo, so it always failed after a successful clean install. Pinpointed by the ERR trap at line 75. Adjacent state checks already use sudo. Fix runs the dir test and digest read under sudo. Acceptance-script only; no product change. Both occurrences (clean-install + post-rollback) fixed. phase4 tests pass.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Linux acceptance checks to reliably validate retained image directories and archive integrity during standard and rollback scenarios.
    • Enabled verification from non-root runner environments.

…cceptance

The retained channel-image verification checked
/var/lib/1helm-oci-v1/shared-images/sha256/<digest> without sudo, but
install-oci-runtime.sh creates that store root-owned and mode 0700. The
ordinary runner user cannot traverse it, so the `[[ -d ... && sha256 ... ]]`
assertion always failed after an otherwise successful clean install — the exact
silent failure the new ERR trap pinpointed at this line. The adjacent state
checks already use sudo; this one was the outlier.

Run the directory test and the image digest read under sudo, matching the
store's ownership. No product change; acceptance-script only.

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2551b59b-c432-475f-97fb-b93c5627b433

📥 Commits

Reviewing files that changed from the base of the PR and between b6c17eb and a576c93.

📒 Files selected for processing (1)
  • ops/platform-acceptance/linux.sh

📝 Walkthrough

Walkthrough

The Linux acceptance checks now use sudo to validate retained OCI image directories and archive digests after clean installation and rollback scenarios.

Changes

Linux image validation

Layer / File(s) Summary
Privileged retained-image checks
ops/platform-acceptance/linux.sh
The clean-install and rollback checks use sudo for retained-image existence and archive digest validation.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, scope, affected occurrences, and test result, but it omits most required template sections and checkboxes. Add the required Summary, Type of change, Release notes, Verification, and Post-merge sections, and record the applicable checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Linux acceptance fix and the use of sudo for the root-owned OCI image store.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/linux-acceptance-image-check-sudo

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

@gitcommit90

Copy link
Copy Markdown
Owner Author

Folded into #78 to keep both Phase 4 conveyor fixes in one merge / one candidate run.

@gitcommit90 gitcommit90 closed this Aug 5, 2026
@gitcommit90
gitcommit90 deleted the fix/linux-acceptance-image-check-sudo branch August 5, 2026 00:58
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