Skip to content

perf(ci): avoid recompressing release package artifacts - #189910

Merged
vincentkoc merged 1 commit into
mainfrom
perf-ci-precompressed-artifact-uploads-next100-20261101
Nov 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf-ci-precompressed-artifact-uploads-next100-20261101

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Twelve release uploads contain precompressed package archives and their small metadata. Set upload-artifact's supported compression level to zero to avoid a second compression pass. Keep artifact names, paths, retention, publication ownership and producer/consumer identity checks unchanged.

Validation:

  • Pinned action input/source contract inspected; numeric YAML zero is preserved and accepted. Expanded workflow comparison and actionlint pass.
  • Four complete relevant artifact producer/consumer owners pass all 82 Node tests. Two selected package-acceptance producer-tuple/publication boundary tests pass. The entire 574-case admission owner was not run or claimed; existing unrelated Git/shell fixture defects remain a named follow-up.
  • Matching formatting and diff checks pass; independent structured review is clean. Trusted-source proof used the qualified local fallback after the remote backend was unavailable.

Four raw prepared-package uploads remain excluded because their aggregate size headroom at level zero is unproved. No hosted upload, byte-for-byte outer ZIP comparison, archive method, elapsed-time or billed-minute savings is claimed.

Workflow inputs: +12 lines. Production TypeScript and tests: 0.

@vincentkoc vincentkoc self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 1, 2026 01:01
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR disables outer artifact compression for twelve uploads containing precompressed release packages and associated metadata.

Example: Release checks upload openclaw-current.tgz with package-candidate.json.

  • Before: The upload action applies its default compression level of 6.
  • After: The upload uses compression level 0 while retaining the same paths, artifact identity checks, and 14-day retention.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and supported by the pinned action contract; evidence remains limited to source inspection and reported focused validation.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor-proof gate; supplied validation covers contracts and tests, while the body explicitly disclaims a hosted upload demonstration or measured savings.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Release automation spends compression work on package archives that are already compressed.
Reason: The maintainer-authored direction removes unnecessary work through a documented action input without changing release ownership or adding ongoing implementation complexity.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused CI optimization, and source review found no actionable defect.

Priority: P3
Reviewed head: 6e49247eb97a31a10ecf13b5e30794b497cacc43

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied hosted level-zero upload and downstream restore demonstrates the changed transport path or its performance.
Agent review details

How this fits together

Release workflows produce package archives, upload them through GitHub Actions, and pass artifact identities to validation and publication consumers.

flowchart LR
  A[Package producers] --> B[Compressed tarballs and metadata]
  B --> C[Upload artifact at level zero]
  C --> D[GitHub artifact storage]
  D --> E[Identity verification and extraction]
  E --> F[Release validation and publication]
Loading

Technical review

Best possible solution:

Use the existing upload action’s compression input for these precompressed payloads while preserving all producer and consumer contracts.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes that the selected uploads currently inherit level 6; no performance reproduction was run during this read-only review.

Is this the best way to solve the issue?

The diff is the smallest implementation using the existing action owner, with no new machinery or redundant tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 04d6904c734a.

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Pinned introduction is limited to compression inputs: The complete introduced diff adds only compression-level: 0 to the selected upload steps; names, paths, conditions, retention, action pins, and identity checks remain unchanged. (.github/workflows/openclaw-release-checks.yml:1077, 6e49247eb97a)
  • Executed dependency supports zero compression: The workflows execute this pinned action. Its action.yml recommends level zero for poorly compressible files, its input parser accepts zero, and its upload implementation forwards zero using an undefined check. (src/upload/upload-artifact.ts:69, cf430e030ddb)
  • Archive consumers accept supported ZIP methods: The shared artifact reader accepts stored and deflated ZIP entries, independently validates sizes and CRCs, and retains bounded extraction. (scripts/lib/actions-artifact-archive.mjs:405, 6e49247eb97a)
  • Registry uploads contain archives and a manifest: The registry producer creates .tgz packages and a JSON manifest; its verifier rejects extra files and checks package hashes, source SHA, and candidate version. (scripts/prepublish-plugin-registry-artifact.mjs:175, 6e49247eb97a)
  • Direction and validation scope are explicit: The member-authored body limits the optimization to precompressed uploads, excludes four raw prepared-package uploads, reports focused contract tests, and expressly makes no hosted-upload or elapsed-time savings claim. (6e49247eb97a)
  • Current main retains the selected default compression: Current-main history and workflow inspection retain the selected upload steps without these compression inputs; separate base changes concern other workflow behavior. (.github/workflows/openclaw-release-checks.yml:1078, 04d6904c734a)

PR surface

Config +12. Total +12 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 7 12 0 +12
Generated 0 0 0 0
Other 0 0 0 0
Total 7 12 0 +12

Labels

Label changes:

  • add P3: This is a narrow CI efficiency improvement with no demonstrated user-facing failure or urgent regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow CI efficiency improvement with no demonstrated user-facing failure or urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 9:18 PM ET / November 1, 2026, 01:18 UTC.

@vincentkoc
vincentkoc merged commit bc81641 into main Nov 1, 2026
160 of 161 checks passed
@vincentkoc
vincentkoc deleted the perf-ci-precompressed-artifact-uploads-next100-20261101 branch November 1, 2026 03:58
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant