-
Notifications
You must be signed in to change notification settings - Fork 134
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
[BUG]: CI Test stage is hitting the one hour limit #1948
Labels
bug
Something isn't working
Comments
2 tasks
Slowest test by module:
Script to extract test times from the junit xml files: from collections import defaultdict
from xml.etree import ElementTree as ET
tree = ET.parse('report_pytest.xml')
root = tree.getroot()
times_by_class = defaultdict(float)
for testcase in root.iter('testcase'):
classname = testcase.attrib['classname']
runtime = float(testcase.attrib['time'])
times_by_class[classname] += runtime
runtimes = sorted(times_by_class.items(), key=lambda x: x[1], reverse=True)
print("Runtimes by class:")
for runtime in runtimes:
if runtime[1] > 5:
print(f"{runtime[0]}: {round(runtime[1], 1)} seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
24.10
Which installation method(s) does this occur on?
Docker
Describe the bug.
We're running into CI issues with our tests where we're hitting the 1 hour limit.
Initializing the containers takes ~15 minutes, leaving ~45 minutes for tests.
Test time looks like:
Minimum reproducible example
No response
Relevant log output
Click here to see error details
Full env printout
Click here to see environment details
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: