mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-20 03:13:53 +01:00
ci: cache Snowflake suite Maven deps and fall back to a Central mirror (#12763)
* ci: cache the Snowflake suite's Maven dependencies under their own key setup-java's maven cache key hashes the repository pom.xml files, which other Java workflows share. The Snowflake job restored that cache, which lacks the suite's plugins and dependencies, and never saved its own because the key already existed. Every run downloaded the whole suite dependency tree from Maven Central and failed when Central answered 429. Key the cache on run.sh, which pins the suite revision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: fall back to Google's Maven Central mirror in the Snowflake job A cold cache still resolves about 36 MB of plugins and dependencies, and Maven gives up after three 429 retries within 30 s. Add the mirror as a settings-profile repository; Maven tries it first and moves on to Central for any artifact the mirror fails to serve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6d0a6e0935
commit
2089abecf3
3 files changed
+43
-1
No files matched your search
@@ -31,3 +31,7 @@ already-running server, and see the top of `run.sh` for the other overrides.
|
||||
to path-style access with a `sed` patch.
|
||||
- `NOT_ACCESSIBLE_BUCKET` is a real bucket carrying a deny-all bucket policy,
|
||||
which is how the suite's `AccessDenied` negative tests are satisfied.
|
||||
- CI runs Maven with `maven-settings.xml`, which adds Google's Maven Central
|
||||
mirror in front of Central, so a 429 from one falls through to the other.
|
||||
Locally, pass it with
|
||||
`MAVEN_ARGS="-s $PWD/test/s3/snowflake/maven-settings.xml"`.
|
||||
@@ -0,0 +1,28 @@
|
||||
<settings>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>central-fallback</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>google-maven-central</id>
|
||||
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>google-maven-central</id>
|
||||
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
<activeProfiles>
|
||||
<activeProfile>central-fallback</activeProfile>
|
||||
</activeProfiles>
|
||||
</settings>
|
||||
Reference in new issue
Block a user