Skip to content

🎲 test: Make the ClickHouse Pinned-Pair Check Order-Independent - #17192

Merged
berry-13 merged 1 commit into
devfrom
followup/292-pr-16821-make-the-clickhouse-pinned-pair-check-o
Oct 17, 2026
Merged

berry-13 merged 1 commit into
devfrom
followup/292-pr-16821-make-the-clickhouse-pinned-pair-check-o

Conversation

@berry-13

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

In the ClickHouse palette spec, the last test ("pins every pair that sits below its floor") compared the pinned Click UI pairs against measuredBelow, a module-level Set that the earlier tests filled as a side effect. If you ran that test alone by name (-t), or Jest ran the file in a different order, the Set was empty and the test failed whatever the palette was. Closes berry-13#292.

The contrast checks are now one declared matrix, floorChecks, with one entry per palette test. Each palette test asserts its own entry. The pinning test measures the whole matrix itself, so it reaches the same verdict alone, shuffled, or in file order. The pairs checked and the floors they are held to have not changed.

Type of change

  • Tests / tooling / CI

Testing

Tested environments/configuration:

  • Jest in packages/client, run the way a contributor reruns a failure

Automated tests:

  • npx jest src/theme/themes/clickhouse.spec.tsx: 56 passed
  • -t 'pins every pair' alone: 2 passed, 54 skipped (the same command fails 2 on dev)
  • --randomize --seed=16821: 56 passed
  • e2e/specs/mock/scenarios/clickhouse-pinned-pairs.spec.ts runs both invocations as contract scenarios

Screenshots / recordings

No user-facing change.

Risk / compatibility

None. This changes a test only.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors

Copilot AI balanced review requested due to automatic review settings October 16, 2026 19:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@berry-13
berry-13 force-pushed the followup/292-pr-16821-make-the-clickhouse-pinned-pair-check-o branch from 971d9e2 to 03ec3c4 Compare October 16, 2026 19:39
@berry-13
berry-13 marked this pull request as ready for review October 16, 2026 22:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T22:53:15.868143Z 03ec3c4 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-16T22:53:09.521767Z 03ec3c4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@berry-13
berry-13 merged commit 95fef55 into dev Oct 17, 2026
42 checks passed
@berry-13
berry-13 deleted the followup/292-pr-16821-make-the-clickhouse-pinned-pair-check-o branch October 17, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants