rzo1 commented on code in PR #2367:
URL: https://github.com/apache/stormcrawler/pull/2367#discussion_r4800291571
##########
.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:
Good catch, thanks. The step now touches the docs sources between the two
builds (d9faf72d). Checked locally: with the `docdatetime` attribute all 53
artifacts still match; without it the comparison fails on
`stormcrawler-docs-*-docs.tar.gz`, so the check now guards that fix.
--
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]