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

[CI][Hexagon] Forward gtest tests into pytest as separate tests #17334

Merged

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, all Hexagon test cases in tests/cpp-runtime/hexagon were executed as part of a single unit test in pytest. This can take a significant portion of the total timeout in CI (~50 minutes out of a 2-hour timeout). While the hexagon tests are split out onto 8 separate runners, having a single large test can cause timeouts on whichever runner happens to receive it.

This commit exposes each unit test from tests/cpp-runtime/hexagon into a separate unit test in pytest, to avoid these timeouts.

Prior to this commit, all Hexagon test cases in
`tests/cpp-runtime/hexagon` were executed as part of a single unit
test in pytest.  This can take a significant portion of the total
timeout in CI (~50 minutes out of a 2-hour timeout).  While the
hexagon tests are split out onto 8 separate runners, having a single
large test can cause timeouts on whichever runner happens to receive
it.

This commit exposes each unit test from `tests/cpp-runtime/hexagon`
into a separate unit test in pytest, to avoid these timeouts.
Copy link
Contributor

@quic-sanirudh quic-sanirudh left a comment

Choose a reason for hiding this comment

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

Nice idea to use the gtest filter to split these tests. Thanks for this.

@Lunderberg
Copy link
Contributor Author

Thank you! It looks like the hexagon tests now have a narrower spread in runtimes across the shards, though there's still some variation (about 1h20m to 1h50m), probably depending on which shard happens to get the long runtime test cases.

For now, hopefully this will help avoid having timeouts during CI.

@Lunderberg Lunderberg merged commit 26fec76 into apache:main Sep 5, 2024
17 of 18 checks passed
@Lunderberg Lunderberg deleted the ci_hexagon_break_up_call_to_gtest branch September 5, 2024 16:45
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