Skip to content

fix(test): keep SwiftLint policy tests stable on release branches - #193195

Merged
tideclaw-bot merged 1 commit into
mainfrom
fix/swiftlint-fixture-main-20261105
Nov 5, 2026
Merged

tideclaw-bot merged 1 commit into
mainfrom
fix/swiftlint-fixture-main-20261105

Conversation

@tideclaw-bot

@tideclaw-bot tideclaw-bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #192806, #193178

What Problem This Solves

SwiftLint policy tests incorrectly fail when they run from a release-named checkout or inherit release context.

User Impact

No user-visible runtime change. Release validation can test strict local lint behavior without accidentally selecting the release size exemption.

Why This Change Was Made

Explicitly select main for nonrelease fixture cases, just as release cases already select their intended release branch. The production policy, all nine scenarios, and every assertion remain unchanged. The diff is one expression (+1/-1); test line count stays 119.

Evidence

  • Exact base: dd327c741ebf1b054137d570eeac087b1b5684a8. Before the fix, the strict-local scenario returned 0 instead of the asserted 2: 1 failed, 8 passed. With the fix, all 9 passed.
  • Repeated all 9 tests in a complete, independently installed checkout with inherited release context and GitHub refs: passed.
  • Fresh independent P0–P2 source review: no findings. Parent reviewed the full fixture and policy owner; simplification retained the one-expression fix.
  • Local autoreview of dd327c741ebf..697738cf629f was attempted at P0–P2 with the complete wrapper and policy-owner context, but its configured Codex authentication was unavailable; no local helper review result is claimed. The existing hosted ClawSweeper request is retained as the fallback; no duplicate request was sent.
  • Targeted tooling typecheck, type-aware lint, formatting, and whitespace checks all passed.
  • This exercises the real wrapper with the existing synthetic SwiftLint executable; it does not claim native SwiftLint/macOS validation.

Select the intended nonrelease policy explicitly so release-named checkouts do not suppress the strict-local regression. All existing scenarios and assertions stay unchanged.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@tideclaw-bot
tideclaw-bot enabled auto-merge (squash) November 5, 2026 05:06
@tideclaw-bot
tideclaw-bot merged commit fa56528 into main Nov 5, 2026
82 checks passed
@tideclaw-bot
tideclaw-bot deleted the fix/swiftlint-fixture-main-20261105 branch November 5, 2026 05:10
@tideclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

tideclaw-bot added a commit that referenced this pull request Nov 5, 2026
Adopt the reviewed release-size exemption from #192806 while retaining correctness, complexity, configuration, and provenance checks. Include the main-first prepush context handoff from #193178 (dd327c7) and fixture isolation from #193195 (fa56528).

Canonical closure: 85/85 targeted tests pass with the checksum-verified pinned Bun; tooling types, focused strict lint, format, and whitespace checks pass. Initial 83/85 failure evidence retained; no native or security waiver.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…193195)

Select the intended nonrelease policy explicitly so release-named checkouts do not suppress the strict-local regression. All existing scenarios and assertions stay unchanged.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant