-
-
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
Avoid unnecessary copying of system lib files #5418
Conversation
Grinder link: TARGET: SharedClasses.SCM01.SingleCL Grinder links with: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder_CR/19223/ Non system test |
|
Grinder link: Grinder link: |
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
system/common.xml
Outdated
<condition property="IS_SVT_TESTREPO" value="true" else="false"> | ||
<and> | ||
<isset property="env.IS_SVT_TESTREPO"/> | ||
<equals arg1="${env.IS_SVT_TESTREPO}" arg2="true"/> | ||
</and> | ||
</condition> |
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.
Do we need this condition check? Can we do it at line 364?
<equals arg1="${env.IS_SVT_TESTREPO}" arg2="true"/>
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.
Sure , I will try doing there.
Please provide Grinder link based on the latest change. |
buildenv/jenkins/JenkinsfileBase
Outdated
@@ -112,7 +112,7 @@ def setupEnv() { | |||
|
|||
env.LIGHT_WEIGHT_CHECKOUT = (params.LIGHT_WEIGHT_CHECKOUT == false) ? params.LIGHT_WEIGHT_CHECKOUT : true | |||
env.GENERATE_JOBS = params.GENERATE_JOBS ?: false | |||
env.isSVTTestRepo=false | |||
env.IS_SVT_TESTREPO = "" |
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 do not think this line is needed.
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.
ok,I was providing this line to check this variable is set or not set. Will try removing this line and test.
buildenv/jenkins/JenkinsfileBase
Outdated
@@ -511,6 +511,8 @@ def setup() { | |||
VENDOR_TEST_BRANCHES = (params.VENDOR_TEST_BRANCHES) ? "--vendor_branches \"${params.VENDOR_TEST_BRANCHES}\"" : "" | |||
VENDOR_TEST_DIRS = (params.VENDOR_TEST_DIRS) ? "--vendor_dirs \"${params.VENDOR_TEST_DIRS}\"" : "" | |||
VENDOR_TEST_SHAS = (params.VENDOR_TEST_SHAS) ? "--vendor_shas \"${params.VENDOR_TEST_SHAS}\"" : "" | |||
env.IS_SVT_TESTREPO = params.VENDOR_TEST_REPOS.contains('SVTTestRepo') ? true : false |
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.
This may fail if params.VENDOR_TEST_REPOS
is not set.
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.
#5418 (comment) passed because params.VENDOR_TEST_REPOS is set to empty, not undefined. I think we should do
env.IS_SVT_TESTREPO = (params.VENDOR_TEST_REPOS && params.VENDOR_TEST_REPOS.contains('SVTTestRepo')) ? true : false
Grinder links: Not copying
When VENDOR_TEST_REPOS: git@github.ibm.com:runtimes/SVTTestRepo.git
|
- Ensure system lib files are only copied when isSVTTestRepo is set to true - Prevent unnecessary copying of system lib files to systemtest_prereqs directory related:https://github.ibm.com/runtimes/backlog/issues/1457 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
Grinder links: When VENDOR_TEST_REPOS: git@github.ibm.com:runtimes/SVTTestRepo.git |
related:https://github.ibm.com/runtimes/backlog/issues/1457