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
base: master
Are you sure you want to change the base?
Conversation
c9768f6
to
ff8692e
Compare
pre-stage jars are not used. asm.jar still got downloaded to
I suspect that we need to update the reference in system test repo. |
Try change this line Line 77 in 3ae4045
|
ed08e77
to
961dd88
Compare
86bdafd
to
8d35f5b
Compare
cdb93d2
to
6876b4f
Compare
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" |
There was a problem hiding this comment.
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
system/common.xml
Outdated
@@ -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="**"/> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
buildenv/jenkins/JenkinsfileBase
Outdated
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 |
There was a problem hiding this comment.
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.
2149e1d
to
fb539fd
Compare
327b8e2
to
7722d60
Compare
d1707ab
to
1987324
Compare
system/system.mk
Outdated
SYSTEMTEST_RESROOT=$(TEST_RESROOT)/../ | ||
$(info SYSTEMTEST_RESROOT is $(SYSTEMTEST_RESROOT)) |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
@annaibm can you point me to the code of creating |
@llxia I have reverted the code to include copy of |
The current PR does not have |
No, it is getting processed as below
|
- Prestage system test prequisities to system_lib related: adoptium#4912 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
related: #4912