Repository navigation
ci: scope orcad smoke and parallelize Linux packages - #23314
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This CI-only PR makes two independent changes, both covered by new contract tests that pass locally.
- Orcad terminal smoke is now input-scoped.
static_analysiscomputes the merge-base diff into$RUNNER_TEMP/orcad-smoke-changes, feeds it to the neworcad-terminal-smoke-change-scope.mjs, and skipspnpm run smoke:orcad-terminalonly when the classifier returnsfalse. Any diff or analysis failure falls through to running the smoke, so the skip is fail-closed. - The classifier reuses the Bun scope machinery. It shares
collectBunProfileInputs/classifyBunProfileChanges, adds explicit forced inputs for the orcad entry points, build/smoke scripts,.cjsprobes,src/cli/**,src/shared/**, andresources/**, then defers to the dependency graph and the Bun classifier's always-run rules. The new test exercises the real esbuild graph, so the entry points genuinely cover the runtime, CLI, and worker deps. - Linux packaging is prepared once and built concurrently.
electron-builder --linux dirruns every hook intodist/linux-unpacked, thenpackage-linux-formats.mjscopies that tree into three private per-format trees and runs AppImage/deb/rpm builds in parallel with--prepackaged, publishing artifacts only after all three succeed. - The isolation is real. With
--prepackaged, electron-builder'sdoPackreturns early (nobeforePack/afterPack/native rebuild),computeAppOutDirreturns the prepackaged copy, andFpmTargetwritesresources/package-typeinto that copy. So deb/rpm get their own markers and the AppImage copy keeps thedirbuild'sAppImagemarker — matching the old shared-tree invocation's per-artifact markers while removing the shared-tree mutation ordering. - Artifact contract is preserved. Names,
dist/locations, and the downstreamVerify root-package marker payloads/ AppImage shutdown-oracle expectations are unchanged;headless-serve-shutdown-workflow.test.mjsandpr-code-change-scope.test.mjswere updated to match.
I also verified locally that all pr.yml-parsing contract tests plus the four changed/new test files pass (97 + 285 + 40 tests), and confirmed the electron-builder internals above against the installed 26.15.3 source. The hosted packaging benchmark and CI run noted as pending in the PR body are the remaining unknowns; nothing in the code review blocks merge.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta against the prior review (f1e5292b04 → d40d5ce01a), covering only the follow-up commit d40d5ce01a ci: validate packaging when its copy dependency changes.
- Classifier gap closed.
config/scripts/space-sharing-copy.mjswas added toLINUX_PACKAGE_PREFIXESinpr-code-change-scope.mjs. This is the right fix:package-linux-formats.mjsimportscopyPrivateTreefrom that module, so a change to it now runs Linux packaging instead of silently skipping it. The matching assertion inpr-code-change-scope.test.mjswas updated in the same commit, and the test passes locally.
No other files changed in the delta, and nothing in the prior review's findings is invalidated.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe PR adds changed-path classification for the Orcad terminal smoke, with workflow and test updates. Linux packaging now builds an x64 unpacked app, then uses a new script to create AppImage, deb, and rpm packages. The packaging script validates and stages outputs, and the Linux packaging change-scope rules now include its supporting scripts. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The smoke remains enabled for relevant changes, and Linux packages retain the required preparation and format markers. The PR is mergeable after normal checks. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The new checks fail safely when change detection errors, and Linux formats are built in separate copies. The main remaining risk is that a successful change analysis could overlook an input removed from the current dependency graph, allowing a relevant PR to skip the terminal smoke check. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 8 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |

ELI5
CI skips the terminal smoke when a change cannot affect it, and builds Linux package formats concurrently to reduce waiting.
What Changed
The terminal smoke uses the existing dependency collector plus explicit runtime, CLI, native, resource, and toolchain inputs. Missing change evidence or failed analysis runs the smoke. Linux packaging prepares the app once with all existing hooks, then builds AppImage, deb, and rpm in separate private copies. All builders finish before cleanup, and packages are exposed only after all formats succeed.
Why
The smoke currently takes about 29–45 seconds even for unrelated changes. Paired hosted measurements reduced Linux packaging from 157.356 to 96.318 seconds and from 178.851 to 112.518 seconds (37–39%). Private copies preserve format-specific package markers and existing artifact validation while allowing compression to overlap. Both execution orders passed package validation and produced identical app.asar hashes. Timings include preparation and private copies.
Linked Issue
None; no issue created.
Visual Proof
N/A — CI only; application UI and behavior are unchanged.
Testing
Review
No application execution behavior, SSH boundary, or folder-workspace behavior changes. Packaging concurrency is limited to Linux x64 PR builds; release builds are unchanged.
Agent skill upstream boundary
Checklist