Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase pytest timeout to 1200 seconds #969

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

sfc-gh-vnayak
Copy link
Contributor

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

@@ -131,7 +131,7 @@ markers =
doctest: doctest tests
# Other markers
timeout: tests that need a timeout time
addopts = --doctest-modules --timeout=300
addopts = --doctest-modules --timeout=1200
Copy link
Contributor Author

@sfc-gh-vnayak sfc-gh-vnayak Jul 24, 2023

Choose a reason for hiding this comment

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

The purpose of the timeout is to detect infinitely stalling tests; having a very wide timeout will help prevent non-stalling tests from failing when many test runs are occurring simultaneously.

@sfc-gh-vnayak sfc-gh-vnayak self-assigned this Jul 24, 2023
@sfc-gh-vnayak sfc-gh-vnayak added NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md bug Something isn't working labels Jul 24, 2023
@sfc-gh-vnayak sfc-gh-vnayak marked this pull request as ready for review July 24, 2023 21:56
@sfc-gh-vnayak sfc-gh-vnayak requested a review from a team as a code owner July 24, 2023 21:56
@sfc-gh-vnayak sfc-gh-vnayak enabled auto-merge (squash) July 24, 2023 22:01
Copy link
Collaborator

@sfc-gh-sfan sfc-gh-sfan left a comment

Choose a reason for hiding this comment

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

What is our action item to actually fix this?

@sfc-gh-vnayak sfc-gh-vnayak enabled auto-merge (squash) July 24, 2023 22:10
@sfc-gh-vnayak sfc-gh-vnayak merged commit ce49dec into main Jul 24, 2023
40 of 41 checks passed
@sfc-gh-vnayak sfc-gh-vnayak deleted the vnayak-increase-test-timeout branch July 24, 2023 22:54
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2023
@sfc-gh-aalam
Copy link
Contributor

What is our action item to actually fix this?

I'm not sure if pytest-timeout gives each parametrized test same amount of time to finish but only one of the several tests ran overtime. The timeout here was added recently so I didn't put too much time investigating. If this fails again, I'll create a JIRA and investigate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants