adoroszlai commented on code in PR #11806:
URL: https://github.com/apache/ozone/pull/11806#discussion_r4397597962


##########
.github/workflows/check.yml:
##########
@@ -196,6 +196,24 @@ jobs:
           restore-keys: |
             maven-repo-
 
+      # Hard-coded for the acceptance suites that download Apache releases, to 
avoid the need for another input.
+      - name: Get versions of Apache releases used by tests
+        id: apache-release-versions
+        if: ${{ inputs.script == 'acceptance' && (inputs.split == 'ranger' || 
inputs.split == 's3a') }}
+        run: |
+          hadoop=$(sed -n 's@.*<hadoop.version>\(.*\)</hadoop.version>.*@\1@p' 
pom.xml)
+          ranger=$(sed -n 's@.*<ranger.version>\(.*\)</ranger.version>.*@\1@p' 
pom.xml)
+          echo "versions=hadoop-${hadoop}-ranger-${ranger}" >> "$GITHUB_OUTPUT"
+
+      - name: Cache for Apache releases used by tests
+        if: ${{ steps.apache-release-versions.outcome == 'success' }}
+        uses: actions/cache@v6
+        with:
+          path: |
+            /tmp/*ranger-*.tar.gz*
+            target/hadoop-src.tar.gz
+          key: apache-releases-${{ inputs.split }}-${{ 
steps.apache-release-versions.outputs.versions }}
+

Review Comment:
   Created HDDS-17517 to track caching these.



-- 
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]

Reply via email to