Skip to content

Integration test for Standalone Activities delayed-start#1520

Open
eamsden wants to merge 2 commits into
mainfrom
ea/saa-delay-integration-test
Open

Integration test for Standalone Activities delayed-start#1520
eamsden wants to merge 2 commits into
mainfrom
ea/saa-delay-integration-test

Conversation

@eamsden
Copy link
Copy Markdown
Contributor

@eamsden eamsden commented May 13, 2026

What was changed

Added an integration test for the start_delay parameter to standalone activities.

Why?

There's no existing integration test verifying that the start_delay parameter is actually respected.

Checklist

  1. Closes (none)

  2. How was this tested:
    Integration test was run against the v1.7.1-standalone-nexus-operations tag from temporalio/cli

  3. Any docs updates needed?
    No

@eamsden eamsden requested a review from a team as a code owner May 13, 2026 20:59
@eamsden eamsden force-pushed the ea/saa-delay-integration-test branch from 5fc1e69 to 18cc276 Compare May 13, 2026 21:40
Comment thread tests/test_activity.py Outdated
Comment on lines +507 to +508
if elapsed_after_start < start_delay.total_seconds() - 0.5:
desc = await activity_handle.describe()
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.

This can be flaky in CI setting. It's better to check after completion that desc.last_started_time - desc.schedule_time >= start_delay.total_seconds() - 0.5.

Comment thread tests/test_activity.py Outdated
Comment on lines +482 to +485
if server_version is not None and server_version <= (1, 31, 0):
pytest.skip(
"Temporal server 1.31.0 accepts but does not honor standalone activity start_delay"
)
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.

Remove this and instead set DEV_SERVER_DOWNLOAD_VERSION in tests/__init__.py.

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