Skip to content

Commit e72f3e7

Browse files
committed
Retry artifacts after 2h, not 24h, for melt/smelt
This uses a newly added feature of pombast to specify a settings.xml file to use with relevant pombast actions like melt and smelt (see scijava/pombast@12a42f6). In such a file, we can set the updatePolicy of each repository. It is tempting to pass -U to all of pombast's mvn invocations, forcing rechecks for missing artifacts every single time. But that would be overkill, adding more overhead to each smelt component build, whereas reducing the update window from 24 hours to 2 hours means that we won't recheck for (probably still) missing artifacts for every smelted component that depends on it during a single run, but rather we'll recheck "soon" -- hopefully the next time CI runs ~2 hours later. Why 2 hours? Because the pombast CI smelt run takes ~90 minutes when no previous successes have been cached. Would it be better to somehow reset the last-checked metadata before starting the smelt, so that every CI build behaves as though it's the first one of the day? Perhaps! But for now, let's try the 2h interval and see how it goes.
1 parent 2bcb0f4 commit e72f3e7

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

pombast.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[common]
22
default-java-version = 8
33
repositories = ["scijava.public=https://maven.scijava.org/content/groups/public"]
4+
settings = "pombast/settings.xml"
45

56
[status]
67
output = "target/pombast/index.html"

pombast/settings.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<settings>
3+
<profiles>
4+
<profile>
5+
<id>update-interval</id>
6+
<repositories>
7+
<repository>
8+
<id>scijava.public</id>
9+
<url>https://maven.scijava.org/content/groups/public</url>
10+
<releases><updatePolicy>interval:120</updatePolicy></releases>
11+
<snapshots><updatePolicy>interval:120</updatePolicy></snapshots>
12+
</repository>
13+
<repository>
14+
<id>central</id>
15+
<url>https://repo.maven.apache.org/maven2</url>
16+
<releases><updatePolicy>interval:120</updatePolicy></releases>
17+
</repository>
18+
</repositories>
19+
</profile>
20+
</profiles>
21+
<activeProfiles><activeProfile>update-interval</activeProfile></activeProfiles>
22+
</settings>

0 commit comments

Comments
 (0)