Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added system_lib for system prestage jars #5239

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

annaibm
Copy link
Contributor

@annaibm annaibm commented Apr 18, 2024

  • Prestage system test prequisities to system_lib

related: #4912

@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

pre-stage jars are not used. asm.jar still got downloaded to /home/jenkins/workspace/Grinder/aqa-tests/systemtest_prereqs/asm/:

00:08:53.766  configure-asm:
00:08:53.766       [echo] Executing macro download-file
00:08:53.766       [echo] File to download: https://repository.ow2.org/nexus/content/repositories/releases/org/ow2/asm/asm/9.0/asm-9.0.jar
00:08:53.766       [echo] Destination: /home/jenkins/workspace/Grinder/aqa-tests/systemtest_prereqs/asm/asm.jar
00:08:53.766       [echo] Download tool: curl
00:08:53.766      [mkdir] Created dir: /home/jenkins/workspace/Grinder/aqa-tests/systemtest_prereqs/asm
00:08:53.766       [exec]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
00:08:53.766       [exec]                                  Dload  Upload   Total   Spent    Left  Speed
00:08:53.766       [exec] 
00:08:54.639       [exec]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100  118k  100  118k    0     0   114k      0  0:00:01  0:00:01 --:--:--  114k
00:08:54.639  

I suspect that we need to update the reference in system test repo.

@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

Try change this line

-systemtest-prereqs=$(Q)$(SYSTEMTEST_RESROOT)$(D)systemtest_prereqs$(Q) \

@annaibm annaibm force-pushed the test_systemtest branch 3 times, most recently from ed08e77 to 961dd88 Compare April 24, 2024 16:56
@annaibm annaibm changed the title Added system_prereq_lib for system prestage jars Added system_lib for system prestage jars Apr 24, 2024
@annaibm annaibm force-pushed the test_systemtest branch 7 times, most recently from 86bdafd to 8d35f5b Compare May 1, 2024 14:24
@annaibm annaibm force-pushed the test_systemtest branch 2 times, most recently from cdb93d2 to 6876b4f Compare May 9, 2024 14:36
system/system.mk Outdated
@@ -71,15 +71,21 @@ ifdef JVM_OPTIONS
APPLICATION_OPTIONS := $(APPLICATION_OPTIONS) -jvmArgs $(Q)$(JVM_OPTIONS)$(Q)
endif

ifndef SYSTEM_LIB_DIR
SYSTEM_LIB_DIR := "/home/jenkins/workspace/Grinder/aqa-tests/systemtest_prereqs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Try to set SYSTEM_LIB_DIR :=$(SYSTEMTEST_RESROOT)/systemtest_prereqs

@@ -337,7 +343,7 @@
</then>
</if>
<copy todir="${SYSTEMTEST_DEST}/systemtest_prereqs/">
<fileset dir="${TEST_ROOT}/systemtest_prereqs/" includes="**" />
<fileset dir="${system_lib_dir}" includes="**"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we still need to copy to systemtest_prereqs dir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we don't need to copy to the systemtest_prereqs directory. I had kept it to check if local tests might need it; apparently, it's not needed. I will remove it.

sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
} else {
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

for system tests, we do not need customUrl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Passing the customUrl for system tests was duplicating the process of downloading the jar files.

Copy link
Contributor

Choose a reason for hiding this comment

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

why having customUrl will duplicate the process? When running at openj9 Jenkins, we should try to use systemtest.getDependency from openj9 Jenkins, not Adoptium.

def defaultUrl = "https://ci.adoptium.net/job/test.getDependency/lastSuccessfulBuild/artifact/"
def systemUrl = "https://ci.adoptium.net/job/systemtest.getDependency/lastSuccessfulBuild/artifact/"
env.LIB_DIR = (env.BUILD_LIST == 'system') ? env.SYSTEM_LIB_DIR : env.LIB_DIR
def customUrl = (env.BUILD_LIST == 'system') ? systemUrl : defaultUrl
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to have if statement to make the logic clear:

if (env.BUILD_LIST == 'system') {
   env.LIB_DIR = env.SYSTEM_LIB_DIR
   customUrl = "https://ci.adoptium.net/job/systemtest.getDependency/lastSuccessfulBuild/artifact/"
} else {
   customUrl = "https://ci.adoptium.net/job/test.getDependency/lastSuccessfulBuild/artifact/"
}

Please note this change will conflict with #5289. Depends on which PR gets merged first, the other one will need to be updated.

@annaibm annaibm force-pushed the test_systemtest branch 6 times, most recently from 2149e1d to fb539fd Compare May 17, 2024 20:34
@annaibm annaibm force-pushed the test_systemtest branch 3 times, most recently from 327b8e2 to 7722d60 Compare May 21, 2024 19:12
@annaibm annaibm force-pushed the test_systemtest branch 5 times, most recently from d1707ab to 1987324 Compare May 22, 2024 19:20
system/system.mk Outdated
SYSTEMTEST_RESROOT=$(TEST_RESROOT)/../
$(info SYSTEMTEST_RESROOT is $(SYSTEMTEST_RESROOT))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove line 42 & Line 44. The value is set at a later stage.

system/system.mk Outdated
SYSTEM_LIB_DIR=$(SYSTEMTEST_RESROOT)/systemtest_prereqs
endif

$(info SYSTEM_LIB_DIR is $(SYSTEM_LIB_DIR))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove line 80. The value is set at a later stage.

@llxia
Copy link
Contributor

llxia commented May 22, 2024

@annaibm can you point me to the code of creating systemtest_prereqs dir if it does not exist?

@annaibm
Copy link
Contributor Author

annaibm commented May 22, 2024

@annaibm can you point me to the code of creating systemtest_prereqs dir if it does not exist?

@llxia I have reverted the code to include copy of systemtest_prereqs as in https://github.com/annaibm/aqa-tests/blob/test_systemtest/system/common.xml#L339C3-L341C10.

@llxia
Copy link
Contributor

llxia commented May 22, 2024

The current PR does not have The systemtest-prereqs directory could not be found. error locally?

@annaibm
Copy link
Contributor Author

annaibm commented May 22, 2024

The current PR does not have The systemtest-prereqs directory could not be found. error locally?

No, it is getting processed as below

TESTING:
STF 08:58:26.042 - =========================   S T F   =========================
systemtest-prereqs has been processed, and set to: /home/jenkins/workspace/Grinder/jvmtest/system/systemtest_prereqsRetrieving amount of free space on drive containing /home/jenkins/workspace/Grinder/aqa-tests/TKG/../TKG/output_17163935052911/MiniMix_5m_0
There is 203270 Mb free

- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
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.

None yet

2 participants