Skip to content

style(ci): format ci-changed-scope test - #150330

Merged
steipete merged 1 commit into
mainfrom
upd/redmain-format-ci-changed-scope
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/redmain-format-ci-changed-scope

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes red check-docs formatting checks on unrelated PRs since #135276 (33e8e3c30f49f5490b938b12f65f5d304572c399), including #150306 and #150312.

User Impact

No user-visible behavior change. This maintainer-requested repair removes the formatting failure blocking other PRs.

Why This Change Was Made

Run the repository formatter on src/scripts/ci-changed-scope.test.ts, the source of the failure. The diff only joins two wrapped conditions; whitespace-stripped bytes remain identical. Production LOC: 0. Test LOC: +2/-4.

Related: #135276, #150306, #150312.

Evidence

Confirmed on origin/main at 0a7f64932f13c5067fdf0601ddc44740f2f75416. The workflow's .github/workflows/ci.yml check-docs job invokes pnpm format:check.

Before:

$ pnpm format:check
$ oxfmt --check
src/scripts/ci-changed-scope.test.ts (0ms)
Format issues found in above 1 files. Run without --check to fix.
Finished in 4769ms on 39148 files using 32 threads.
[ELIFECYCLE] Command failed with exit code 1.

After:

$ pnpm format:check
$ oxfmt --check
All matched files use the correct format.
Finished in 4383ms on 39148 files using 32 threads.

Apply the repository formatter to the two test conditions left unformatted by #135276 (33e8e3c), which broke check-docs formatting checks on unrelated PRs #150306 and #150312. This changes line wrapping only.
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review September 16, 2026 22:01
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

#147903 exact-head CI reproduces the same unrelated-main formatting failure in src/scripts/ci-changed-scope.test.ts: https://github.com/openclaw/openclaw/actions/runs/35155485965/job/104994143117. Its transport/recovery sources and tests are disjoint from this file.

I inspected c6b32c01ce6ab617fccb64085afd98e35a76df28; the two formatter-only joins are the exact correction needed. @steipete, please retain this canonical fix through current CI/review and landing. I will consume the landed main fix for #147903; no duplicate replacement or formatting patch is being prepared on its branch.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 6:07 PM ET / 22:07 UTC.

ClawSweeper review

What this changes

Joins two wrapped conditions in the CI scope-selection test so repository formatting checks pass without changing test behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains a useful, narrowly scoped formatting repair on the pinned main revision. No correctness findings or additional contributor actions are needed.

Priority: P3
Reviewed head: c6b32c01ce6ab617fccb64085afd98e35a76df28

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving repair with directly relevant formatter evidence and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured before/after pnpm format:check output directly demonstrates the changed formatting contract: the CI scope test fails before the repair and formatting passes afterward; the reported 99 tests supplement that evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured before/after pnpm format:check output directly demonstrates the changed formatting contract: the CI scope test fails before the repair and formatting passes afterward; the reported 99 tests supplement that evidence.
Evidence reviewed 5 items Verified introduced change: The complete pinned introduction diff changes only line wrapping in two Boolean conditions; operators, operands, and assertions remain unchanged. The read-only diff whitespace check passed.
Still necessary on reviewed main: Fetched main retains both wrapped expressions. The verified test merge has the pinned main and PR head as its parents and changes only this test file. No local release tag contains the PR head; no shipped fix is claimed.
Formatting entrypoint and supplied proof: The workflow invokes pnpm format:check, which package.json maps to oxfmt --check. The captured PR body supplies before/after output showing this file failing before the repair and the repository formatting check passing afterward; it also reports 99 passing focused tests. These commands were not rerun during this read-only review.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI scope selector turns changed repository paths into decisions about which test lanes run. This PR formats assertions that verify those decisions.

flowchart LR
  A[Changed repository paths] --> B[CI scope selector]
  B --> C[Selected test lanes]
  C --> D[Scope regression assertions]
  D --> E[Repository formatting check]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -2. Total -2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 4 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 4 -2

Review metrics

None.

Technical review

Best possible solution:

Preserve the existing CI routing assertions and apply the repository formatter’s minimal line wrapping.

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

Not applicable to runtime behavior: this is formatting cleanup, supported by the supplied failing and passing formatter output.

Is this the best way to solve the issue?

Yes: changing only the formatter-rejected line wrapping is the narrowest repair and preserves the existing assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a low-risk formatting cleanup with no runtime or test-logic changes.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured before/after pnpm format:check output directly demonstrates the changed formatting contract: the CI scope test fails before the repair and formatting passes afterward; the reported 99 tests supplement that evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a low-risk formatting cleanup with no runtime or test-logic changes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured before/after pnpm format:check output directly demonstrates the changed formatting contract: the CI scope test fails before the repair and formatting passes afterward; the reported 99 tests supplement that evidence.

Evidence

What I checked:

  • Verified introduced change: The complete pinned introduction diff changes only line wrapping in two Boolean conditions; operators, operands, and assertions remain unchanged. The read-only diff whitespace check passed. (src/scripts/ci-changed-scope.test.ts:872, c6b32c01ce6a)
  • Still necessary on reviewed main: Fetched main retains both wrapped expressions. The verified test merge has the pinned main and PR head as its parents and changes only this test file. No local release tag contains the PR head; no shipped fix is claimed. (src/scripts/ci-changed-scope.test.ts:872, d74b4a2a5531)
  • Formatting entrypoint and supplied proof: The workflow invokes pnpm format:check, which package.json maps to oxfmt --check. The captured PR body supplies before/after output showing this file failing before the repair and the repository formatting check passing afterward; it also reports 99 passing focused tests. These commands were not rerun during this read-only review. (.github/workflows/ci.yml:4548, c6b32c01ce6a)
  • Area history and routing: Current-main history includes recent CI scope work by Peter Steinberger and qingminlong. GitHub maps the earlier scope-expectation refactor commit to steipete. Detailed blame and historical patch inspection encountered unavailable objects, so no source-line introduction attribution is asserted. (src/scripts/ci-changed-scope.test.ts, bc79a198dc0d)
  • Protected item and related work: Live GitHub confirms the same open, unmerged head and protected maintainer label. The captured discussion connects the repair to formatting failures affecting fix(mcp): cleanup fails when a retired relay stalls #150306 and fix(update): preserve config when plugin load paths are unavailable #150312; their substantive fixes are distinct from this formatting change. (c6b32c01ce6a)

Likely related people:

  • steipete: 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.

@steipete
steipete merged commit 6f08e4e into main Sep 16, 2026
150 checks passed
@steipete
steipete deleted the upd/redmain-format-ci-changed-scope branch September 16, 2026 22:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 16, 2026
Restore the exact 95 npm and 91 ClawHub expectations after #149587
counted three plugins whose bundled publication remains intentionally
deferred by #150316. Preserve the publisher set comparisons, four core
package identities, and the existing OpenCode Go deferral.

Apply the canonical #150330 formatting correction as well. No runtime,
manifest, publication policy, or registry eligibility changes.

Validation: reproduce the original 98-versus-95 failure, then pass all
231 producer/npm/ClawHub cases, selected changed checks, and focused review.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
Apply the repository formatter to the two test conditions left unformatted by openclaw#135276 (18dcf28), which broke check-docs formatting checks on unrelated PRs openclaw#150306 and openclaw#150312. This changes line wrapping only.
obviyus added a commit that referenced this pull request Sep 17, 2026
… install (#144053)

Closes #144001

## What Problem This Solves
macOS Gateway reinstall fails when `OPENCLAW_WRAPPER` points to OpenClaw's generated environment launcher.

## User Impact
Reinstall restores the runtime and Gateway entrypoint instead of nesting the launcher. Genuine custom wrappers still work.

## Why This Change Was Made
The shared install planner rejects generated launchers before selecting runtime arguments and environment. This setting has one writer. Production code shrinks by eight lines.

## Evidence
On isolated macOS services, `gateway install --force --runtime node --wrapper "$launcher"` produced duplicate arguments, exit 2 and no health before the fix; afterward, health returned 200. Persisted-input and repeat reinstall, fresh install, a genuine custom wrapper, authentication and environment retention passed.

The unmodified published 2026.9.3 updater completed with a normal runtime definition plus the invalid persisted wrapper value. The installed candidate answered health and authenticated status. An already-recursive definition is unidentifiable to that old updater; direct candidate reinstall is the proven recovery. No package was published.

The installer patch is unchanged from these native observations at `cebb120f`.

## Compatibility
Windows generated-script rejection is unchanged. No new configuration or migration.

## Consumers
Install, startup repair, Doctor and setup share the planner.

## Invalidation
Existing service owners regenerate arguments and environment.

## Tests
Registered-command cases fail on the original main implementation. After integrating main, 657 installer/update tests and 600 current catalog/release/inventory tests pass. Full build, type-aware preflight, formatting, both line limits, unused-file/export and architecture checks pass.

Earlier CI run 35153572691 failed; the exact formatting repair from #150330 is included. New hosted checks must complete.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
… install (openclaw#144053)

Closes openclaw#144001

## What Problem This Solves
macOS Gateway reinstall fails when `OPENCLAW_WRAPPER` points to OpenClaw's generated environment launcher.

## User Impact
Reinstall restores the runtime and Gateway entrypoint instead of nesting the launcher. Genuine custom wrappers still work.

## Why This Change Was Made
The shared install planner rejects generated launchers before selecting runtime arguments and environment. This setting has one writer. Production code shrinks by eight lines.

## Evidence
On isolated macOS services, `gateway install --force --runtime node --wrapper "$launcher"` produced duplicate arguments, exit 2 and no health before the fix; afterward, health returned 200. Persisted-input and repeat reinstall, fresh install, a genuine custom wrapper, authentication and environment retention passed.

The unmodified published 2026.9.3 updater completed with a normal runtime definition plus the invalid persisted wrapper value. The installed candidate answered health and authenticated status. An already-recursive definition is unidentifiable to that old updater; direct candidate reinstall is the proven recovery. No package was published.

The installer patch is unchanged from these native observations at `cebb120f`.

## Compatibility
Windows generated-script rejection is unchanged. No new configuration or migration.

## Consumers
Install, startup repair, Doctor and setup share the planner.

## Invalidation
Existing service owners regenerate arguments and environment.

## Tests
Registered-command cases fail on the original main implementation. After integrating main, 657 installer/update tests and 600 current catalog/release/inventory tests pass. Full build, type-aware preflight, formatting, both line limits, unused-file/export and architecture checks pass.

Earlier CI run 35153572691 failed; the exact formatting repair from openclaw#150330 is included. New hosted checks must complete.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants