Skip to content

ci: verify pinned OpenCode client provisioning - #1145

Merged
777genius merged 1 commit into
mainfrom
fix/e2e-opencode-native-provision-20261128
Nov 28, 2026
Merged

777genius merged 1 commit into
mainfrom
fix/e2e-opencode-native-provision-20261128

Conversation

@777genius

@777genius 777genius commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Problem

The completed OpenCode Marketing E2E job installed opencode-ai@1.18.34, but npm 11.19.1 reported that its postinstall was not allowed. The workflow then entered its public installation lifecycle without checking whether the native command worked.

The pinned upstream publisher creates an error stub as the npm entrypoint. The pinned postinstall replaces it with the selected platform binary. The job's installed bytes were not exported, so the exact installed entrypoint is unobserved; the successful file-state lifecycle did not establish native provisioning.

Change

Add an OpenCode-specific branch to the existing CI installation step. It checks the exact existing package pin, permits that package's lifecycle script for this one global installation using npm's documented selective allowance, and requires opencode --version to return exactly 1.18.34. The probe has a 25-second timeout and a five-second forced-termination limit.

This changes one workflow file by seven added lines. The existing matrix, package versions, runner, concurrency, other client branches, installer behavior, refusal checks and lifecycle acceptance remain intact. The permission is command-scoped; no persistent npm configuration or blanket script permission is added.

Verification

The source change is an exact single-block insertion with a verified reverse transformation to the original file. The package publisher, postinstall and npm 11.19.1 option definition were reviewed against official sources. Two independent source reviews found no issues and independently confirmed the complete-file reverse transformation. Runtime checks remain pending.

Local runtime verification is unavailable because the executor transport is disconnected; no local run is claimed. The ordinary OpenCode E2E job must pass the new genuine version gate and its existing preflight/lifecycle checks. Version availability does not establish native plugin discovery, authentication, model calls or MCP tool execution.

Follow-up to #1087. Current base: a927a6030be2a775e2541aa14e849ce8e7b945bb. Overlapping PR #1078 retains the old generic npm branch; its unrelated changes are not included.

Summary by CodeRabbit

  • Chores
    • The release workflow now checks that the installed OpenCode version is exactly 1.18.34 and stops if the check fails.

E2E follow-up status — evidence through 2026-11-28 08:55 UTC

  • Current merged correction: #1146, head 2cb112fda239f1c899d13c73f865b1c67ecd2c8c, ordinary squash 4e68de5cbf579e28a8304487882e73a17e5f7302, tree 62e7f5c1e9c0eb01489635e5ff69e640421e624c. The signed merge and PR synthetic 5005d64e3b55753fb04a6aa959448f5afcc32abd have that exact reviewed tree. An actual R13 Claude preflight failure observed a newly created passive temporary file with mode 0644: 76 tests passed, one errored, and the Marketing lifecycle did not run. The narrow fix gives only the genuine Claude fixture and joined Claude discovery probe a per-child creation mask of 077. Default probe behavior, public CLI execution and strict 0600 custody admission are unchanged. Exact five-file parity, independent source review and existing workflow selection are clear. The native writer's creation flags or explicit chmod behavior remain unproven; any further invalid mode must still refuse.
  • Current execution: the PR1146 staged-package check passed its one outer hermeticity test with zero skips on the exact synthetic/tree above. This is not execution of the three new Python regressions. Those regressions, genuine Claude validation, full Required, instrumented Copilot and the OpenCode provisioning gate remain queued/pending. Ordinary main checks have been created for 4e68de5…. No queued result is counted as a pass.
  • Previous corrected baseline is independently verified: #1145, main 0a7d90539ba3bc8b3d109ff96d10ee043afe5561, tree 86687d388bd3c16506a3c528fef03bf4f8f1b198, passed both complete Required lanes: PR synthetic and merged main. Each had 176 unique Go packages, 1,231 Node passes with six explicit skips, 133 conformance passes, and successful generated-file/vet checks. All nine executable main Required checks and all six PR Terminal/Skills jobs passed. Own R14 Marketing Codex and Cursor passed their complete 18-stage and 16-stage reports respectively, including fresh profile-E policy-49 closure and actual 17/17 corrected Copilot preflight tests. Each overall preflight retained its one unrelated genuine-Claude availability skip. These runs retain their original source and scope.
  • OpenCode provisioning remains an actual validation gate: ci: verify pinned OpenCode client provisioning #1145 adds a command-scoped allowance for the existing exact opencode-ai@1.18.34 postinstall and a bounded genuine --version check. The source-supported correction addresses the observed skipped-postinstall warning. Its own native version and subsequent Marketing lifecycle are still unrun. Earlier OpenCode V2.2.5 or separately provisioned runtime results do not substitute for this npm route.
  • Earlier fixes and full matrices remain qualified: #1144 corrected only the exact three-representation preflight assertion and preserved the production refusal; its own corrected regression ran successfully in R13 and R14 Marketing jobs. Later failures from older sources at that same assertion did not reach the lifecycle and did not require another patch or rerun. #1143 fixed the macOS fixture's canonical parent and passed all six Terminal/Skills jobs, including the four prior failures. Its eleven runtime cells report success with their individually reviewed platform, provider and export boundaries. The R9 full live matrix has all 18 cells qualified with own reports and artifact size/SHA256/CRC checks; the separate remaining-target matrix has all nine cells qualified. Prepared, registration, filesystem and scripted-provider evidence retain their individual limits.
  • Prior Claude positive evidence is retained without hiding the later failure: main21b Claude passed 379 preflight tests and all 16 lifecycle stages, with 50 verified exported native-stream joins, four fresh Project/User absence checks, foreign-state preservation and the finite original-FD/backup/four-receipt transition. That successful execution does not close the later R13 mode failure. Full physical absence, writer closure, model/authentication and an unobserved historical cause remain unclaimed.
  • Remaining finite goal: actual corrected-source Claude regressions/native lifecycle; actual instrumented Copilot cold Project, later scopes, cleanup and fresh profile E; actual OpenCode npm version/provisioning and lifecycle; and relevant current-source Required checks. Copilot's earlier cold-Project failure still lacks a final corrected-source outcome. Additional unchanged Authoring/SDK/package-manager repeats do not introduce new feature scope solely by being queued, and no required check is waived.

Evidence retained only in complete console/source records during the executor outage explicitly lacks independent ZIP/CRC verification until recovery. Skipped, cancelled, metadata-only and Prepared observations are not promoted to native passes. No CI reruns, dispatches, manual cancellations, runner changes or release publication were used.

Allow only opencode-ai's lifecycle script for its existing exact global
installation, then require the genuine command's pinned version within
a bounded deadline. Prevent a successful file-state E2E from masking
an unprovisioned native command.
@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The release E2E workflow now installs the pinned OpenCode package for the opencode target, checks the CLI version with a bounded timeout, and fails if the version is not 1.18.34.

Changes: OpenCode release E2E verification

Layer / File(s) Summary
Install and verify the OpenCode CLI
.github/workflows/marketing-kit-project-release-e2e.yml
For the opencode target, the workflow installs opencode-ai@1.18.34, prints the CLI version, and fails if it does not match 1.18.34. The version check has a 25-second timeout and a 5-second kill-after limit.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Pre-merge checks: Passed 2

Check name Status Explanation
Title check Passed The title "ci: verify pinned OpenCode client provisioning" matches the main change. The PR adds an OpenCode-specific branch to the CI installation step. That branch allows the pinned package's lifecyc…
Description check Passed The description follows the repository template's main structure. It has Problem, Change, and Verification sections, which cover the template's what-changed and why-it-changed intent. The Verification…
Full details: Title check

Explanation

The title "ci: verify pinned OpenCode client provisioning" matches the main change. The PR adds an OpenCode-specific branch to the CI installation step. That branch allows the pinned package's lifecycle script for one global install. It then requires opencode --version to return exactly 1.18.34. The title is concise, specific, and follows a conventional commit style.

Full details: Description check

Explanation

The description follows the repository template's main structure. It has Problem, Change, and Verification sections, which cover the template's what-changed and why-it-changed intent. The Verification section explains the checks that ran and the checks still pending, including the local runtime limitation. The template's checklist items (go test, make lint, make vet, make generated-check, focused tests) and the Release Impact checklist are not addressed as checklists. The author does not state whether focused tests were added or whether docs or release-sensitive paths were reviewed. The description is mostly complete, so the check passes. The author should add the template's checklist items or explain why they do not apply.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@777genius
777genius merged commit 0a7d905 into main Nov 28, 2026
25 of 28 checks passed
@777genius
777genius deleted the fix/e2e-opencode-native-provision-20261128 branch November 28, 2026 06:00
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.43%. Comparing base (a927a60) to head (31cbad5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1145   +/-   ##
=======================================
  Coverage   64.43%   64.43%           
=======================================
  Files        2356     2356           
  Lines      143429   143429           
=======================================
+ Hits        92417    92422    +5     
+ Misses      37916    37911    -5     
  Partials    13096    13096           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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