Repository navigation
ci: complete sanitizer instrumentation and fix test data races - #370
Conversation
88f1525 to
32876c6
Compare
fbcb57e to
882583d
Compare
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 882583d1d3
ℹ️ 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".
| start.store(true, std::memory_order_release); | ||
| writer.join(); | ||
| start.store(false, std::memory_order_release); | ||
| reader.join(); |
There was a problem hiding this comment.
Separate the reader's start signal from its stop signal
If the reader is descheduled after reaching the barrier, the writer can complete all 2,000 iterations and the main thread can reset start to false before the reader observes true. The reader then spins forever in its initial while (!start.load(...)), and reader.join() hangs until CTest times out. The barrier only establishes arrival, not that the reader has observed the subsequent start signal. Use a one-shot start latch and a separate stop flag, or wait for reader acknowledgement before clearing the flag.
Useful? React with 👍 / 👎.
PR 评审:阻碍合入项清单基于当前 head 1. [CI 门禁未完成] 当前 head
|
…shots Replace the unsynchronized initialized_/kid_/keys_ members with a mutex-serialized init() that atomically publishes one shared immutable KeySet snapshot. Readers load the snapshot lock-free and are safe before, during, and after the first init(); copy/move construction and assignment serialize with init() and with assignment on the other object. The init-once no-op and read-only publication contract are preserved.
Fix environment alias resolution and override precedence in ConfigManager and cover the corrected behavior with unit tests.
…zation Instrument unit/SDK-smoke test targets for ThreadSanitizer, add a CTest JUnit checker so sanitizer failures cannot pass silently, fix security header and social login test initialization, and refresh the API baseline and TSan suppression/verification tooling.
882583d to
846a7ee
Compare
Complete ThreadSanitizer compilation coverage for Drogon/Trantor, AuthForge test/server targets, and the SDK consumer. Dependency package IDs carry the instrumentation flags; installed symbols and actual Session/main/server/SDK links are checked. UTC, ten consecutive real-Session passes, and a complete CTest run with JUnit rejection of empty, skipped, or not-run tests form the TSan gate.
First-party fixes
JwkManager::init()and copy/move/assignment, and publish immutableshared_ptr<const KeySet>snapshots atomically. Readers before, during, and after initialization observe a consistent empty or initialized snapshot;getKeyId()no longer returns a reference into mutable state.shared_ptr<const JwkManager>) and init-once semantics: a repeated successfulinit()remains a logged no-op returningtrue, while failed initialization remains retryable..envprecedence over process environment, andFULLA_ENVconsistency.FULLA_DB_NAMEand bounded DB/HTTP timeouts./oauth2/loginwhen memory storage has no identity repository, instead of falling through to the PostgreSQL-only legacyAuthServiceand crashing the process.Integration_P1_Auth_InvalidCredentials_DoNotCrashServer. Endpoint wrappers now fail rather than skip when the server cannot become ready.Validation at 846a7ee
master3b4abb87; the author's two JWK test commits are preserved unchanged in the final history.846a7ee0.No first-party suppression, skip, or expected-failure marker was added. The documented TSan suppressions are limited to upstream Trantor/OpenSSL/libpq boundaries; first-party reports remain gate failures.
Addresses #366