Skip to content

feat(acts): sequential test runner - #62

Merged
JakubWorek merged 3 commits into
jakubworek/acts-assertionsfrom
jakubworek/acts-runner
Sep 9, 2026
Merged

JakubWorek merged 3 commits into
jakubworek/acts-assertionsfrom
jakubworek/acts-runner

Conversation

@JakubWorek

@JakubWorek JakubWorek commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Stacked on #61. Base is jakubworek/acts-assertions, so this diff shows only the runner. Retargeting as the branches below land.

Summary

Adds runner.py: the part that decides what happened. Everything it needs already exists - the loader produced the plan, dispatcher/ performs a call on one binding, and assertions.py and variables.py say what a response means. This sequences them and turns the outcome into §13.3 results.

Two distinctions carry the design.

Fail is not error. A fail is a statement about the SUT: it answered, and its answer did not conform. An error is a statement about the run: the call could not be completed, or the test referred to a variable nobody defined. Reporting the second as the first would put a bug in our runner into somebody else's conformance record. The split shows up in unobvious places - a capture whose path misses is a fail, because the path is well-formed and the SUT simply answered with the wrong shape, while an undefined {{variable}} is an error.

Skip is not fail either. A SUT that does not advertise push notifications is not non-conformant for lacking them (§12.5), and neither is one reached over a binding the test does not target (§12.3). Missing tck-* behaviours are the deliberate exception: those fail, because a skip would let an SDK's lagging support disappear quietly from its own report. sut_behaviors=None turns the gate off entirely, which is how a repo behaves before it adopts §11.

Notes

  • Assertions are substituted, not only params. expect.body routinely asserts id: "{{send.taskId}}", so the whole expect / expect_error / assertions tree is resolved against the scope first. The one field deliberately left alone is named-assertion.source, which is a reference resolved separately into the value the assertion runs against.
  • A failing step stops its test. Later steps read its captures, so continuing yields a page of failures that all describe one cause.
  • run_suite is sequential on purpose: tests share one SUT whose task list is global to it, so CORE-LIST-* is only meaningful if nothing else is creating tasks concurrently.
  • sleep and clock are injectable, which is the only reason the tests finish - the corpus polls with delay_ms: 2000, max_attempts: 15.
  • The concrete dispatchers now load lazily (PEP 562). import test_suite.acts must not pull in grpc, a property exporting Runner had broken; a test pins it.

Against a SUT that answers {} to everything, all 111 corpus tests reach a verdict on all three bindings and none errors.

@JakubWorek
JakubWorek force-pushed the jakubworek/acts-runner branch from 9411653 to 55a7eb5 Compare September 7, 2026 07:53
Comment thread test_suite/acts/runner.py Resolved
@JakubWorek
JakubWorek merged commit 89f4560 into main Sep 9, 2026
2 checks passed
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.

2 participants