GeezerVison is showing github.com — ci(pm-stack): wire the three quota-exporter suites into CI for #6084 by dezren39 · Pull Request #6928 · developing-today/code
Conversation
dezren39
commented
Nov 7, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Opened by the git hygiene sweep (issue #1371) from previously-unpushed work: this finished commit (2784051, 2026-11-05) sat only as a local branch ref in the laptop primary clone after its worktree was retired; the change is not in main in substance (verified: main's pm-stack-tests.yml has no quota-exporter wiring). Pushed and PR'd by the sweep so the work is published and reviewable.
Refs #6084
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Tests
- Automated checks now cover additional quota export components and run when those components change.
- The checks also confirm that the Supabase exporter test is present before running it.
- The test job has a longer time limit to accommodate the expanded coverage.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
- Add opencode-usage-export suite (node --test, 4 tests)
- Add cloudflare-export suite (node --test, 35 tests)
- Add supabase-export suite (bun test, 12 tests)
- Update workflow triggers to run on changes to exporter directories
- Increase timeout from 15 to 20 minutes to accommodate new tests
Fixes #6084
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-08T11:19:41.491474Z |
25d09c7 |
New commits |
ℹ️ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 48 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
07170bd8-21cc-432e-8f7b-bb78b5a2f786
Commits
-
Reviewing files that changed from the base of the PR and between 2784051 and 25d09c7.
Files selected for processing: 1
-
.github/workflows/pm-stack-tests.yml
No actionable comments were generated in the recent review.
Walkthrough
-
The workflow now runs for changes to three quota exporter directories. It adds test runs for the exporters, updates the job name, and increases the timeout from 15 to 20 minutes.
Changes: Quota exporter CI coverage
| Layer / File(s) |
Summary |
Exporter workflow coverage .github/workflows/pm-stack-tests.yml |
The workflow path filters now include the three quota exporter directories. The job runs tests for the OpenCode usage, Cloudflare, and Supabase exporters. The Supabase test step fails if its expected test file is missing. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Possibly related issues
- Issue 6084 concerns adding CI runs and path triggers for the three exporter suites.
Possibly related PRs
Merge Risk: Minimal · previous review 27840
-
The change adds CI coverage for the three quota exporters. No merge-blocking issue is identified from the supplied evidence; merge after normal checks pass.
Pre-merge checks: 5
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
 |
The title clearly summarizes the addition of three quota-exporter test suites to CI. |
| Docstring Coverage |
 |
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0ac369fe-d34b-472f-9c8f-4df9963dc85a
Commits
-
Reviewing files that changed from the base of the PR and between 1fabdbc and 2784051.
Files selected for processing: 1
-
.github/workflows/pm-stack-tests.yml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 8, 2026
…exporters-ci
# Conflicts:
# .github/workflows/pm-stack-tests.yml
|
🤖 Agent note · verified, merge-ready (task 12917, lane code-f)
This PR already contained exactly the #6084 wiring (single-file diff to .github/workflows/pm-stack-tests.yml); it was based on a stale main and conflicted on the trigger paths: block. I merged current origin/main (e1b77bb) into the branch (merge commit c663703), resolving the paths conflict by keeping BOTH main's pm-stack/opencode-claimant/** and this PR's three exporter paths in both push and pull_request. PR is now MERGEABLE at head c663703.
Verification (run on the laptop at the merged head — the same commands the new CI steps run):
Negative demonstration (acceptance: a broken pin must turn the check red): temporarily changed listR2Buckets in cloudflare-quota-export.mjs to publish the partial bucket list (buckets: names) on a non-200 page instead of null — the #2574 pins failed as designed (33 pass / 2 fail: "an HTTP 500 on buckets keeps metrics and marks enumeration unknown" and "a later-page failure publishes unknown, never the partial list"). Change reverted; tree clean; the break was never committed.
Codex review on this PR: completed, no findings (has_any_findings: false).
Dependency note (#5954): pm-stack-tests.yml is disabled_manually in Actions — until #5954 is resolved, no step in this workflow executes in CI regardless of this wiring. That enablement is #5954's scope, not this PR's; the wiring here is complete and verified locally, and merging now means the suites run as soon as the workflow is re-enabled (and on any manual workflow_dispatch).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6637037d3
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
# Quota exporter suites for #6084
|
|
|
# opencode-usage-export: node --test (4 tests)
|
|
|
- name: Test opencode-usage-export suite
|
|
|
run: node --test pm-stack/opencode-usage-export/opencode-usage-export.test.mjs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle SQLite warnings before enabling the OpenCode suite
On the Ubuntu 24.04 runner image, the default Node runtime is 22, whose node:sqlite implementation emits an experimental warning when imported. The newly invoked suite's import-only test spawns a child that imports the exporter, which imports node:sqlite, and then requires the child's stderr to be empty (opencode-usage-export.test.mjs:56–67). Consequently, this step fails even when the exporter works correctly, and the subsequent Cloudflare and Supabase steps are skipped. Make warning handling compatible with that assertion, ensuring any suppression also reaches the spawned child through its inherited environment.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed — thank you, verified and correct. The workflow had setup-bun but no setup-node, so the exporter steps would have run under the Ubuntu 24.04 runner's default Node 22, whose node:sqlite import prints an ExperimentalWarning to stderr; the import test in opencode-usage-export.test.mjs asserts the child's stderr is empty, so the step would have failed on CI while passing locally under Node 24 (where all three suites pass: 12 + 35 + 12).
Commit 25d09c7 adds a "Set up Node 24 for the quota exporter suites" step (actions/setup-node@v7, node-version: 24 — the repo's existing convention, e.g. github-backup-tests.yml) immediately before the exporter steps, with the reasoning recorded in a comment in the workflow. YAML re-validated after the edit and the opencode suite re-run green under Node 24.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
)
The runner default Node 22 prints an ExperimentalWarning when
opencode-usage-export.mjs imports node:sqlite, and the suite's
import test asserts the child stderr is empty — the new step would
have failed on CI while passing on Node 24. Add setup-node@v7
node-version 24 (repo convention) before the exporter steps.
Also refresh the opencode suite count comment (4 -> 12 on main).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|