Harden CI against flaky maven downloads#35
Merged
Conversation
Transient TerraformersMC maven failures ("Premature end of chunk coded
message body" while downloading modmenu) were killing whole workflow runs.
Three layers of defense:
- Retry: .github/scripts/retry.sh reruns a failed command with a growing
pause (3 attempts by default, 2 for the slow launch tests); every Gradle
step in build.yml and publish.yml now goes through it.
- Modrinth maven fallback: gradle/modrinth-fallback.gradle adds the
Modrinth maven (filtered to maven.modrinth) and a modmenuDependency()
helper that probes the TerraformersMC coordinate and falls back to the
identical maven.modrinth:modmenu jar when that maven is unreachable.
Used by the variant builds and the launch-test harness.
- Dependency caching: gradle/actions/setup-gradle in every Gradle job
caches dependencies between runs (written on the default branch, read
everywhere), so warm runs barely touch the mod mavens at all.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013C85CXhFr5fz7ifGHCN1Z7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
















Transient TerraformersMC maven failures ("Premature end of chunk coded message body" while downloading modmenu) were killing whole workflow runs. Three layers of defense:
Claude-Session: https://claude.ai/code/session_013C85CXhFr5fz7ifGHCN1Z7