Closed andrew-m-leonard closed 3 years ago
Looks like an error parsing output of a newly added test target (jdk_lang_native_j9_win_0)?
FYI @sophia-guo @renfeiw
Looks like it's a machine issue realted to a missing perl module: 20:13:17 Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
We need this module to print out timestamp for tap output. It's supposed to come with perl, I will update the prerequisites to include it.
Is test-ibmcloud-rhel6-x64-1 newly added? Are those newly added ibmcloud machine configured by Ansible?
@sxa @Haroon-Khel - Can you answer @sophia-guo's question above? I think this issue needs to move to openjdk-infrastructure repo
@renfeiw - I see that you have added perl is added to env checks in TKG and that this machine meets the prereqs criteria of perl 5.10.1 or above**, but interestingly does not contain HiRes.pm which seems to be included in other core Perl installations, perhaps we need to explicitly check (though that is certainly unexpected config).
14:11:41 perlVersion :
14:11:41
14:11:41 This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
14:11:41
Yes, we will explicitly add this module check in the machineInfo.
@sophia-guo Yes that machine is newly added. I did run our ansible playbooks on the machine, as well as run a build and sanity test on it to make sure it was good to go.
@ShelleyLambert However I did need to explicitly install perl-Digest-SHA
on the machine, and on test-ibmcloud-rhel7-x64-1, as per https://github.com/AdoptOpenJDK/openjdk-infrastructure/pull/1564. This solved an error I was getting while running a sanity test on the machine. Ive never had to install this package separately before. On RHEL, perl is installed via yum, so I guess perl-Digest-SHA
isnt included in the core perl installation either
@smlambert @sophia-guo @renfeiw Just to be clear - is this definitely a newly added test (when did it come in?) which has a new prereq of the Time::HiRes
module and that hasn't been required previously? Sounds superficially like the sort of thing that might be used more pervasively so just wanted to verify that, and if it's on some of the other machines how it got there :-)
@Haroon-Khel Can you check for this module on other machines as it would be good to confirm if this is machine specific? Unless Perl-SHA-Digest has a prereq of Time::HiRes
the installation of it is unlikely to resolve this issue
After a little check, I got:
Machines that have Time::HiRes
test-softlayer-rhel74-x64-1
test-aws-rhel8-x64-1
build-marist-rhel77-s390x-1
build-softlayer-centos6-x64-1
test-godaddy-centos7-x64-1
Machines that do not have Time::HiRes
test-softlayer-rhel69-x64-1
I'll install Time::HiRes
onto test-ibmcloud-rhel6-x64-1 and we can re run the test. If it passes, Ill add the package to the playbooks
Interesting that it got onto the RHEL7 boxes. Perhaps it's there by default on the version of perl supplied with RHEL7. test-softlayer-rhel69-x64-1 doesn't have the test tags on it so we would probably never have seen it on there previously.
Rerunning the job, using a nightly jdk, in a grinder https://ci.adoptopenjdk.net/job/Grinder/4117/console
On a separate note, @ShelleyLambert I initially tried rerunning the job in a grinder by clicking Rerun in grinder
and it failed here with the error
hudson.AbortException: Failed to copy artifacts from build-scripts/jobs/jdk11u/jdk11u-linux-x64-openj9-linuxXL with filter: **/*.tar.gz,**/*.tgz,**/*.zip,**/*.jar,**/*.Z
Does the Rerun in grinder
functionality copy and rerun the build entirely? Or do some of the parameters not get copied over and need to be manually inputted?
just as a note, @smlambert is the github id that I use (@ShelleyLambert is one autocreated for me by IBM that I will not see notifications for)
All tests use Time::HiRes, since we parse all test output and create TAP output for all tests. We have been doing this for some time without incident (which is why I assumed its part of core Perl installation). These tests are also not new, they are just reorganized into new test targets.
To answer @Haroon-Khel question in https://github.com/AdoptOpenJDK/openjdk-tests/issues/1998#issuecomment-705519313 "Rerun in Grinder" link copies the exact parameters used in the run you are copying it from. Someone running a Grinder should be aware that the upstream builds are deleted at a fast pace, so you would switch the SDK_RESOURCE from upstream to nightly to pick up the latest nightly build, since that upstream job will have already been deleted (unless you happen to be rerunning with a day or two of the failure).
Test pipelines do not build sdks, they take built sdks from various sources: SDK_RESOURCE=nightly pulls from Adopt APIv3 latest ea builds SDK_RESOURCE=releases pulls from Adopt APIv3 latest ga builds SDK_RESOURCE=upstream pulls from another job on the same CI server (as defined in UPSTREAM_JOB_NAME, UPSTREAM_JOB_NUMBER) SDK_RESOURCE=customized pulls from the location provided in CUSTOMIZED_SDK_URL
Grinder, https://ci.adoptopenjdk.net/job/Grinder/4117/console, does not show the previous parsing error nor the missing Time::HiRes
error. Ill go ahead and add the package to the rhel playbook
Since the associated PR has been merged and the machine now works I will close this issue.
Describe the bug TAP report parsing error: expected '', but found ''
https://ci.adoptopenjdk.net/job/Test_openjdk11_j9_sanity.openjdk_x86-64_linux_xl/363/console
To Reproduce Steps to reproduce the behavior (or Grinder rerun link): https://ci.adoptopenjdk.net/job/Grinder/parambuild/?TARGET=sanity.openjdk&CUSTOM_TARGET=&SDK_RESOURCE=upstream&VENDOR_TEST_SHAS=&JDK_BRANCH=openj9&TEST_FLAG=&VENDOR_TEST_DIRS=&ARTIFACTORY_REPO=&ARTIFACTORY_ROOT_DIR=&PLATFORM=x86-64_linux_xl&KEEP_REPORTDIR=true&PERSONAL_BUILD=false&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2FAdoptOpenJDK%2Fopenjdk-tests.git&JDK_IMPL=openj9&LABEL=&TKG_BRANCH=master&EXTRA_OPTIONS=&SSH_AGENT_CREDENTIAL=&IS_PARALLEL=false&CUSTOMIZED_SDK_URL=&BUILD_IDENTIFIER=&AUTO_DETECT=true&ADOPTOPENJDK_BRANCH=master&TKG_SHA=&ARTIFACTORY_SERVER=&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=&OPENJDK_SHA=&KEEP_WORKSPACE=false&JDK_VERSION=11&BUILD_LIST=openjdk&USER_CREDENTIALS_ID=&UPSTREAM_JOB_NUMBER=706&ITERATIONS=1&VENDOR_TEST_REPOS=&JDK_REPO=https%3A%2F%2Fgithub.com%2Fibmruntimes%2Fopenj9-openjdk-jdk11&TIME_LIMIT=10&RELEASE_TAG=openj9-0.23.0&OPENJ9_BRANCH=master&OPENJ9_SHA=&JCK_GIT_REPO=&VENDOR_TEST_BRANCHES=&UPSTREAM_JOB_NAME=build-scripts%2Fjobs%2Fjdk11u%2Fjdk11u-linux-x64-openj9-linuxXL&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse%2Fopenj9.git&JVM_OPTIONS=&TKG_REPO=https%3A%2F%2Fgithub.com%2FAdoptOpenJDK%2FTKG.git
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.