damccorm commented on code in PR #29992:
URL: https://github.com/apache/beam/pull/29992#discussion_r1459589823


##########
.github/gh-actions-self-hosted-runners/arc/images/Dockerfile:
##########
@@ -41,6 +41,9 @@ RUN curl -OL 
https://cdn.azul.com/zulu/bin/zulu8.70.0.23-ca-jdk8.0.372-linux_x64
     tar -C /usr/local -xzf zulu8.70.0.23-ca-jdk8.0.372-linux_x64.tar.gz && \
     rm zulu8.70.0.23-ca-jdk8.0.372-linux_x64.tar.gz && \
     mv /usr/local/zulu8.70.0.23-ca-jdk8.0.372-linux_x64 /usr/local/java
+RUN curl -OL 
https://cdn.azul.com/zulu/bin/zulu17.46.19-ca-jdk17.0.9-linux_x64.tar.gz && \
+    tar -C /usr/local -xzf 
https://cdn.azul.com/zulu/bin/zulu17.46.19-ca-jdk17.0.9-linux_x64.tar.gz && \
+    rm zulu17.46.19-ca-jdk17.0.9-linux_x64.tar.gz

Review Comment:
   > I presume that action can be invoked repeatedly with multiple versions and 
they each get installed into some non-overlapping places.
   
   Correct
   
   > Probably having this script in concordance with actions/setup-java is more 
of a goal than having it match the code it is copy/pasted from.
   
   Yeah, that's right. Looking at 
https://github.com/actions/setup-java/blob/7a445ee88d4e23b52c33fdc7601e40278616c7f8/src/setup-java.ts#L71
 the key thing is can we find it in the tool-cache - 
https://github.com/actions/setup-java/blob/7a445ee88d4e23b52c33fdc7601e40278616c7f8/src/distributions/base-installer.ts#L49
   
   We're not actually doing that correctly with our other versions either. 
Looking at 
https://github.com/apache/beam/actions/runs/7585699321/job/20662163515 maybe it 
just doesn't matter though. It takes all of 6 seconds to download/extract Java 
11. So I guess we don't need this, the primary value here is just making sure 
we have _some_ ok default version of Java downloaded + available on the path so 
that every job doesn't need to specify a java-version.
   
   I guess my take is that this just isn't actually worth it until we commit to 
making Java 17 the default, at which point we should just replace the java 8 
download/extraction



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