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

Share codegen binaries between all test runs #714

Merged
merged 4 commits into from
Feb 3, 2023
Merged

Conversation

csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Jan 9, 2023

In GHA, we build codegen_func and codegen_shared_obj without sanitisers to generate machine code for test runs. Currently, we do it once for every test run in the matrix. This PR changes the behaviour to build it once per workflow run.

Different jobs in the matrix run in parallel, so theoretically this change should not reduce overall runtime as the time we save in tests(<Sanitiser>) is now spent in conan-cache making conan-cache + tests(<Sanitiser>) the same. However, this does reduce considerably the aggregate runtime.

Take as an example a run without this fix and a run with this fix .

@csegarragonz csegarragonz self-assigned this Jan 9, 2023
@csegarragonz csegarragonz requested a review from Shillaker January 9, 2023 15:04
@csegarragonz csegarragonz merged commit a1c095d into main Feb 3, 2023
@csegarragonz csegarragonz deleted the share-codegen branch February 3, 2023 17:44
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