-
Notifications
You must be signed in to change notification settings - Fork 379
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
ci: relax hard-coded version check for git #1211
ci: relax hard-coded version check for git #1211
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can relax the exact version match check, but we do need to exit the process if NO version of git exists to ensure we don’t release an image that does not have git installed, which happened before here: #874
Can you update the check to exit if a git version is not found at all?
The logic is the same as for |
Issue
CircleCI contains a check for a fixed version of
git
, however this version is not under control of thefactory
build process. This causes unplanned workflow failures when new versions ofgit
are released.This is the hard-coded check:
cypress-docker-images/circle.yml
Lines 132 to 141 in dc421e7
The version of
git
depends on theBASE_IMAGE
:cypress-docker-images/factory/.env
Line 9 in dc421e7
and so far this is a Debian image, it depends also on the currently distributed package version according to Package git which is picked up by the build process:
cypress-docker-images/factory/factory.Dockerfile
Lines 33 to 34 in dc421e7
causing a refresh each time the
cypress/factory
image is rebuilt. This is what breaks the workflow jobcheck-factory-versions
from time to time.Change
Remove the check for a specific version of
git
and report the version ofgit
found.This method is already used in the
ssh
check in the workflow lines of code following thegit
version check.