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

馃彈 Fix CircleCI config check so it works with .git caching #35646

Merged
merged 1 commit into from
Aug 13, 2021
Merged

馃彈 Fix CircleCI config check so it works with .git caching #35646

merged 1 commit into from
Aug 13, 2021

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Aug 12, 2021

Background: With the introduction of .git caching on CircleCI, the repo initialization job often ends up with an outdated view of the main branch that is restored from the cache. This can cause our check for config freshness to incorrectly pass when it should fail. (The risk is that PRs will run an incomplete set of tests and go on to break main once merged.)

PR Highlights:

  • Fix initialize_repo.sh to actually update main. (It was doing a fetch, but wasn't updating the local main branch.)
  • Move the check to the Initialize Repository job so failures are detected at the very start, and logs are less confusing.

Screenshots: link

image
image

@rsimha rsimha self-assigned this Aug 12, 2021
@rsimha rsimha marked this pull request as ready for review August 12, 2021 19:57
@rsimha
Copy link
Contributor Author

rsimha commented Aug 12, 2021

This PR is all tested and ready to merge. I'll hold off on merging it until later tonight so it has minimal impact on developers who are actively working during the day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants