Repository navigation
chore(lint): prohibit thread-local state outside unit tests - #1533
Conversation
|
This pull request is part of a Mergify stack:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
5678bad to
9f55e70
Compare
ab0ad03 to
05325cd
Compare
Revision history
|
05325cd to
43f5232
Compare
f99483e to
c6c1fcf
Compare
43f5232 to
4b98355
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b98355585
ℹ️ 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".
4b98355 to
7fa455a
Compare
c6c1fcf to
4a0c90a
Compare
Merge Queue Status
This pull request spent 3 hours 33 minutes 47 seconds in the queue, including 4 hours 29 seconds running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Disallow std::thread_local in the workspace Clippy configuration and in the verifier crates that override it. The existing deny-level disallowed_macros lint makes production reintroduction a build failure. Permit instrumentation only in cfg(test) library builds. Clippy reports this item macro at crate scope, so per-item/module allowances are ineffective; normal library/example targets keep the prohibition. Remove production CLI macro allowances and write diagnostics through stderr writers, keeping the prohibition active throughout benchmark entry points. Full CI lints every workspace crate rather than a fixed package list. Generated conformance capture code is test harness code and is outside the product workspace. Validation: the affected crates pass all-target Clippy with the prohibition. A temporary non-test example containing thread_local was rejected by clippy::disallowed_macros, then removed. Formatting and config parsing pass. Review validation: full workspace all-target Clippy with the CI feature set passes without warnings; all 14 CI workflow tests and formatting pass. Change-Id: I7d46d5ede1bdc41ea58b7a58c7eb0ced81e5a1de
7fa455a to
643ba1e
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Merge Queue Status
This pull request spent 25 minutes 59 seconds in the queue, including 49 minutes 49 seconds running CI. Required conditions to merge
|
Disallow std::thread_local in the workspace Clippy configuration and in the
verifier crates that override it. The existing deny-level disallowed_macros lint
makes production reintroduction a build failure.
Permit instrumentation only in cfg(test) library builds. Clippy reports this
item macro at crate scope, so per-item/module allowances are ineffective;
normal library/example targets keep the prohibition. Remove production CLI macro allowances and write diagnostics through stderr
writers, keeping the prohibition active throughout benchmark entry points.
Full CI lints every workspace crate rather than a fixed package list. Generated conformance
capture code is test harness code and is outside the product workspace.
Validation: the affected crates pass all-target Clippy with the prohibition.
A temporary non-test example containing thread_local was rejected by
clippy::disallowed_macros, then removed. Formatting and config parsing pass.
Review validation: full workspace all-target Clippy with the CI feature set
passes without warnings; all 14 CI workflow tests and formatting pass.
Depends-On: #1559