-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
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.
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.
@llxia I have used customUrl and replaced test.getDependency
to systemtest.getDependency
for system test libs in TKG.
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.
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
aqa-tests/buildenv/jenkins/JenkinsfileBase Lines 679 to 689 in a6dbf7c
|
44d500c
to
6ed29ac
Compare
407420e
to
719afe5
Compare
- Prestage system test prequisities to system_lib related: adoptium#4912 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
Grinder links:
|
This PR has to be merged with adoptium/TKG#533 and adoptium/STF#135 |
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.
LGTM
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.
LGTM
)" (adoptium#5361)" This reverts commit 071c84b.
)" (adoptium#5361)" Changes for 1443, to check if vendor test repo is SVTrepo and make changes accordingly. This reverts commit 071c84b.
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)" This reverts commit 071c84b. - Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories. - Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars. related: adoptium#4912 related: https://github.ibm.com/runtimes/backlog/issues/1443 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)" This reverts commit 071c84b. - Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories. - Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars. related: adoptium#4912 related: https://github.ibm.com/runtimes/backlog/issues/1443 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)" This reverts commit 071c84b. - Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories. - Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars. related: adoptium#4912 related: https://github.ibm.com/runtimes/backlog/issues/1443 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
related: #4912