dpol1 commented on code in PR #2367:
URL: https://github.com/apache/stormcrawler/pull/2367#discussion_r4799984726


##########
.github/workflows/maven.yml:
##########
@@ -51,6 +51,26 @@ jobs:
       - name: Build with Maven
         run: mvn -B --no-transfer-progress -Prat -DskipTests verify 
-Dskip.format.code=false
 
+  reproducible:
+    needs: rat
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 
v7.0.1
+      - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+        with:
+          path: ~/.m2/repository
+          key: reproducible-maven-${{ hashFiles('**/pom.xml') }}
+      - name: Set up JDK 25
+        uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # 
v6.3.0
+        with:
+          distribution: temurin
+          java-version: 25
+      # builds the release artifacts twice and fails if the second build 
differs from the first
+      - name: Check that the build is reproducible
+        run: |
+          mvn -B --no-transfer-progress install -Papache-release -Dgpg.skip 
-DskipTests
+          mvn -B --no-transfer-progress clean verify artifact:compare 
-Papache-release -Dgpg.skip -DskipTests

Review Comment:
   Both builds share the checkout, so this stays green even without the 
`docdatetime` fix. Maybe `touch` the docs sources before the second build? 
Tried it locally, artifacts stay identical.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to