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: refactor PR and dev workflows #1172

Merged
merged 7 commits into from
Jun 26, 2023
Merged

ci: refactor PR and dev workflows #1172

merged 7 commits into from
Jun 26, 2023

Conversation

swiatekm
Copy link

This PR adds reusable workflows for building otel binaries and running tests. It also makes some changes to behaviour relative to the current state.

Caching now works differently. We still have a separate cache per OS and architecture, but the cache is only ever saved on main, and branches just use it. This is to cut down on unnecessary branch caches, which is especially important now that we also save the build cache, which significantly speeds up execution.

For this reason, we now always run tests on main - we need to build the test cache for branches.

I've left the release workflow alone for now, as it might need to be refactored further to use the new build workflow, and I didn't want to make this PR more complicated than it already is. It might be easier to review commit-by-commit.

The end result is CI executions for PRs taking 40-50% less time. See https://github.com/swiatekm-sumo/sumologic-otel-collector/pull/6. In general, that repo has all the changes in main, so they've all been tested.

@github-actions github-actions bot added the github_actions Pull requests that update Github_actions code label Jun 22, 2023
@swiatekm swiatekm marked this pull request as ready for review June 22, 2023 09:50
@swiatekm swiatekm requested a review from a team as a code owner June 22, 2023 09:50
@swiatekm swiatekm merged commit 4f57d7f into main Jun 26, 2023
27 of 28 checks passed
@swiatekm swiatekm deleted the ci/refactor-dev-pr branch June 26, 2023 09:06
This was referenced Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants