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

[chore] Do more steps in parallel in build-and-test workflow #30891

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

TylerHelmuth
Copy link
Member

@TylerHelmuth TylerHelmuth commented Jan 30, 2024

Description:
The build-and-test workflow takes a long time. Part of the issue is that we spend a lot of time waiting for long jobs, such as integration tests, to finish before moving onto more long jobs.

This PR attempts to parallelize more steps by removing some existing ordering we've restricted ourselves to. Specifically this moves the cross-compile chain to start in parallel with the unit tests, lint, and integration tests. My reasoning is that if a unit tests or lint is bad it will still get caught and we don't need unit tests to pass to attempt to compile the code. I have update the publish-check step to still depend on all these steps.

Link to tracking Issue:

Related to #30880

@TylerHelmuth TylerHelmuth marked this pull request as ready for review January 30, 2024 21:18
@TylerHelmuth TylerHelmuth requested review from a team and dmitryax January 30, 2024 21:18
@codeboten codeboten added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 30, 2024
@codeboten codeboten merged commit 183b328 into open-telemetry:main Jan 30, 2024
91 of 92 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 30, 2024
@TylerHelmuth TylerHelmuth deleted the unit-test-improvements branch January 30, 2024 21:58
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Feb 1, 2024
…lemetry#30891)

The build-and-test workflow takes a long time. Part of the issue is that
we spend a lot of time waiting for long jobs, such as integration tests,
to finish before moving onto more long jobs.

This PR attempts to parallelize more steps by removing some existing
ordering we've restricted ourselves to. Specifically this moves the
cross-compile chain to start in parallel with the unit tests, lint, and
integration tests. My reasoning is that if a unit tests or lint is bad
it will still get caught and we don't need unit tests to pass to attempt
to compile the code. I have update the publish-check step to still
depend on all these steps.

Related to
open-telemetry#30880
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants