Skip to content

test(doctor): assert auth health targets in collection order - #129409

Merged
obviyus merged 1 commit into
mainfrom
fix/doctor-auth-sort-compare
Aug 25, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/doctor-auth-sort-compare

Conversation

@obviyus

@obviyus obviyus commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

check-lint-core-3 is red on main since #129375: src/commands/doctor-auth.profile-health.test.ts:179 calls toSorted() with no compare function, which typescript/require-array-sort-compare rejects (main d53ea9cf4, 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 fix: keep Claude CLI authentication native #129052) are not addressed here; a separate PR carries that fix.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@obviyus
obviyus marked this pull request as ready for review August 25, 2026 15:39
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS maintainer Maintainer-authored PR labels Aug 25, 2026
`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
obviyus force-pushed the fix/doctor-auth-sort-compare branch from 8b9c8d6 to 84fc343 Compare August 25, 2026 15:50
@obviyus obviyus changed the title test(doctor): sort auth health targets with an explicit compare test(doctor): assert auth health targets in collection order Aug 25, 2026
@obviyus
obviyus merged commit ecf0631 into main Aug 25, 2026
115 of 119 checks passed
@obviyus
obviyus deleted the fix/doctor-auth-sort-compare branch August 25, 2026 15:58
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant