Skip to content

fix(ci): restore release validation lint - #129733

Closed
RomneyDa wants to merge 1 commit into
mainfrom
fix/release-validation-github-type
Closed

RomneyDa wants to merge 1 commit into
mainfrom
fix/release-validation-github-type

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes the release-validation scripts lint/type boundary, which still used an explicit any for the injected Actions Octokit client and blocked exact-head CI.

Why This Change Was Made

Defines only the GitHub Issues API methods and exact request/response shapes the release-validation publisher consumes. The test double now matches successful issues.get behavior by rejecting a missing issue instead of returning an impossible undefined response.

The unrelated QA Lab Crabline fixture edits previously carried by this branch were removed. #129743 documented that separate failure; this PR now retains only the release-validation publisher client and its targeted tests.

User Impact

No user-visible behavior change. Maintainers regain a typed, lint-clean release-validation publisher boundary without duplicating QA fixture ownership.

Evidence

Exact head cfa9844baff:

  • node_modules/.bin/oxlint scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts
  • node_modules/.bin/tsgo --ignoreConfig --noEmit --strict --skipLibCheck --types node --module nodenext --moduleResolution nodenext --target es2023 scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts
  • node scripts/run-vitest.mjs test/scripts/release-validation-campaign.test.ts — 8/8 passed
  • pnpm format:check --no-error-on-unmatched-pattern -- scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts
  • git diff --check
  • node scripts/check-changed.mjs --dry-run -- scripts/github/release-validation-campaign.d.mts test/scripts/release-validation-campaign.test.ts
  • Autoreview: clean, no accepted/actionable findings

Production runtime LOC: +0/-0. Tooling declaration: +50/-20. Tests: +7/-3.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review August 26, 2026 01:14
@RomneyDa

Copy link
Copy Markdown
Member Author

Evidence on exact head 92b654a337d4bf7603ef03a16a7465ff205a944c:

  • direct oxlint: clean
  • targeted strict tsgo contract check: clean
  • release-validation campaign Vitest: 8/8 passed
  • formatting and diff checks: clean
  • autoreview: no accepted/actionable findings

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@RomneyDa
RomneyDa force-pushed the fix/release-validation-github-type branch from 92b654a to a296ab3 Compare August 26, 2026 01:25
@RomneyDa

Copy link
Copy Markdown
Member Author

Mechanical refresh only: rebased onto current main to pick up the already-landed QA fixture cleanup that caused the unrelated check-test-types failure. New exact head: a296ab33e4e.

Post-refresh focused proof remains clean: direct oxlint, targeted strict tsgo, and release-validation campaign Vitest (8/8). The prior compact shard failure was the current-main dev-tooling-safety signal-exit race (SIGTERM vs numeric 143), unrelated to this diff; the fresh exact-head run will re-evaluate it.

Copy link
Copy Markdown
Contributor

The refreshed exact head still hits an unrelated current-main check-test-types failure in the QA fixtures:

  • extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts:244
  • extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts:286

Both selection literals omit the required OpenClawCrablineChannelDriverSelection.providerReadinessArtifactPath. The existing canonical fixture value is "crabline-provider-readiness.json"; adding that property to both literals is the smallest fix. I found no open in-flight QA fix for this second gate. This currently also blocks exact-head CI for #129736.

@RomneyDa
RomneyDa force-pushed the fix/release-validation-github-type branch from a296ab3 to 3278d30 Compare August 26, 2026 01:31
@RomneyDa

Copy link
Copy Markdown
Member Author

Second mechanical refresh: main advanced again while the prior run was executing. Exact head 3278d30e9ab487f460f0efdece6a3f3b5ea57da3 is now based on current main 9c30c920feec940e50e16fc6905e3489054396a2, which includes the shared QA type-contract repair. Focused oxlint, strict targeted tsgo, and Vitest 8/8 remain clean. No PR behavior changed.

Copy link
Copy Markdown
Contributor

Maintainer review: #129743 is now the focused carrier for the unrelated Crabline fixture type regression, so that QA change should not remain stacked here. This declaration also needs exact per-method request shapes rather than Record<string, unknown>/untyped pagination inputs to avoid replacing any with a broader laundering boundary. A clean follow-up is prepared locally; Peter Steinberger will update this branch after the focused QA prerequisite lands.

@vincentkoc vincentkoc self-assigned this Aug 26, 2026
@steipete steipete self-assigned this Aug 26, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 25, 2026, 9:58 PM ET / August 26, 2026, 01:58 UTC.

ClawSweeper review

What this changes

The branch types the release-validation GitHub client declaration and updates two QA Lab cleanup fixtures to the current Crabline artifact fields.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: current main still has the untyped release-validation client declaration, but the branch must drop the separate QA fixture repair that maintainer review assigned to a focused PR.

Priority: P2
Reviewed head: 6905e7cdd98918c78c6aea3a5eb5feba92957e26

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The declaration repair is useful, but the branch needs the maintainer-requested scope split before it is ready.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate.
Evidence reviewed 7 items Current-main gap: Current main still declares the publisher's injected GitHub client as explicit any, so the declaration repair remains necessary.
Runtime caller: The publisher uses GitHub issue pagination, reads, label operations, updates, creates, and comments through the injected client.
Workflow boundary: The workflow runs Codex only to create an artifact, then separately invokes actions/github-script and passes its github object to the publisher; this patch does not depend on Codex runtime or protocol behavior.
Findings 1 actionable finding [P1] Remove the duplicate QA fixture repair
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/release-validation-campaign.test.ts

Result: PASS (completed)

[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129733-sKGNyl/target

 ✓  tooling  test/scripts/release-validation-campaign.test.ts (8 tests) 11ms

 Test Files  1 passed (1)
      Tests  8 passed (8)
   Start at  01:59:27
   Duration  441ms (transform 225ms, setup 59ms, import 19ms, tests 11ms, environment 0ms)

[test] passed 1 Vitest shard in 6.58s
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129733-sKGNyl/target

 ✓  tooling  test/scripts/release-validation-campaign.test.ts (8 tests) 11ms

 Test Files  1 passed (1)
      Tests  8 passed (8)
   Start at  01:59:36
   Duration  265ms (transform 57ms, setup 27ms, import 10ms, tests 11ms, environment 0ms)

[test] passed 1 Vitest shard in 6.37s

Assertions:

  • PASS expect_output: 8 passed

How this fits together

Release-validation tooling publishes campaign issues through GitHub’s Issues API, while QA Lab passes Crabline artifact selections into isolated test runs. The changes affect CI validation contracts rather than normal product runtime behavior.

flowchart LR
  A[Release validation publisher] --> B[GitHub client declaration]
  B --> C[Script lint and type checks]
  D[QA Lab cleanup fixtures] --> E[Crabline selection contract]
  E --> F[Extension type checks]
  C --> G[Exact-head CI]
  F --> G
Loading

Before merge

  • Remove the duplicate QA fixture repair (P1) - Maintainer review explicitly assigns these Crabline fixture edits to fix(qa-lab): restore Crabline artifact fixtures #129743. Retaining them here duplicates the CI repair and makes the focused branch conflict unnecessarily; keep this PR to the release-validation declaration.
  • Resolve merge risk (P1) - Until the focused QA fixture PR lands and this branch is rebased, merging this PR would leave two competing owners for the same extension typecheck repair.
  • Complete next step (P2) - This maintainer-labeled PR already has an explicit maintainer-directed sequencing plan; it is not an automated repair candidate.

Findings

  • [P1] Remove the duplicate QA fixture repair — extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts:245-248
Agent review details

Security

None.

PR surface

Tests +4, Other +49. Total +53 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 11 7 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 50 1 +49
Total 4 61 8 +53

Review metrics

Metric Value Why it matters
Production versus test delta tooling +50/-1; tests +11/-7 The declaration growth replaces an untyped CI boundary; the QA fixture edits should be removed from this branch rather than carried in parallel.

Merge-risk options

Maintainer options:

  1. Unstack the QA fixture edits (recommended)
    Rebase after the focused QA fixture PR lands so this branch contains only the release-validation declaration repair.

Technical review

Best possible solution:

Retain only the GitHub client declaration repair here; land the Crabline fixture correction through #129743 and then rebase this branch.

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

Yes: current main visibly contains the lint-triggering explicit any, and the QA fixture selections visibly lack the required local selection fields before this branch's edits.

Is this the best way to solve the issue?

No: typing the GitHub boundary is appropriate, but retaining the QA fixture repair conflicts with the maintainer-approved focused repair path.

Full review comments:

  • [P1] Remove the duplicate QA fixture repair — extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts:245-248
    Maintainer review explicitly assigns these Crabline fixture edits to fix(qa-lab): restore Crabline artifact fixtures #129743. Retaining them here duplicates the CI repair and makes the focused branch conflict unnecessarily; keep this PR to the release-validation declaration.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3be24fe7149a.

Labels

Label changes:

  • add P2: This repairs repository CI validation with no reported product-runtime impact.
  • add merge-risk: 🚨 automation: The branch duplicates a focused QA Lab typecheck repair and could create conflicting CI-fix ownership.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate.

Label justifications:

  • P2: This repairs repository CI validation with no reported product-runtime impact.
  • merge-risk: 🚨 automation: The branch duplicates a focused QA Lab typecheck repair and could create conflicting CI-fix ownership.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Introduced the release-validation campaign runner that owns the publisher declaration. (role: feature introducer; confidence: high; commits: 004b06b6a02f; files: scripts/github/release-validation-campaign.mjs, scripts/github/release-validation-campaign.d.mts)
  • ampagent: Current branch history attributes the typed release-validation declaration repair to this contributor. (role: recent declaration contributor; confidence: medium; commits: 7c396ece7b73; files: scripts/github/release-validation-campaign.d.mts, test/scripts/release-validation-campaign.test.ts)
  • steipete: The maintainer review separated the QA fixture repair into its dedicated PR. (role: reviewer and adjacent area contributor; confidence: high; commits: 52cf5c4ac031; files: extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts, extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase after the focused QA fixture PR lands, leaving only the release-validation declaration and its targeted test.
  • Rerun the focused release-validation lint, typecheck, and Vitest checks on the resulting exact head.

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

Copy link
Copy Markdown
Contributor

Land-ready on exact head 6905e7cdd98918c78c6aea3a5eb5feba92957e26.

  • Exact-head CI: run 32920652504 — green.
  • pnpm tsgo:extensions:test — passed.
  • pnpm test extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts — 13/13 passed.
  • Targeted pnpm check:changed — passed.
  • Direct @openclaw/crabline type inspection confirms the canonical capability and provider-readiness artifact literals.
  • Final branch autoreview — no accepted/actionable P0/P1 findings.
  • Native review artifacts — READY FOR /prepare-pr, findings 0.
  • Production runtime LOC: 0; tooling/test support only, +61/-8.
  • Known proof gaps: none for this CI/tooling repair.

The maintainer follow-up preserves Dallin Romney's original contribution and adds only the independent red-main QA type repair; the later reviewer refinement narrows the GitHub API contract and removes the retired smoke fixture fields.

@steipete

Copy link
Copy Markdown
Contributor

ClawSweeper finding addressed: #129743 is closed as superseded, so there is no longer a duplicate QA repair owner or merge conflict. The combined head is necessary to break the circular exact-head gates: the focused QA PR depended on this branch's lint repair, while this branch depended on the QA fixture repair.

No code changed after the reviewed 6905e7cdd98918c78c6aea3a5eb5feba92957e26 head. Exact-head CI run 32920652504, Testbox-backed prepare, focused tests, typecheck, changed gates, dependency inspection, and final autoreview remain green.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa force-pushed the fix/release-validation-github-type branch from 6905e7c to cfa9844 Compare August 26, 2026 02:20
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the latest ClawSweeper scope finding on exact head cfa9844baff:

  • removed both duplicate QA Lab fixture edits from the branch;
  • rebuilt on current main, resolving the merge conflict;
  • retained only the typed release-validation publisher client and its targeted test;
  • focused oxlint, strict tsgo, Vitest (8/8), formatting, and diff checks pass;
  • final autoreview reports no accepted/actionable findings.

This changes branch scope, so requesting a fresh exact-head review.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

Superseded by #129725, merged as 637da87a5da10cf079224fcd102725bce1c5ee57: exact-main pnpm lint:scripts passes and the former Crabline fixture type failures are resolved, with independent verification finding no unique remaining value here.

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

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants