Skip to content

ci: run the test suite on every push and pull request - #5

Open
postpersonality wants to merge 2 commits into
specode:mainfrom
postpersonality:ci/test-suite
Open

postpersonality wants to merge 2 commits into
specode:mainfrom
postpersonality:ci/test-suite

Conversation

@postpersonality

Copy link
Copy Markdown

Two build-infrastructure changes, no product code:

  1. .github/workflows/ci.yml runs npm test on every branch push and pull request on Node 24, the version the publish workflow uses. No dependencies are installed: the tests stub the Pi SDK.
  2. test/claude-bridge.test.ts "extension shows observed Claude usage without any request" failed on main since 2026-10-31. The fixture carries the reset timestamps captured from pi-claude-bridge 0.9.3, and the extension settles a window whose reset has passed, so the test read 5h 100% · 1w 100% instead of 5h 80% · 1w 87%. The normalization tests keep the fixed timestamps, since they pass an explicit clock; the extension test now derives its resets from the running clock.

Evidence: the first CI run on this branch's predecessor failed on exactly that test (https://github.com/postpersonality/pi-subscription-usage/actions/runs/43967588567), and the run after the second commit is green (https://github.com/postpersonality/pi-subscription-usage/actions/runs/43967779534).

npm test on this branch: 117 pass, 0 fail.

Nikolay Seliverstov added 2 commits November 17, 2026 01:12
The extension settles a window whose reset has passed, so the fixed
timestamps from the 0.9.3 capture made the extension test pass only
before 2026-10-31 and fail afterwards. The normalization tests keep the
fixed timestamps; the extension test now derives resets from the clock.
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.

1 participant