-
Notifications
You must be signed in to change notification settings - Fork 510
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
BUG: CI-Tests sometimes doesn't appear in the CLI's results. #2746
Comments
Have you noticed duplicate Code-Review entries? |
I have not, but they may have gone unnoticed given how I was parsing the results. I'll try to investigate. |
Just inspected a new case and yes, there's two Code-Review blocks. {
"details": null,
"score": 9,
"reason": "27 out of last 30 changesets reviewed before merge -- score normalized to 9",
"name": "Code-Review",
"documentation": {
"url": "https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#code-review",
"short": "Determines if the project requires code review before pull requests (aka merge requests) are merged."
}
},
{
"details": null,
"score": -1,
"reason": "internal error: internal error: Client.Repositories.ListStatuses: internal error: ListStatuses: GET https://api.github.com/repos/easymock/objenesis/commits/1ad0fe19f872d675d6c29ea9103122813ad7c9f1/statuses: 400 []",
"name": "Code-Review",
"documentation": {
"url": "https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#code-review",
"short": "Determines if the project requires code review before pull requests (aka merge requests) are merged."
}
}, It is worth emphasizing, however, that I've been running this script of 200 repositories quite a few times now, and so far it's only ever been CI-Tests that's been "missing" from the output, while #2686 shows a case where it was Contributors instead... |
The I'm weary of this codeblock, even though we shadow the key and value: Lines 48 to 60 in 23bd295
|
EDIT: still occurring, so I'm guessing this wasn't the problem. But it does appear to occur after Scorecard sleeps to wait for API quota Thanks to the Chainguard Imposter Commit blog I found out this is easy to checkout in the normal ossf/scorecard repo:
|
Good catch! Hadn't noticed that. Looking at my logs I can confirm that every single time this happened, it was after sleeping for the quota. |
Note: #2686 was indeed the |
Should be fixed after merging #2756 |
Describe the bug
Sometimes (~1% of the times) CI-Tests is not included in the output from the Scorecard CLI. No exceptions are thrown, the result set simply only contains 17 checks.
Reproduction steps
This one is tough to reproduce. It happens very rarely and not always on the same repositories.
I'm using the CLI to run Scorecards on 200 projects. Usually 1-2 projects (different projects each time) simply don't have results for CI-Tests.
Each run of the CLI takes the form
scorecard --repo=owner/repo --format=json
. Running Scorecard on the same repositories later successfully gives a result for the check (with and without--checks=CI-Tests
).The text was updated successfully, but these errors were encountered: