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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reenable git-daemon journey tests on CI by disabling artifact caching #1725

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

EliahKagan
Copy link
Member

@EliahKagan EliahKagan commented Dec 17, 2024

Running journey tests that use git-daemon broke in the test-journey CI job since #1634 for unknown reasons, and they were disabled in 9566488, as discussed in #1634 (review).

This reenables those journey tests on CI, and fixes them by disabling the rust-cache step that caches compiled artifacts. It's rather odd that this works, but it very much does seem to.

See #1634 (comment) for full details on this in a broader context, as well as other things I've tried and why none of the other things I've tried are ready to go yet.

I view this as a workaround rather than full-blown fix, but it seems to me that it's worth doing as a way to let those tests run on CI in a way that doesn't break anything else. With caching turned off, the test-journey job takes up to about 6:30 to finish; it seems to me that this may be acceptable even if not ideal, given the significantly greater running time of some of the other jobs.

This is, of course, only turning off artifact caching for the test-journey job, not for any other jobs.

@Byron
Copy link
Member

Byron commented Dec 17, 2024

That's wonderful, thanks so much for your help! Who would have thought…!

My own tests weren't conclusive despite realising that the listen for socket code in Git might be prone to flakiness in the face of E_AGAIN errors, which simply seem to occur more or less often for unknown reasons.

I am happy for the fix, and hope I won't have to look at this again anytime soon 😄.

@Byron Byron enabled auto-merge December 17, 2024 07:15
@Byron Byron merged commit 972d720 into GitoxideLabs:main Dec 17, 2024
20 checks passed
@EliahKagan EliahKagan deleted the run-ci/daemon branch December 17, 2024 07:22
@EliahKagan EliahKagan mentioned this pull request Dec 17, 2024
2 tasks
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request Dec 18, 2024
This reverts commit bf2abdb, the
supporting change in GitoxideLabs#1725 that refrained from caching build
artifacts from the `test-journey` job, since that no longer needs
to be avoided now that `git-daemon` journey tests aren't run on CI.

In 9566488 (GitoxideLabs#1634), journey tests that use `git-daemon` were
disabled on CI. GitoxideLabs#1725 tried reenabling them (65788e8) and fixing
them by no longer caching build artifacts with the `rust-cache`
action in the `test-journey` job (bf2abdb). This worked at the
time, but the exact reason it worked or how reliable it would be
were unknown. It stopped working shortly thereafter in 25b8480
(GitoxideLabs#1726), and those journey tests were re-disabled on CI in d1d3f7c,
which reverted 65788e8. However, bf2abdb was not reverted at that
time.

(The change in d1d3f7c from GitoxideLabs#1726, taken together with this
commit, effectively constitute a revert of PR GitoxideLabs#1725.)
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.

2 participants