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

Refactor CI-Tests to show negative results #108

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

moorereason
Copy link
Contributor

Add negative check results to the CI-Tests output.

Assuming that a repo will only support one CI system, GithubStatuses and
GithubCheckRuns are merged into a single CITests function. Since both
GithubStatuses and GithubCheckRuns were essentially validating the same
PRs, it makes more sense to keep all of that state together in a single
check.

Additionaly, a single check can reduce the number of API queries once we
detect the CI system in use.

Fixes #96
Updates #95

Add negative check results to the CI-Tests output.

Assuming that a repo will only support one CI system, GithubStatuses and
GithubCheckRuns are merged into a single CITests function.  Since both
GithubStatuses and GithubCheckRuns were essentially validating the same
PRs, it makes more sense to keep all of that state together in a single
check.

Additionaly, a single check can reduce the number of API queries once we
detect the CI system in use.

Fixes ossf#96
Updates ossf#95
Copy link
Contributor

@inferno-chromium inferno-chromium left a comment

Choose a reason for hiding this comment

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

One function has its pros and cons, but i kind of agree that saving the api use count is more important, also, less code duplication, just that dont like code complication, but dont have other ideas.

@inferno-chromium inferno-chromium merged commit a239820 into ossf:main Dec 23, 2020
@inferno-chromium
Copy link
Contributor

@moorereason - can you please help to fix the other checks as well to log negative results. Right now, it is a mix and slightly confusing. Your help is appreciated!

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.

Erroneous inconclusive CI-Tests result
2 participants