Skip to content

Add unit tests for Continuation logic - #13283

Merged
JosiahWI merged 4 commits into
apache:masterfrom
JosiahWI:feat/test-continuation
Jun 22, 2026
Merged

Add unit tests for Continuation logic#13283
JosiahWI merged 4 commits into
apache:masterfrom
JosiahWI:feat/test-continuation

Conversation

@JosiahWI

Copy link
Copy Markdown
Contributor

This change was generated by Claude Opus 4.7 from API contracts I have not yet opened PRs for. It does not touch existing files other than one CMakeLists.txt, so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics carefully for correctness. The default delay for the CountingContinuation wait is five seconds; I think a wait with a timeout is an acceptable way to test this, and five seconds should be plenty. If an event scheduled to run immediately doesn't call back the associated continuation within five seconds, that's probably unacceptable performance and worth failing the test for. :D

This change was generated by Claude Opus 4.7 from API contracts I have not yet
opened PRs for. It does not touch existing files other than one CMakeLists.txt,
so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics
carefully for correctness. The default delay for the `CountingContinuation` wait
is five seconds; I think a wait with a timeout is an acceptable way to test
this, and five seconds should be plenty. If an event scheduled to run immediately
doesn't call back the associated continuation within five seconds, that's
probably unacceptable performance and worth failing the test for. :D
@JosiahWI JosiahWI added this to the 11.0.0 milestone Jun 16, 2026
@JosiahWI JosiahWI self-assigned this Jun 16, 2026
Comment thread src/iocore/eventsystem/unit_tests/inkevent_test_fixtures.h Outdated
moonchen
moonchen previously approved these changes Jun 21, 2026

@moonchen moonchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Saw your "need to remove this" 😡 — I assume the duplicate EventProcessorListener gets reconciled in a follow-up? Happy to leave it for a later PR since this is test-only.

@JosiahWI

Copy link
Copy Markdown
Contributor Author

@moonchen I was mad at the FR-003 in the comment text. The agent sometimes refers to various parts of its spec documents in the code comments, which is unhelpful, since you don't have access to the spec documents.

Do you mean the duplicate listeners in the existing unit test files? I can file a PR for that following this one. 👍

@JosiahWI
JosiahWI merged commit a344dec into apache:master Jun 22, 2026
15 checks passed
@JosiahWI
JosiahWI deleted the feat/test-continuation branch June 22, 2026 17:54
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* Add unit tests for `Continuation` logic

This change was generated by Claude Opus 4.7 from API contracts I have not yet
opened PRs for. It does not touch existing files other than one CMakeLists.txt,
so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics
carefully for correctness. The default delay for the `CountingContinuation` wait
is five seconds; I think a wait with a timeout is an acceptable way to test
this, and five seconds should be plenty. If an event scheduled to run immediately
doesn't call back the associated continuation within five seconds, that's
probably unacceptable performance and worth failing the test for. :D
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* Add unit tests for `Continuation` logic

This change was generated by Claude Opus 4.7 from API contracts I have not yet
opened PRs for. It does not touch existing files other than one CMakeLists.txt,
so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics
carefully for correctness. The default delay for the `CountingContinuation` wait
is five seconds; I think a wait with a timeout is an acceptable way to test
this, and five seconds should be plenty. If an event scheduled to run immediately
doesn't call back the associated continuation within five seconds, that's
probably unacceptable performance and worth failing the test for. :D

(cherry picked from commit a344dec)
@cmcfarlen cmcfarlen moved this to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Jul 29, 2026
@github-project-automation github-project-automation Bot moved this from Picked v10.2.0 to For v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

3 participants