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

only run github ci checks once #494

Merged
merged 1 commit into from
Apr 19, 2023
Merged

only run github ci checks once #494

merged 1 commit into from
Apr 19, 2023

Conversation

metachris
Copy link
Collaborator

πŸ“ Summary

Before they were always run twice (once for push and once for PR). This PR makes the checks run only once.


βœ… I have run these commands

  • make lint
  • make test-race
  • go mod tidy

@codecov-commenter
Copy link

Codecov Report

Merging #494 (3d9f29c) into main (9acaf56) will increase coverage by 0.23%.
The diff coverage is n/a.

πŸ“£ This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #494      +/-   ##
==========================================
+ Coverage   68.79%   69.03%   +0.23%     
==========================================
  Files           8        8              
  Lines        1269     1269              
==========================================
+ Hits          873      876       +3     
+ Misses        346      345       -1     
+ Partials       50       48       -2     
Flag Coverage Ξ”
unittests 69.03% <ΓΈ> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM πŸ‘ just one nit.

@@ -2,8 +2,9 @@ name: Tests

on:
push:
branches:
- main
pull_request:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: we can remove this section now, right? (for both of the files)

Suggested change
pull_request:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we cannot remove this section, because then the checks wouldn't run on PRs!

@jtraglia
Copy link
Collaborator

jtraglia commented Apr 19, 2023

Though, are you sure this is the desired behavior? Without this, I don't believe it will run CI checks for PRs. And I think it's pretty useful to see the CI checks in PRs.

@ralexstokes
Copy link
Collaborator

yeah if anything I'd rather enforce the checks at the PR, then not bother with running them "twice" on the main branch

that being said I am also curious why we need to change from the status quo in the first place?

@avalonche
Copy link
Collaborator

I think this is correct, ci checks are running for every pull request (as seen in this PR)

@metachris
Copy link
Collaborator Author

metachris commented Apr 19, 2023

We need to change from status quo because in the current configuration, checks are only run for PRs to the main branch, but they should be run on any PR (i.e. you open a PR to another PR/another branch).

The new configuration is correct -- run checks on every PR, and on any push to main branch too (i.e. after a merge)

@jtraglia
Copy link
Collaborator

Okay, sounds good to me πŸ‘

@jtraglia jtraglia merged commit 0d18c27 into main Apr 19, 2023
@jtraglia jtraglia deleted the github-ci-fix branch April 19, 2023 18:04
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.

5 participants