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

Enable check and test for all branches #290

Closed
wants to merge 2 commits into from

Conversation

congwang09
Copy link
Contributor

Enable check and test for all branches and all commits.

@coveralls
Copy link

coveralls commented Jun 13, 2024

Pull Request Test Coverage Report for Build 9500799262

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 52.322%

Totals Coverage Status
Change from base Build 9500593558: 0.0%
Covered Lines: 748
Relevant Lines: 1456

💛 - Coveralls

Copy link
Member

@sajith sajith left a comment

Choose a reason for hiding this comment

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

Unless I misunderstood something, these changes do not do anything new. Tests are already run against a PR branch on every push. That is what pull_request: means; we do not need a branches: under that.

@congwang09
Copy link
Contributor Author

Before this change, github actions only run code checks and tests after the PR is created. This change lets us see failed tests before the PR is created.

Screenshot 2024-06-13 at 10 15 47 AM

After the change the checks run on every commit:

Screenshot 2024-06-13 at 10 18 47 AM

@sajith
Copy link
Member

sajith commented Jun 13, 2024

Ah, so you want to run tests against every commit. The trouble with that is, we only get a limited amount of free CI time (3000 minutes per month, across all repositories in the organization) on GitHub's infrastructure. We will quickly run out of that resource if we run tests against every commit.

It is good enough that main branch passes tests, and code that we merge into the main branch passes tests.

@congwang09
Copy link
Contributor Author

Ah, so you want to run tests against every commit. The trouble with that is, we only get a limited number of free CI time (3000 minutes per month) on GitHub's infrastructure. We will quickly run out of that resource if we run tests against every commit.

It is good enough that main branch passes tests, and code that we merge into the main branch passes tests.

Oh I see. that makes sense. I'll close this PR.

@congwang09 congwang09 closed this Jun 13, 2024
@congwang09 congwang09 deleted the enable-check-all-branch branch June 13, 2024 14:31
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.

3 participants