Leverage getDependencies for dacapo.zip#6337
Conversation
Reset to current upstream, added relevant changes for the issue and removed -L since we are including in getDependencies.pl dacapo dependency link. Fixes: #issue6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
perf/dacapo/build.xml
Outdated
| <target name="getDependentLibs"> | ||
| <exec executable="perl" failonerror="true"> | ||
| <arg line="${TEST_ROOT}/TKG/scripts/getDependencies.pl -path ${LIB_DIR} -task default -dependencyList ${LIB}"/> | ||
| </exec> | ||
| </target> |
There was a problem hiding this comment.
This is not needed. getDependentLibs is a pre-defined target.
By calling getDependentLibs at Line 41, you will get dacapo.zip.
There was a problem hiding this comment.
When you say predefined, are you referring to the getDependentLibs target defined in "${TEST_ROOT}/TKG/scripts/getDependencies.xml", or do I get it for free without importing anything?
There was a problem hiding this comment.
You will get it for free by importing the getDependencies.xml
<property name="LIB" value="dacapo"/>
<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/>
and calling `getDependentLibs` at line 41
|
Please test this PR with TKG PR adoptium/TKG#713 together in Grinder. By setting the following: |
perf/dacapo/build.xml
Outdated
| <unzip src="${DEPENDENCY_FNAME}" dest="${SRC}"/> | ||
| <move file="${DACAPO_DIR_NAME}.jar" tofile="${FILE_NAME}" failonerror="true"/> | ||
| <move todir="${DIR_NAME}" failonerror="true"> | ||
| <fileset dir="${DACAPO_DIR_NAME}"/> | ||
| </move> | ||
| <delete file="${DEPENDENCY_FNAME}"/> |
There was a problem hiding this comment.
This logic will need to be updated. As mentioned in https://github.com/adoptium/aqa-tests/pull/6337/files#r2154987545, you will get dacapo.zip directly.
There was a problem hiding this comment.
If I get dacapo.zip directly, won't I still have to extract the contents and rename them accordingly?
There was a problem hiding this comment.
ic, I thought you were renaming the original zip. But this is renaming dacapo-23.11-MR2-chopin-minimal.jar within the dacapo.zip. Yes, you do need to unzip and rename in this case.
I do not think you need get_zip.
Tested with branch issue6326 and TKG710. Removed debugging code. get_zip needs to stay, since getDependentLibs moves dacapo.zip to LIB_DIR not SRC. Using getDepdencies.xml import instead of executing shell command. -L in the TKG hash dependency link works as expected. Fixes: adoptium#6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
perf/dacapo/build.xml
Outdated
| <copy todir="${SRC}"> | ||
| <fileset dir="${LIB_DIR}/" includes="${DEPENDENCY_FNAME}"/> | ||
| </copy> |
There was a problem hiding this comment.
Can we just directly unzip into DEST dir at line 50? (Instead of copying the zip into the SRC dir, then unzipping in SRC dir, and removing zip and copying SRC dir to DEST dir). I would like to reduce the copies if possible.
00:01:14.553 getDacapoSuite:
00:01:14.553 [unzip] Expanding: /home/jenkins/workspace/Grinder/aqa-tests/perf/dacapo/dacapo.zip into /home/jenkins/workspace/Grinder/aqa-tests/perf/dacapo
00:01:43.306 [move] Moving 1 file to /home/jenkins/workspace/Grinder/aqa-tests/perf/dacapo
00:01:43.306 [move] Moving 10669 files to /home/jenkins/workspace/Grinder/aqa-tests/perf/dacapo/dacapo
00:01:43.306 [delete] Deleting: /home/jenkins/workspace/Grinder/aqa-tests/perf/dacapo/dacapo.zip
00:01:43.306
00:01:43.306 dist:
00:01:44.754 [copy] Copying 10672 files to /home/jenkins/workspace/Grinder/jvmtest/perf/dacapo
00:02:31.682 [copy] Copied 1931 empty directories to 24 empty directories under /home/jenkins/workspace/Grinder/jvmtest/perf/dacapo
Extracted dacapo.zip directly to dest to reduce large amount of copies. Fixes: adoptium#6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
perf/dacapo/build.xml
Outdated
| </exec> | ||
| </sequential> | ||
| </retry> | ||
| <unzip src="${DEPENDENCY_FNAME}" dest="${DEST}"/> |
There was a problem hiding this comment.
Can we do the following?
<unzip src="${LIB_DIR}/${DEPENDENCY_FNAME}" dest="${DEST}"/>
Unzip from LIB_DIR to DEST to miminize copies. Fixes: adoptium#6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
perf/dacapo/build.xml
Outdated
| <move todir="${DEST}/${DIR_NAME}" failonerror="true"> | ||
| <fileset dir="${DEST}/${DACAPO_DIR_NAME}"/> | ||
| </move> | ||
| <delete file="${DEPENDENCY_FNAME}"/> |
There was a problem hiding this comment.
I do not think we need this delete as the file is no longer in the current dir.
Fixes: #issue6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
Fixes: #issue6326 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>

Save dacapo minimal 23.11 via getDependencies.pl from TKG to use in dacapo/build.xml from aqa-tests.
Fixes: #6326