Change to GIX_TEST_IGNORE_ARCHIVES
on CI and docs to match code
#1360
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test suite checks for
GIX_TEST_IGNORE_ARCHIVES
and not forGITOXIDE_TEST_IGNORE_ARCHIVES
. But the main test workflowci.yml
, as well as in the instructions inDEVELOPMENT.md
, had givenGITOXIDE_TEST_IGNORE_ARCHIVES
. This fixes that.I'm unsure what the effect was in practice of this disparity. Experimentation with modified workflows in my fork has not revealed any messages indicating that generated archives are skipped, before or after this change. The explanation in
DEVELOPMENT.md
says that they are absent on CI for Linux because they are never checked out from Git LFS, but runninggit lfs ls-files
doesn't show anything on any systems, even after runninggit lfs install
andgit lfs pull
(the latter of which entailsgit lfs checkout
, but I have also tried running that just in case). In addition, I think I recall your having said that archives that were formerly stored in Git LFS are now stored normally in the repository (due to limitations of Git LFS in GitHub).However, at least the documentation fix is important. In #1345 (comment) I had mentioned that I had thought I'd run the tests with
GIX_TEST_IGNORE_ARCHIVES=1
before and found them to pass, yet that is not the case (#1358). I now believe what I had set was insteadGITOXIDE_TEST_IGNORE_ARCHIVES=1
, based on the instructions inDEVELOPMENT.md
. I have since verified again thatGIX_TEST_IGNORE_ARCHIVES=1
produces the failures documented in #1358, whileGITOXIDE_TEST_IGNORE_ARCHIVES=1
has no effect compared to not setting any environment variables and does not produce any failures (presumably due to not causing archives to be ignored).An alternative to these changes could be to modify the code so
GITOXIDE_TEST_IGNORE_ARCHIVES
is recognized, or so that both names are recognized.I suggest reviewing this to ensure that, at least after this PR (if not before), CI tests without using generated archives in at least one job at least on Ubuntu, so that changes to shell scripts are being validated. As mentioned above, based on the (admittedly nonequivalent) CI results within my fork, I am not confident of this.