adoroszlai commented on code in PR #11829:
URL: https://github.com/apache/ozone/pull/11829#discussion_r4414582523
##########
.github/workflows/populate-cache.yml:
##########
@@ -59,30 +62,77 @@ jobs:
key: maven-repo-${{ hashFiles('**/pom.xml') }}
- name: Setup Java
- if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: ${{ env.TEST_JAVA_VERSION }}
- - name: Get NodeJS version
- id: nodejs-version
- if: steps.restore-cache.outputs.cache-hit != 'true'
- run: echo "nodejs-version=$(mvn help:evaluate
-Dexpression=nodejs.version -q -DforceStdout -Dscan=false)" >> $GITHUB_OUTPUT
+ - name: Get versions
+ id: versions
+ run: |
+ NODEJS_VERSION=$(mvn help:evaluate -N -Dexpression=nodejs.version -q
-DforceStdout -Dscan=false)
+ echo "NODEJS_VERSION=$NODEJS_VERSION" >> $GITHUB_ENV
+ HADOOP_VERSION=$(mvn help:evaluate -N -Dexpression=hadoop.version -q
-DforceStdout -Dscan=false)
+ echo "HADOOP_VERSION=$HADOOP_VERSION" >> $GITHUB_ENV
+ RANGER_VERSION=$(mvn help:evaluate -N -Dexpression=ranger.version -q
-DforceStdout -Dscan=false)
+ echo "RANGER_VERSION=$RANGER_VERSION" >> $GITHUB_ENV
+
+ - name: Restore Hadoop
+ id: restore-hadoop
+ uses: apache/infrastructure-actions/stash/restore@restore/v1
+ with:
+ clean: true
+ path: ~/.cache/ozone
+ key: hadoop-${{ env.HADOOP_VERSION }}
+
+ - name: Get Hadoop
+ if: steps.restore-hadoop.outputs.stash-hit != 'true'
+ run: |
+ source hadoop-ozone/dist/src/main/compose/testlib.sh
+ import_keys https://downloads.apache.org/hadoop/common/KEYS
+ download_hadoop
+
+ - name: Stash Hadoop
+ if: steps.restore-hadoop.outputs.stash-hit != 'true'
+ uses: apache/infrastructure-actions/stash/save@save/v1
+ with:
+ path: ~/.cache/ozone
+ key: hadoop-${{ env.HADOOP_VERSION }}
+
+ - name: Restore Ranger
+ id: restore-ranger
+ uses: apache/infrastructure-actions/stash/restore@restore/v1
+ with:
+ clean: true
+ path: ~/.cache/ozone
+ key: ranger-${{ env.RANGER_VERSION }}
+
+ - name: Get Ranger
+ if: steps.restore-ranger.outputs.stash-hit != 'true'
+ run: |
+ source hadoop-ozone/dist/src/main/compose/testlib.sh
+ import_keys https://downloads.apache.org/ranger/KEYS
Review Comment:
Thanks, added `SKIP...=false` in `populate-cache`, now it verifies
signatures:
https://github.com/adoroszlai/ozone/actions/runs/40903909518/job/123556979029#step:10:58
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]