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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[coverage-revision] Use CI coverage revision when possible #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyoor
Copy link
Contributor

@pyoor pyoor commented Feb 13, 2023

No description provided.

Copy link
Contributor

@jschwartzentruber jschwartzentruber left a comment

Choose a reason for hiding this comment

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

This might be easier in fuzzfetch, but what about checking for stale revisions? (like we just saw)

ie. Fetch the CI_LATEST from mozcov, fetch the metadata with fuzzfetch --build $CI_LATEST, and if it looks like it's older than a week, then fallback as if we didn't get a good revision. Otherwise we may end up doing coverage runs on revisions we've already collected coverage for, which is a waste of time, and masks the problem.


# Validate that we got a proper revision
CI_LATEST=$(retry-curl --silent https://api.coverage.moz.tools/v2/history | jq -r '.[0].changeset')
Copy link
Contributor

Choose a reason for hiding this comment

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

--silent is already included in retry-curl

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.

None yet

2 participants