Skip to content

test: allocate capacity slot IDs atomically - #48

Merged
sumitake merged 1 commit into
mainfrom
dev/grok/atomic-capacity-slot-ids
Aug 31, 2026
Merged

test: allocate capacity slot IDs atomically#48
sumitake merged 1 commit into
mainfrom
dev/grok/atomic-capacity-slot-ids

Conversation

@sumitake

Copy link
Copy Markdown
Owner

Fixes the remaining live race behind GitHub-ActionRunner CI failures.

go test -race failed on dev/codex/qts-live-source-runner (33350226801) in nextCapacitySlotID (internal/state/sqlite_test.go). That helper still does slotCounter++ on main, so the same race can flake default-branch CI.

This ports the isolated atomic counter already proven on that branch HEAD (89f72e72, CI green). Local go test -race -count=1 ./internal/state/ passes.

Historical failed runs on superseded SHAs (closed Dependabot branches, pre-#43 sanitization) cannot be rewritten; current main sanitization is already green after #43.

go test -race on internal/state failed on a sibling branch because
nextCapacitySlotID mutated a package-level uint32 from parallel tests.
Use atomic.Uint32 so main cannot flake the same way.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 196e3e93-0f5f-4814-ae69-c458b9f64b13


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

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 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-08-31T04:59:30.427538Z cb48b90 PR opened
ℹ️ 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.

@sumitake
sumitake merged commit fa018ea into main Aug 31, 2026
19 checks passed
@sumitake
sumitake deleted the dev/grok/atomic-capacity-slot-ids branch August 31, 2026 05:03
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