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(ci): split off coverage workflow #1944

Merged
merged 6 commits into from
May 8, 2023
Merged

chore(ci): split off coverage workflow #1944

merged 6 commits into from
May 8, 2023

Conversation

joshua-goldstein
Copy link
Contributor

@joshua-goldstein joshua-goldstein commented May 5, 2023

In #1936 we observed that because we are using pull_request_target without a specific reference, we are not in fact checking out the PR branch. This PR splits the workflow into two, one only to run badger CI tests, and the other to run tests & report coverage results (using pr_target with the appropriate commit). This has the benefit that any issues with coverage are isolated to one workflow, which we could disable later if problems arise. This does create duplication of compute (all tests run x2) but we are using github hosted runners so we do not pay for this cost. This also aligns with our dgraph repo workflow setup.

@joshua-goldstein joshua-goldstein changed the title remove pr target, use pr instead chore(ci): remove pull_request_target May 5, 2023
@joshua-goldstein joshua-goldstein marked this pull request as ready for review May 5, 2023 00:36
skrdgraph
skrdgraph previously approved these changes May 5, 2023
@joshua-goldstein joshua-goldstein changed the title chore(ci): remove pull_request_target chore(ci): checkout merge commit on PR event May 5, 2023
@joshua-goldstein joshua-goldstein changed the title chore(ci): checkout merge commit on PR event chore(ci): split off coverage workflow May 5, 2023
Copy link
Contributor

@skrdgraph skrdgraph left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@joshua-goldstein joshua-goldstein merged commit 2c431a9 into main May 8, 2023
5 of 7 checks passed
@joshua-goldstein joshua-goldstein deleted the joshua/ci branch May 8, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants