Skip to content

e2e: allow serial DPS registrations to complete - #1261

Merged
Carter Tinney (cartertinney) merged 3 commits into
mainfrom
agents/dps-group-registration-timeout
Sep 2, 2026
Merged

Carter Tinney (cartertinney) merged 3 commits into
mainfrom
agents/dps-group-registration-timeout

Conversation

@cartertinney

Copy link
Copy Markdown
Member

Summary

  • raise the DPS E2E suite timeout from 30 to 60 seconds
  • give X.509 group enrollment tests a 120-second timeout for three serial registrations
  • apply the group override consistently to sync/async and MQTT/MQTT-over-WebSockets cases

Why

DPS E2E build 163238 timed out in the async X.509 group enrollment MQTT-over-WebSockets case. The suite-level 30-second pytest timeout covered the entire test even though it performs three sequential network registrations.

The same outer timeout also matched the SDK registration stage's 30-second timeout, allowing pytest to interrupt single-registration tests before the SDK could surface its more useful operation error.

A 60-second default preserves bounded hang detection while allowing SDK errors to surface. The 120-second marker is limited to group tests that make three serial registration attempts.

Validation

  • Python 3.10 collected all 24 DPS E2E cases
  • verified 16 individual cases use the 60-second suite default
  • verified all 8 sync/async X.509 group cases use the 120-second override
  • Black and Ruff passed

Raise the DPS suite timeout above the SDK registration timeout so operation errors can surface, and give certificate group tests a larger backstop for their three sequential registrations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Calculate each serial group-registration timeout as 40 seconds per configured device so expanding or shrinking a group automatically updates its test backstop.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI 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.

🟢 Approval recommended

The timeout changes consistently cover all intended cases and match the stated validation.

Pull request overview

Raises DPS E2E timeouts to accommodate serial X.509 registrations while retaining hang detection.

Changes:

  • Increases the suite timeout from 30 to 60 seconds.
  • Applies calculated 120-second timeouts to all sync/async X.509 group cases.
File summaries
File Description
test_sync_certificate_enrollments.py Adds group timeout calculation and markers.
test_async_certificate_enrollments.py Adds equivalent async timeout handling.
pytest.ini Raises the default suite timeout.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cartertinney
Carter Tinney (cartertinney) merged commit b44e035 into main Sep 2, 2026
42 checks passed
@cartertinney
Carter Tinney (cartertinney) deleted the agents/dps-group-registration-timeout branch September 2, 2026 22:36
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.

3 participants