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

Add timeout for target_experiment.py #11972

Merged
merged 3 commits into from
May 20, 2024
Merged

Add timeout for target_experiment.py #11972

merged 3 commits into from
May 20, 2024

Conversation

DonggeLiu
Copy link
Contributor

@DonggeLiu DonggeLiu commented May 19, 2024

Add a 3-hour timeout to target_experiment.py, which should be more than enough given fuzzing timeout is 30 minutes and most successful cloud builds finish in 2.5 hours empirically.

@DonggeLiu
Copy link
Contributor Author

DonggeLiu commented May 19, 2024

Script coverage already has timeouts for each test case and all test cases.

This PR ensures it won't be delayed by other steps.

@DonggeLiu
Copy link
Contributor Author

DonggeLiu commented May 19, 2024

This should be able to capture timeout error from target_experiment.py.

I suppose there is no point in re-trying a timeout error?

'coverage',
target_name,
'-c',
(f'timeout 30m coverage {target_name}; ret=$?; [ $ret -eq 124 ] '
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment for where 124 comes from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@DonggeLiu DonggeLiu enabled auto-merge (squash) May 20, 2024 01:03
@DonggeLiu
Copy link
Contributor Author

/gcbrun skip

@DonggeLiu DonggeLiu disabled auto-merge May 20, 2024 01:03
@DonggeLiu
Copy link
Contributor Author

/gcbrun skip

@DonggeLiu DonggeLiu enabled auto-merge (squash) May 20, 2024 01:12
@DonggeLiu DonggeLiu disabled auto-merge May 20, 2024 01:37
@DonggeLiu
Copy link
Contributor Author

The CI failure is unrelated.

@DonggeLiu DonggeLiu merged commit da925a6 into master May 20, 2024
18 of 19 checks passed
@DonggeLiu DonggeLiu deleted the timeout_target_exp branch May 20, 2024 01:38
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.

2 participants