Repository navigation
ci: use faster gzip for temporary Linux test packages - #23609
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe change adds a Linux pilot workflow that builds and checks Linux packages. It configures Debian and RPM compression levels, benchmarks baseline and level1 package builds, and compares their extracted payloads. The workflow also runs lifecycle and shutdown checks, packaged CLI smoke tests, and uploads benchmark measurements. Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to The pilot does not yet provide the planned comparison needed to judge its CI-time benefit, and the new workflow breaks a packaging contract test. Resolve both before merging. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 2 functions across 5 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description includes the main template sections and useful testing results, but it conflicts with the changeset. The changeset adds the pilot workflow and benchmark/comparison scripts, while the description says those files were removed and describes the final change as three files. The Notes section is also missing. Resolution Update the description to match the current changeset. List the added workflow, benchmark script, payload comparison script, configuration, and tests. Remove the claim that temporary workflows and scripts were removed. Add the required Notes content and complete any applicable checklist or AI Disclosure items.
✨ 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 |
There was a problem hiding this comment.
Important
One repository contract test goes red on this PR. The new ci-linux-compression-pilot.yml package job packs with electron-builder --config … --linux dir (no --prepackaged), so the packaging-job census in config/scripts/mobile-web-bundle-packaging-workflow-contract.test.mjs detects a job that is missing from its expected list and the test fails.
Reviewed changes
- New CI-only builder config —
config/electron-builder-pr-linux.config.cjsspreads the release config and appends--deb-compression-level=1/--rpm-compression-level=1to the deb/rpmfpmargs. - PR Linux packaging switches config —
config/scripts/package-linux-formats.mjspoints--configat that file and drops its inline--config.deb.fpm=…args; the unit test's expected argv is updated to match. - Compression pilot — new
ci-linux-compression-pilot.yml,benchmark-linux-package-compression.mjs, andcompare-linux-package-payloads.pymeasure baseline vs level-1 packaging time/size and diff the extracted payloads.
ℹ️ Nitpicks
config/scripts/compare-linux-package-payloads.py:3importsjsonbut never uses it.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 9d578ebd-4955-45e0-b495-1d8093721027
📒 Files selected for processing (4)
.github/workflows/ci-linux-compression-pilot.ymlconfig/scripts/benchmark-linux-package-compression.mjsconfig/scripts/compare-linux-package-payloads.pyconfig/scripts/package-linux-formats.test.mjs
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
| const root = resolve(process.env.RUNNER_TEMP, 'linux-compression-benchmark') | ||
| mkdirSync(root, { recursive: true }) | ||
| const measurements = [] | ||
| for (const sample of [1]) { |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Restore three alternating benchmark pairs.
This loop runs only sample 1. Baseline always runs before level1, so order-dependent runner conditions can bias the only timing pair. Run three samples per setting and reverse alternate pairs before using the results to establish the PR’s net improvement.
Based on learnings, a fixed sequential benchmark order can bias the comparison.
Source: Learnings
There was a problem hiding this comment.
ℹ️ No new issues in the latest commits — minor suggestions inline.
Reviewed changes
Reviewed the two commits pushed since the prior Pullfrog review (3c6c423668 → e182660325):
- Pinned the CI compression config in a test —
package-linux-formats.test.mjsnowrequires both builder configs and asserts the deb/rpmfpmlevel-1 flags plus that the release config is unmodified, closing the earlier untested-flags gap. - Normalized the generated Debian changelog date —
compare-linux-package-payloads.pynow decompressesusr/share/doc/orca-ide/changelog.gz, validates exactly one" -- "trailer viaparsedate_to_datetime, and replaces the build timestamp with a placeholder before the payload diff, so the two packages' differing build dates no longer fail the compare. - Uploaded measurements unconditionally — the pilot's
upload-artifactstep gainedif: always()someasurements.jsonsurvives a failed compare. - Reduced the benchmark to a single pair —
benchmark-linux-package-compression.mjsnow iterates[1]instead of[1, 2, 3].
Note: the earlier packaging-job census failure in mobile-web-bundle-packaging-workflow-contract.test.mjs is still red at this head and its inline thread remains open — flagged previously, so not re-raised here.
ℹ️ Nitpicks
config/scripts/package-linux-formats.test.mjs:217— the "without mutating release settings" guard shallow-copies ({ ...release.deb }), so itsfpmarray is still the same reference asrelease.deb.fpm. An in-placepushfrom the CI config would be invisible toexpect(release.deb).toEqual(before.deb); astructuredClone/JSON round-trip ofbeforewould actually pin immutability.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the commit pushed since the prior Pullfrog review (e182660325 → 0fe208c186), which completes the PR's stated cleanup:
- Removed the temporary compression pilot — deleted
.github/workflows/ci-linux-compression-pilot.yml,config/scripts/benchmark-linux-package-compression.mjs, andconfig/scripts/compare-linux-package-payloads.py. No dangling references remain. - Resolved the packaging-job census failure —
mobile-web-bundle-packaging-workflow-contract.test.mjsno longer sees the unlistedci-linux-compression-pilot.yml packagejob; that file andpackage-linux-formats.test.mjsboth pass at this head. - Retired the prior open threads — the census concern and the benchmark ordering-bias concern are both moot now that their files are gone; both threads were resolved.
The final PR scope is the three durable files: the CI-only builder config (electron-builder-pr-linux.config.cjs), the config-path switch in package-linux-formats.mjs, and the test pinning the deb/rpm compression flags. Release configuration and hooks are unchanged.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Linux CI builds the same test installers with faster gzip compression. The files are slightly larger but finish about 26 seconds sooner.
What Changed
The existing CI-only Linux packaging script selects a config that inherits all release hooks and options, adding gzip level 1 for deb/rpm. Actual release workflows still use their original config and compression. AppImage settings are unchanged. Temporary benchmark workflows and scripts have been removed.
Why
CI discards these installers after smoke checks, so spending extra CPU to shrink them is unnecessary. This preserves all three package formats and the existing package checks.
Testing
0fe208c18685, including all eight unit shards and both packaging jobs: https://github.com/stablyai/orca/actions/runs/36410724232.Linked Issue
N/A — maintainer-requested CI optimization.
Visual Proof
N/A — CI only.
Review
Final change is three files. Cross-platform runtime, SSH, folder workspaces and release artifact settings are unchanged. The CLI argument parser was tested during the pilot; a dedicated inherited config passes typed fpm arrays reliably.
Agent skill upstream boundary
Checklist