Skip to content

Leverage getDependencies for dacapo.zip#6337

Merged
llxia merged 8 commits intoadoptium:masterfrom
MattyWeee123:issue6326
Jun 19, 2025
Merged

Leverage getDependencies for dacapo.zip#6337
llxia merged 8 commits intoadoptium:masterfrom
MattyWeee123:issue6326

Conversation

@MattyWeee123
Copy link
Copy Markdown
Contributor

@MattyWeee123 MattyWeee123 commented Jun 14, 2025

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

Fixes: #6326

@MattyWeee123 MattyWeee123 marked this pull request as ready for review June 14, 2025 02:38
@karianna karianna requested review from llxia and smlambert June 15, 2025 22:18
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>
Comment on lines +31 to +35
<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>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed. getDependentLibs is a pre-defined target.
By calling getDependentLibs at Line 41, you will get dacapo.zip.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

@llxia llxia Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@llxia
Copy link
Copy Markdown
Contributor

llxia commented Jun 18, 2025

Please test this PR with TKG PR adoptium/TKG#713 together in Grinder. By setting the following:
ADOPTOPENJDK_REPO
ADOPTOPENJDK_BRANCH
TKG_OWNER_BRANCH

Comment on lines +58 to +63
<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}"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I get dacapo.zip directly, won't I still have to extract the contents and rename them accordingly?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

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>
@MattyWeee123
Copy link
Copy Markdown
Contributor Author

Grinder

Successfully passes on grinder, the few unstable builds are resolved in #6331.

Comment on lines +32 to +34
<copy todir="${SRC}">
<fileset dir="${LIB_DIR}/" includes="${DEPENDENCY_FNAME}"/>
</copy>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted dacapo.zip directly to dest to reduce
large amount of copies.

Fixes: adoptium#6326

Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
</exec>
</sequential>
</retry>
<unzip src="${DEPENDENCY_FNAME}" dest="${DEST}"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do the following?

<unzip src="${LIB_DIR}/${DEPENDENCY_FNAME}" dest="${DEST}"/>

Copy link
Copy Markdown
Contributor Author

@MattyWeee123 MattyWeee123 Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

image

Unzip from LIB_DIR to DEST to miminize copies.

Fixes: adoptium#6326

Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
<move todir="${DEST}/${DIR_NAME}" failonerror="true">
<fileset dir="${DEST}/${DACAPO_DIR_NAME}"/>
</move>
<delete file="${DEPENDENCY_FNAME}"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we need this delete as the file is no longer in the current dir.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Copy Markdown
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MattyWeee123

@llxia llxia merged commit c2cb304 into adoptium:master Jun 19, 2025
2 checks passed
sophia-guo pushed a commit that referenced this pull request Jun 19, 2025
Fixes: #issue6326

Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
@MattyWeee123 MattyWeee123 deleted the issue6326 branch June 22, 2025 21:44
sophia-guo pushed a commit to sophia-guo/openjdk-tests that referenced this pull request Jul 9, 2025
Fixes: #issue6326

Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leverage getDependencies for dacapo.zip

3 participants