Skip to content

Mark integration tests that require a local server - #2281

Draft
THardy98 wants to merge 2 commits into
mainfrom
agent/local-server-test-marker
Draft

Mark integration tests that require a local server#2281
THardy98 wants to merge 2 commits into
mainfrom
agent/local-server-test-marker

Conversation

@THardy98

@THardy98 THardy98 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Running the normal AVA suite through envconfig needs a TypeScript equivalent of Python's requires_local_server marker. Without one, tests that depend on dev-server configuration either fail against Cloud or silently launch local infrastructure and make Cloud coverage ambiguous.

This change adds an internal requiresLocalServer(reason, test) adapter and a requiresLocalServer option to the shared integration-test factory. When envconfig selects the test server, annotated tests and hooks are registered as skipped, so suite setup cannot launch a local server; with the gate disabled, the original AVA function is returned unchanged. The shared integration helper also rejects local server options in envconfig mode rather than silently ignoring them.

Focused coverage verifies local pass-through, Cloud skips for tests and hooks, mandatory reasons, and rejection of server-only options. The seven combined Cloud-foundation AVA tests pass. The package TypeScript build reaches only the two pre-existing ActivityExecutionStatus.PAUSED errors on current main.

Part of temporalio/features#851.

@THardy98 THardy98 added the skip-changelog No changelog is necessary for this PR. label Aug 3, 2026 — with ChatGPT Codex Connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog No changelog is necessary for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant