[SERVER-34696] Reduce timeout_secs for required builders from 2 hour default to 30 minutes Created: 26/Apr/18  Updated: 29/Oct/23  Resolved: 01/May/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: David Bradford (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-34832 Change timeout for auth test suite on... Closed
is related to SERVER-34697 Stop setting timeout_secs expansion f... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2018-05-07
Participants:

 Description   

The ${timeout_secs} expansion controls how long before the Evergreen agent not seeing any new output from the process causes it to declare that the task has timed out. Based on the log messages that resmoke.py writes to its stdout for when a test starts and completes, this timeout effectively corresponds to the maximum duration we'd want to allow a single test to run for. While we cannot guarantee that all tests finish within 30 minutes (e.g. tests run slower on Code Coverage builder), it should be possible to enforce that no test runs longer than 30 minutes on the required builders.

The changes from EVG-2948 introduced a new timeout.update command that can be used to programmatically set a timeout specific to a particular (task, build variant) combination. We should create a script that has the following behavior:

  • if an Evergreen task already specifies ${timeout_secs} as part of calling the "run tests" function (e.g. the fuzzer-related tasks), then the timeout used for the timeout.update command should stay the same as it is now
  • otherwise
    • if the Evergreen builder is required for patch builds, then the timeout used for the timeout.update command should be lowered to 30 minutes
    • otherwise, the timeout used for the timeout.update command should be explicitly set to 2 hours


 Comments   
Comment by Githook User [ 01/May/18 ]

Author:

{'email': 'david.bradford@mongodb.com', 'name': 'David Bradford', 'username': 'dbradf'}

Message: SERVER-34696: Add 30 minute timeout for tests in evergreen
Branch: master
https://github.com/mongodb/mongo/commit/7085d08f22a8bf90e455ae5bc95d5444889c1ea6

Generated at Thu Feb 08 04:37:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.