Skip to content

Conversation

@prandla
Copy link
Member

@prandla prandla commented Aug 28, 2025

The functional test suite depended on a Git repo being present solely to find the repo root. This means .git also needs to be included in the docker images, which is actually unnecessary. (I'd call it wasteful, but really it's just a blip compared to all the compilers included in the docker image. But having the entire repo history there doesn't serve any useful purpose and might lead to details inadvertently being published if these docker images are pushed to dockerhub.)

Instead, I made the test suite not depend on the repo root existing at all; all files and executables are found relative to the installation (i.e. virtualenv) root.

Then I added .git to .dockerignore to take advantage of this. I also added .jj there, it's the VCS I use and it effectively serves the same purpose as .git.

Also, I tweaked the shell scripts in docker/ a bit: When the git repo is in a detached HEAD state (which it always is when using jj), GIT_BRANCH_NAME became "HEAD", which docker does not like as a project name. So I lowercased it and added a cms- in front for good measure.

When the git repo is in a detached HEAD state, GIT_BRANCH_NAME became
"HEAD", which docker does not like as a project name. So I lowercased it
and added a cms- in front for good measure.
@prandla prandla force-pushed the functionaltests-git branch from bd81d0f to d092e80 Compare August 28, 2025 22:35
@prandla prandla merged commit 55b2064 into cms-dev:main Aug 29, 2025
4 checks passed
@prandla prandla deleted the functionaltests-git branch August 29, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants