Repository navigation
test(doctor): assert auth health targets in collection order - #129409
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
obviyus
marked this pull request as ready for review
August 25, 2026 15:39
`require-array-sort-compare` fails `check-lint-core-3` on `main` since #129375 (`toSorted()` with no compare on an optional-string array). The findings are collected in a fixed target order, so assert that order directly like the sibling test does.
obviyus
force-pushed
the
fix/doctor-auth-sort-compare
branch
from
August 25, 2026 15:50
8b9c8d6 to
84fc343
Compare
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
…w#129409) ## What Problem This Solves `check-lint-core-3` is red on `main` since openclaw#129375: `src/commands/doctor-auth.profile-health.test.ts:179` calls `toSorted()` with no compare function, which `typescript/require-array-sort-compare` rejects (`main` `806b9f02f`, job `check-lint-core-3`). ## Why This Change Was Made The findings are collected in a fixed target order (`targets` map insertion in `src/commands/doctor-auth.ts`), so the test asserts that order directly, like the sibling assertion at line 206. Test-only change; no behavior change. ## User Impact None at runtime. Restores the `check-lint-core-3` gate on `main`. ## Evidence - `node scripts/run-oxlint.mjs src/commands/doctor-auth.profile-health.test.ts` — clean. - `node scripts/run-vitest.mjs src/commands/doctor-auth.profile-health.test.ts` — 23 passed. - LOC: production 0; tests +4 / −3 (comparator-based first push failed `check-test-types-core-1`: `target` is optional). - Other `main` failures (`checks-node-compact-*` auth-resolution hangs from openclaw#129052) are not addressed here; a separate PR carries that fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
check-lint-core-3is red onmainsince #129375:src/commands/doctor-auth.profile-health.test.ts:179callstoSorted()with no compare function, whichtypescript/require-array-sort-comparerejects (maind53ea9cf4, jobcheck-lint-core-3).Why This Change Was Made
The findings are collected in a fixed target order (
targetsmap insertion insrc/commands/doctor-auth.ts), so the test asserts that order directly, like the sibling assertion at line 206. Test-only change; no behavior change.User Impact
None at runtime. Restores the
check-lint-core-3gate onmain.Evidence
node scripts/run-oxlint.mjs src/commands/doctor-auth.profile-health.test.ts— clean.node scripts/run-vitest.mjs src/commands/doctor-auth.profile-health.test.ts— 23 passed.check-test-types-core-1:targetis optional).mainfailures (checks-node-compact-*auth-resolution hangs from fix: keep Claude CLI authentication native #129052) are not addressed here; a separate PR carries that fix.