Skip to content

Add HTTP API concurrency regression test - #186

Merged
eviltester merged 1 commit into
masterfrom
codex/add-http-api-concurrency-regression-test
Sep 17, 2026
Merged

eviltester merged 1 commit into
masterfrom
codex/add-http-api-concurrency-regression-test

Conversation

@eviltester

Copy link
Copy Markdown
Owner

Summary

  • add a regression test showing generated HTTP API requests are serialized on the Thingifier model
  • include the requested TODO about moving synchronization lower for in-memory persistence/scaling work

Verification

  • mvn -B -pl thingifier -Dtest=ThingifierHttpApiRequestHandlingTest test
  • mvn -B -pl thingifier spotless:check checkstyle:check
  • full pre-commit Maven verification

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 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-09-17T09:48:14.595197Z 5f7ed22 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 5f7ed22469

ℹ️ 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".

Comment on lines +197 to +199
Assertions.assertFalse(
secondRequestEnteredHook.await(200, TimeUnit.MILLISECONDS),
"GET entered generated API processing before POST completed");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Coordinate the GET worker before asserting it is blocked

If the executor's second worker is not scheduled during this 200 ms window, the latch remains closed even after synchronization is removed; the test then releases the POST, the delayed GET runs, and every later assertion can pass. Ensure the GET worker has actually attempted the API call—for example, by capturing it in the expected blocked state—before treating failure to enter the hook as evidence of serialization.

AGENTS.md reference: AGENTS.md:L3-L4

Useful? React with 👍 / 👎.

Comment on lines +211 to +213
Assertions.assertTrue(
hooksRanInsideThingifierLock.get(),
"Generated API hook ran outside the Thingifier model lock");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Separate monitor ownership from request serialization

This assertion adds a distinct implementation-level rule to a test that already verifies request ordering and POST-to-GET data visibility. Serialization could remain correct after moving the lock lower, as the TODO proposes, or after replacing the intrinsic monitor, yet this assertion would fail; conversely, a failure does not identify which behavior regressed. Keep the domain-level serialization scenario focused and test exact monitor ownership separately only if it is an intentional contract.

AGENTS.md reference: AGENTS.md:L6-L8

Useful? React with 👍 / 👎.

@eviltester
eviltester merged commit 285a8a0 into master Sep 17, 2026
3 checks passed
@eviltester
eviltester deleted the codex/add-http-api-concurrency-regression-test branch September 17, 2026 09:49
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