Skip to content

fix: keep manual CI within the job output limit - #154993

Merged
shakkernerd merged 1 commit into
mainfrom
fix/ci-manual-output
Sep 21, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/ci-manual-output

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #154986.

What Problem This Solves

Manual CI can complete every preflight step and then fail while exporting its job outputs, preventing the selected checks from starting. The exact-head PR release gate in run 35617267617 reported Job outputs exceed 1,048,576 bytes. Its full Node plan used flat file inventories that bypassed the existing compressed transport.

User Impact

Manual validation and exact-head PR release gates can carry the full named Node plan with ample output headroom. The original jobs, test selections, process boundaries, runner settings, and job-level worker limits remain intact. Older targets without the codec keep their existing flat or legacy-group payloads.

Why This Change Was Made

The manifest already uses gzip/base64 for grouped Node rows. This change represents each supported flat configuration row as one group through that same producer and decoder. The large flat configuration/file payload is omitted once packed; scheduling and job environment metadata remain available to their existing consumers. Explicit-target rows retain their separate execution path.

The transport guard now covers a bounded manual inventory and verifies decoding preserves every selected path. Existing fallback checks inspect decoded plans, and the grouped guard protects the distinct job and group worker settings. The canonical CI budget documentation describes the manual path and compatibility behavior.

Evidence

The failed source at 4f03743 produced 132 flat Node rows and 1,043,342 UTF-16 bytes across its 60 declared manifest output values. Including the other mappings gives 68 nonempty job outputs: 1,043,680 value bytes, or 1,046,156 bytes including names. GitHub's internal accounting overhead is additional; the hosted quota failure is the observed result.

On Linux with Node 24.19.0, the original and repaired producers used the same candidate inventory:

Result Original producer Repaired producer
Declared manifest values, UTF-16 bytes 1,045,628 409,946
Node matrix rows 133 133

The real shard decoder recovered identical plans for every row, including path order, configuration and environment. All job metadata and the other 59 manifest outputs matched. Totals include the four-byte correction documented on the linked issue: two initially omitted i18n inputs only change their boolean output values; matrices and counters are unaffected.

  • The bounded inventory regression fails on the unchanged producer at 515,774 output characters and passes below the existing 262,144-character safety budget.
  • pnpm test test/scripts/ci-workflow-guards.test.ts --maxWorkers=1: all 657 tests passed; 164.9 seconds on the retained Linux Testbox. The added regression took 0.758 seconds in native CI. The existing file exercises complete inventory and frozen/manual workflow contracts; the new case uses a bounded synthetic inventory instead of adding another real-inventory planning loop.
  • pnpm test test/scripts/ci-run-node-test-shard.test.ts --maxWorkers=1: all 96 tests passed; 4.6 seconds.
  • The complete changed-path check passed remotely in 323.1 seconds, including root test types, script lint, static boundaries, ratchets and formatting. The local publication preflight passed in 32.1 seconds.
  • Hosted CI passed on 1759993.

@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Sep 21, 2026
@shakkernerd shakkernerd self-assigned this Sep 21, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 12:51 PM ET / 16:51 UTC.

ClawSweeper review

What this changes

Compresses flat Node test plans through the existing CI transport so manual validation fits within GitHub’s job-output limit, with regression coverage and budget documentation.

Merge readiness

✅ Ready for maintainer review

This focused repair remains necessary on current main. No blocking correctness or security defects were found, and the recorded validation supports the change.

Priority: P2
Reviewed head: 17599939c64872a3235a17db4538c1fcd65922ca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with useful before/after measurements, meaningful regression coverage, successful exact-head CI, and no blocking findings.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its production-manifest replay reports reduced output and identical decoded plans; verified exact-head PR CI adds supporting evidence but is not a hosted manual-dispatch replay.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its production-manifest replay reports reduced output and identical decoded plans; verified exact-head PR CI adds supporting evidence but is not a hosted manual-dispatch replay.
Evidence reviewed 9 items Pinned introduced change: Reviewed merge-base dbdb5f9 through head 1759993. Eligible flat configurations become one packed group; explicit targets retain their separate path, and job environment and scheduling metadata remain available.
Current main still needs the repair: The fetched main revision loads the codec only when a row already has groups and leaves flat configs and includePatterns uncompressed. Manual dispatch still selects the full named plan.
Latest release retains the flat transport: Inspection of v2026.9.5 confirms that it projects shard.groups and separately emits flat configs; the requested flat-row compression is not present there.
Findings None None.
Security None None.

How this fits together

CI preflight converts selected tests into job matrices that GitHub passes to downstream runners. The shard runner decodes each plan and executes its selected tests with the recorded environment and worker limits.

flowchart LR
  A[Selected tests] --> B[Preflight planner]
  B --> C{Target supports compression?}
  C -->|Yes| D[Packed test groups]
  C -->|No| E[Historical plan format]
  D --> F[GitHub job outputs]
  E --> F
  F --> G[Shard runner]
  G --> H[Selected test execution]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +76, Docs +2, Config +11. Total +89 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 94 18 +76
Docs 1 6 4 +2
Config 1 20 9 +11
Generated 0 0 0 0
Other 0 0 0 0
Total 3 120 31 +89

Review metrics

Metric Value Why it matters
Reported manual manifest output 1,045,628 → 409,946 UTF-16 bytes; 133 rows preserved The same-inventory producer comparison demonstrates substantial output headroom without reducing selected jobs.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #154986
Summary: This PR is the explicit implementation candidate for the reported manual-plan output failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Use the existing codec for eligible flat plans while preserving test selection, execution boundaries, resource settings, and historical-target compatibility.

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

Yes: the recorded manual dispatch and GitHub quota annotation identify the failing boundary, and current main retains the flat-plan bypass. This review did not execute a fresh reproduction.

Is this the best way to solve the issue?

Yes: extending the existing transport is a narrow repair, and both flat and packed plans converge on the same execution owner without a new scheduling policy.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs a concrete output-export failure in manual CI and exact-head release-gate validation, with a bounded operational impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its production-manifest replay reports reduced output and identical decoded plans; verified exact-head PR CI adds supporting evidence but is not a hosted manual-dispatch replay.

Label justifications:

  • P2: Repairs a concrete output-export failure in manual CI and exact-head release-gate validation, with a bounded operational impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its production-manifest replay reports reduced output and identical decoded plans; verified exact-head PR CI adds supporting evidence but is not a hosted manual-dispatch replay.

Evidence

What I checked:

  • Pinned introduced change: Reviewed merge-base dbdb5f9 through head 1759993. Eligible flat configurations become one packed group; explicit targets retain their separate path, and job environment and scheduling metadata remain available. (.github/workflows/ci.yml:1792, 17599939c648)
  • Current main still needs the repair: The fetched main revision loads the codec only when a row already has groups and leaves flat configs and includePatterns uncompressed. Manual dispatch still selects the full named plan. (.github/workflows/ci.yml:1751, d67332d67898)
  • Latest release retains the flat transport: Inspection of v2026.9.5 confirms that it projects shard.groups and separately emits flat configs; the requested flat-row compression is not present there. (.github/workflows/ci.yml:1737, ec9c1a13db89)
  • Existing execution contract is preserved: The runner prioritizes explicit targets, decodes packed groups, and otherwise converts flat configuration fields into one group. Both representations reach the same execution owner; job and group worker limits are intersected rather than increased. (scripts/ci-run-node-test-shard.mts:89, 17599939c648)
  • Meaningful regression and compatibility coverage: The new bounded manual inventory exercises the real manifest transport and decoder, checks the output budget, and verifies every selected path and retained job metadata. Existing coverage retains codec-free historical plans; the grouped case now checks job-level environment preservation. The PR reports the regression fails before the fix and took 0.758 seconds in native CI; tests were not rerun during this read-only review. (test/scripts/ci-workflow-guards.test.ts:17013, 17599939c648)
  • Observed hosted failure: The linked failed job completed Build CI manifest successfully but received GitHub’s explicit job-output quota failure annotation. (4f03743dd7fd)

Likely related people:

  • Doksanbir: Raw commit dd6f6aa adds scripts/lib/ci-node-test-groups-codec.mts:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dd6f6aa4b3be; files: scripts/lib/ci-node-test-groups-codec.mts)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shakkernerd
shakkernerd merged commit 253859f into main Sep 21, 2026
124 checks passed
@shakkernerd
shakkernerd deleted the fix/ci-manual-output branch September 21, 2026 17:30
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: manual CI preflight now carries complete Node test plans within the job output budget.

steipete added a commit that referenced this pull request Sep 21, 2026
Include main fix #154993 so exact-head hosted CI can publish its preflight
outputs. Preserve the reviewed two-file Gateway E2E routing patch unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
Keep manual CI and exact-head PR release gates within the preflight output budget while preserving complete Node test plans and existing runner policy.

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

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

Manual CI preflight exceeds the job output limit with flat Node plans

1 participant