-
-
Notifications
You must be signed in to change notification settings - Fork 71
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 builder scripts for more code-tools - jcstress, jtharness, sigtest and jcov #766
Conversation
Thank you for creating a pull request!Please check out the information below if you have not made a pull request here before (or if you need a reminder how things work). Code Quality and Contributing GuidelinesIf you have not done so already, please familiarise yourself with our Contributing Guidelines and Code Of Conduct, even if you have contributed before. TestsGithub actions will run a set of jobs against your PR that will lint and unit test your changes. Keep an eye out for the results from these on the latest commit you submitted. For more information, please see our testing documentation. In order to run the advanced pipeline tests (executing a set of mock pipelines), it requires an admin to post |
If you would create a staging jenkins job, it wouldbe awesome. |
} | ||
|
||
function detectJdks() { | ||
jvm_dir="/usr/lib/jvm/" |
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 only builds on Linux, I wonder if there's a more O/S independent way to pass the java in
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 our CI farm we can of course pin to a Linux node if need be
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.
Looks like below that Java 11 is required?
# latest released | ||
git checkout $latestRelease | ||
export JAVA_HOME=$jdk11 | ||
mvn clean install |
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.
assumes mvn is installed on build host
tools/code-tools/jcstress.sh
Outdated
git checkout $latestRelease | ||
export JAVA_HOME=$jdk11 | ||
mvn clean install | ||
mv tests-all/target/jcstress.jar $rc |
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.
mv tests-all/target/jcstress.jar $rc | |
mv tests-all/target/jcstress.jar $rc |
tools/code-tools/jcstress.sh
Outdated
git checkout master | ||
export JAVA_HOME=$jdk11 | ||
mvn clean install | ||
mv tests-all/target/$main_file $main_name-$tip_shortened.jar |
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.
mv tests-all/target/$main_file $main_name-$tip_shortened.jar | |
mv tests-all/target/$main_file $main_name-$tip_shortened.jar |
Hello! As for the mvn and linux concerns, they are all valid, but based on other scripts this https://github.com/adoptium/ci-jenkins-pipelines/blob/master/tools/code-tools/Jenkinsfile is running, and the deployment of this pipeline, the mvn and linux and /sur/lib/jvm is expected combo, so I would not change that. As for the jdk, I will remove the non jdk11 versions (unless you say otherwise). I actually thought, that there will be 3 jcstress artifacts - one old, for jdk8, built by jdk8, 16, b uilt by jdk11 for jdk 9-20 and tip, built by jdk 17, for jdk17 and up. But my information were misshaped, and all thre variants builds by jdk11 and works fine for jdks 8-20. |
Doubel sapces removed and jdk count reduced in rebase |
Your remarks have been resolved in best will. How does it look to you now? |
tools/code-tools/javatest.sh
Outdated
#!/bin/bash | ||
|
||
################################################################### | ||
# Scrtipt to build jtharness reusable by jdk testing community # |
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.
# Scrtipt to build jtharness reusable by jdk testing community # | |
# Script to build jtharness reusable by jdk testing community # |
tools/code-tools/asmtools.sh
Outdated
#!/bin/bash | ||
|
||
################################################################### | ||
# Scrtipt to build asmtools to be reused by jdk testing community # |
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.
# Scrtipt to build asmtools to be reused by jdk testing community # | |
# Script to build asmtools to be reused by jdk testing community # |
tools/code-tools/javatest.sh
Outdated
|
||
################################################################### | ||
# Scrtipt to build jtharness reusable by jdk testing community # | ||
# currenlty builds tip and latest released version # |
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.
# currenlty builds tip and latest released version # | |
# currently builds tip and latest released version # |
tools/code-tools/asmtools.sh
Outdated
|
||
################################################################### | ||
# Scrtipt to build asmtools to be reused by jdk testing community # | ||
# currenlty builds tip of master and tip of at8 branch # |
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.
# currenlty builds tip of master and tip of at8 branch # | |
# currently builds tip of master and tip of at8 branch # |
tools/code-tools/jcstress.sh
Outdated
#!/bin/bash | ||
|
||
################################################################### | ||
# Scrtipt to build jcstress to be reused by jdk testing community # |
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.
# Scrtipt to build jcstress to be reused by jdk testing community # | |
# Script to build jcstress to be reused by jdk testing community # |
tools/code-tools/jcstress.sh
Outdated
|
||
################################################################### | ||
# Scrtipt to build jcstress to be reused by jdk testing community # | ||
# currenlty builds tip and latest released version # |
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.
# currenlty builds tip and latest released version # | |
# currently builds tip and latest released version # |
tools/code-tools/jtreg.sh
Outdated
@@ -1,4 +1,10 @@ | |||
#!/bin/bash | |||
|
|||
################################################################### | |||
# Scrtipt to build jtreg test suite harness # |
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.
# Scrtipt to build jtreg test suite harness # | |
# Script to build jtreg test suite harness # |
tools/code-tools/jtreg.sh
Outdated
|
||
################################################################### | ||
# Scrtipt to build jtreg test suite harness # | ||
# currenlty builds tip, 5.1, 6, 6.1, 7, 7.1, 7.2 # |
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.
# currenlty builds tip, 5.1, 6, 6.1, 7, 7.1, 7.2 # | |
# currently builds tip, 5.1, 6, 6.1, 7, 7.1, 7.2 # |
//me counting typo free lines Sorry,:( all fixed, ty! |
@karianna ty! @sophia-guo ca you set up a staging job for me please? |
mv testng-$testngv.jar testng.jar | ||
fi | ||
if [ ! -e jcommander.jar ] ; then | ||
jcommanderv=1.81 |
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.
jcommanderv=1.81 | |
local jcommanderv=1.81 |
@karianna Sharp eye! fixed. TYVM! |
Usptream issue dealing with versions of jcov deps: https://bugs.openjdk.org/browse/CODETOOLS-7903520 |
tools/code-tools/sigtest.sh
Outdated
WORKSPACE=$PWD | ||
|
||
function hashArtifacts() { | ||
echo "Creating checksums all sigtest*.jar" |
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.
sigtest*.jar --> sigtest*.zip?
I noticed that Currently the |
Missing stage ro sigtest is error. Will fix. sorry. Jtreg indeed downloads/builds its deps as it needs to do. They are version-less, and are not published as standalone artifacts. But I do not insists. If you would eg rather copy the javatest and other similar artifacts out of jtreg.tar.gz then it can be done. But IMHO it is really different target. |
damn. ty!
--
Mgr. Jiri Vanek
***@***.***
---------- Původní e-mail ----------
Od: sophia-guo ***@***.***>
Komu: adoptium/ci-jenkins-pipelines ***@***.***
Kopie: judovana ***@***.***>, Mention ***@***.***>
Datum: 15. 8. 2023 22:49:59
Předmět: Re: [adoptium/ci-jenkins-pipelines] Added builder scripts for more
code-tools - jcstress, jtharness, sigtest and jcov (PR #766)
"
@sophia-guo commented on this pull request.
----------------------------------------------------------------------------
In tools/code-tools/sigtest.sh
(#766 (comment))
:
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+###################################################################
+# Script to build sigtest reusable by jdk testing community #
+# currently builds tip and latest released version #
+###################################################################
+
+# shellcheck disable=SC2035,SC2155
+set -euo pipefail
+WORKSPACE=$PWD
+
+function hashArtifacts() {
+ echo "Creating checksums all sigtest*.jar"
sigtest*.jar --> sigtest*.zip?
—
Reply to this email directly, view it on GitHub
(#766 (review))
, or unsubscribe
(https://github.com/notifications/unsubscribe-auth/AAWFCS6F5SXPEOFCNQMDHA3XVPOHHANCNFSM6AAAAAA3HHZ564)
.
You are receiving this because you were mentioned. Message ID: <adoptium/ci-
***@***.***>
"
|
three tests are failing, and I think it is due to testng and jcommander version clash, but I had failed to set better versions combinations. This needs to be elaborate in upstream
Both issues fixed. Thank you. |
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. Thanks @judovana
Wait you merged it without staging job? :D I'm doomed..... Will keep en eye.. and tbh, I doubt I declared all the artifacts 100% correctly |
I can see the PR had all commits squashed. Is that a policy? The commits were maintained to be intentionally commit per script. In https://ci.adoptium.net/view/Dependencies/job/dependency_pipeline/896/ are three errors:
|
#783 is fixing ^ |
…est and jcov (adoptium#766) * Added builder script for code-tools/jcstress * Added description to the code-tools build scripts * Added builder for jtharness * Added script for generating sigtest releases * Added builder for jcov * Added testrun for jcov three tests are failing, and I think it is due to testng and jcommander version clash, but I had failed to set better versions combinations. This needs to be elaborate in upstream
No description provided.