close
Skip to content

Set the cloudtest session timeout to 4 hours#40291

Draft
OneBlue wants to merge 1 commit intomasterfrom
user/oneblue/test-timeout
Draft

Set the cloudtest session timeout to 4 hours#40291
OneBlue wants to merge 1 commit intomasterfrom
user/oneblue/test-timeout

Conversation

@OneBlue
Copy link
Copy Markdown
Collaborator

@OneBlue OneBlue commented Apr 23, 2026

Summary of the Pull Request

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Copilot AI review requested due to automatic review settings April 23, 2026 20:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to extend CloudTest session lifetime to avoid test sessions timing out during longer runs.

Changes:

  • Adds sessionTimeout to the CloudTest pipeline job template.
  • Adds a 24-hour sleep inside an existing Windows unit test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/windows/UnitTests.cpp Introduces a sleep_for(std::chrono::days(1)) in a unit test (causes test run to hang).
.pipelines/test-job.yml Adds sessionTimeout setting for CloudTestServerBuildTask@2.

Comment on lines +6561 to +6562

std::this_thread::sleep_for(std::chrono::days(1));
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

std::this_thread::sleep_for(std::chrono::days(1)) will cause this unit test to hang for 24 hours, effectively blocking the entire test run/CI. If the intent is to extend CloudTest session lifetime, this should not be done inside a test case—remove this sleep and adjust the pipeline/session timeout configuration instead.

Suggested change
std::this_thread::sleep_for(std::chrono::days(1));

Copilot uses AI. Check for mistakes.
Comment thread .pipelines/test-job.yml
pipelineArtifactBuildUrl: '$(System.TaskDefinitionsUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)'
buildDropArtifactName: ""
timeoutInMinutes: 360
sessionTimeout: 360
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

The PR title indicates a 4 hour CloudTest session timeout, but sessionTimeout is set to 360 (which matches the other *InMinutes values here and would be 6 hours if interpreted as minutes). Please confirm the units expected by CloudTestServerBuildTask@2 and adjust the value to match the intended 4 hour timeout (and keep it consistent with the job/task timeoutInMinutes).

Copilot uses AI. Check for mistakes.
@benhillis
Copy link
Copy Markdown
Member

Why does it need to be so long? The tests run in 30 minutes or so for wsl1 and 1.5 hours for wsl2

@OneBlue
Copy link
Copy Markdown
Collaborator Author

OneBlue commented Apr 24, 2026

Why does it need to be so long? The tests run in 30 minutes or so for wsl1 and 1.5 hours for wsl2

That's because the watchdog timeout kicks in after 3 hours. I'm counting one hour to capture the dump and upload them to be safe

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