Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

fix: update JDK and apply some maven options#904

Merged
kuisathaverat merged 3 commits intoelastic:masterfrom
kuisathaverat:fix-java-agent
Sep 2, 2020
Merged

fix: update JDK and apply some maven options#904
kuisathaverat merged 3 commits intoelastic:masterfrom
kuisathaverat:fix-java-agent

Conversation

@kuisathaverat
Copy link
Copy Markdown
Contributor

What does this PR do?

  • Update the JDK to 11
  • Update maven to 3.6.3
  • Use adoptopenjdk for compile (in this PR) and run (currently) to unify criteria of JDK
  • Some shellcheck fixes on the scripts
  • Add -Dhttps.protocols=TLSv1.2 -Dmaven.javadoc.skip=true to the maven options

Related issues

Closes #901

@kuisathaverat kuisathaverat added bug ci automation Team:Automation Label for the Observability productivity team labels Sep 1, 2020
@kuisathaverat kuisathaverat requested a review from a team September 1, 2020 13:16
@kuisathaverat kuisathaverat self-assigned this Sep 1, 2020
if [ -z "${JAVA_AGENT_BUILT_VERSION}" ] ; then
cd /agent/apm-agent-java
mvn -q --batch-mode install -DskipTests \
git log -1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show the last commit in the source, useful to know if you are compiling what you want

@@ -1,20 +1,21 @@
#!/usr/bin/env bash
set -x
set -xe
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exit on first error

@@ -1,25 +1,29 @@
#!/usr/bin/env bash
set -x
set -xe
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exit on first error

@ghost
Copy link
Copy Markdown

ghost commented Sep 1, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by timer]

  • Start Time: 2020-09-02T03:47:00.770+0000

  • Duration: 26 min 36 sec

Test stats 🧪

Test Results
Failed 0
Passed 192
Skipped 8
Total 200

Steps errors

Expand to view the steps failures

  • Name: Error signal
    • Description: Downstream job for 'All' failed

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-02T04:12:36.045+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-02T03:52:17.068Z] Collecting zipp>=0.5
[2020-09-02T03:52:17.068Z]   Downloading zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
[2020-09-02T03:52:17.068Z] Collecting configparser>=3.5; python_version < "3"
[2020-09-02T03:52:17.068Z]   Downloading configparser-4.0.2-py2.py3-none-any.whl (22 kB)
[2020-09-02T03:52:17.330Z] Collecting typing; python_version < "3.5"
[2020-09-02T03:52:17.330Z]   Downloading typing-3.7.4.3-py2-none-any.whl (26 kB)
[2020-09-02T03:52:17.330Z] Collecting singledispatch; python_version < "3.4"
[2020-09-02T03:52:17.330Z]   Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl (12 kB)
[2020-09-02T03:52:17.330Z] Collecting scandir; python_version < "3.5"
[2020-09-02T03:52:17.330Z]   Downloading scandir-1.10.0.tar.gz (33 kB)
[2020-09-02T03:52:17.595Z] Building wheels for collected packages: pyyaml, filelock, scandir
[2020-09-02T03:52:17.595Z]   Building wheel for pyyaml (setup.py): started
[2020-09-02T03:52:18.169Z]   Building wheel for pyyaml (setup.py): finished with status 'done'
[2020-09-02T03:52:18.169Z]   Created wheel for pyyaml: filename=PyYAML-5.3.1-cp27-cp27mu-linux_x86_64.whl size=45643 sha256=3fae627567a21b4fb1bab540a7b725e0fddb47e6ff4714971ad0a4d41b40a4f8
[2020-09-02T03:52:18.169Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pip/wheels/d1/d5/a0/3c27cdc8b0209c5fc1385afeee936cf8a71e13d885388b4be2
[2020-09-02T03:52:18.169Z]   Building wheel for filelock (setup.py): started
[2020-09-02T03:52:18.431Z]   Building wheel for filelock (setup.py): finished with status 'done'
[2020-09-02T03:52:18.431Z]   Created wheel for filelock: filename=filelock-3.0.12-py2-none-any.whl size=7578 sha256=68f44e6dceac1260ef4996d76acaf913032bce50c6039a09ba5766c2367c33f4
[2020-09-02T03:52:18.432Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pip/wheels/b9/91/23/b559c1f4fd55056712b3a71cd9cab1dc0089e2232d502ed72e
[2020-09-02T03:52:18.432Z]   Building wheel for scandir (setup.py): started
[2020-09-02T03:52:19.005Z]   Building wheel for scandir (setup.py): finished with status 'done'
[2020-09-02T03:52:19.005Z]   Created wheel for scandir: filename=scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl size=33234 sha256=61b13d64b2e43dcea69b04e02cc5a0cb1dd0c3c326191e76d64fa03bd1a0e731
[2020-09-02T03:52:19.005Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pip/wheels/58/2c/26/52406f7d1f19bcc47a6fbd1037a5f293492f5cf1d58c539edb
[2020-09-02T03:52:19.005Z] Successfully built pyyaml filelock scandir
[2020-09-02T03:52:19.005Z] Installing collected packages: futures, pyyaml, aspy.yaml, contextlib2, zipp, configparser, scandir, six, pathlib2, importlib-metadata, typing, singledispatch, importlib-resources, appdirs, distlib, filelock, virtualenv, toml, cfgv, nodeenv, identify, pre-commit
[2020-09-02T03:52:19.951Z] Successfully installed appdirs-1.4.4 aspy.yaml-1.3.0 cfgv-2.0.1 configparser-4.0.2 contextlib2-0.6.0.post1 distlib-0.3.1 filelock-3.0.12 futures-3.3.0 identify-1.4.30 importlib-metadata-1.7.0 importlib-resources-3.0.0 nodeenv-1.5.0 pathlib2-2.3.5 pre-commit-1.21.0 pyyaml-5.3.1 scandir-1.10.0 singledispatch-3.4.0.3 six-1.15.0 toml-0.10.1 typing-3.7.4.3 virtualenv-20.0.31 zipp-1.2.0
[2020-09-02T03:52:19.952Z] Downloading https://files.pythonhosted.org/packages/a4/e3/1f067de470e3a86875ed915438dc3bd781fb0346254f541190a09472b677/virtualenv-16.7.10.tar.gz
[2020-09-02T03:52:19.952Z] Done.
[2020-09-02T03:52:19.952Z] *******************************************************************************
[2020-09-02T03:52:19.952Z] Installing pre-commit to /var/lib/jenkins/workspace/apm-integration-tests_PR-904/bin/pre-commit
[2020-09-02T03:52:19.952Z] *******************************************************************************
[2020-09-02T03:52:19.952Z] It looks like /var/lib/jenkins/workspace/apm-integration-tests_PR-904/bin is not on your path
[2020-09-02T03:52:19.952Z] You may want to add it.
[2020-09-02T03:52:19.952Z] Often this does the trick: source ~/.profile
[2020-09-02T03:52:20.282Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-904/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[2020-09-02T03:52:20.282Z] + pre-commit install --install-hooks
[2020-09-02T03:52:20.544Z] pre-commit installed at .git/hooks/pre-commit
[2020-09-02T03:52:20.544Z] [INFO] Initializing environment for git://github.com/pre-commit/pre-commit-hooks.
[2020-09-02T03:52:21.120Z] [INFO] Initializing environment for https://github.com/detailyang/pre-commit-shell.git.
[2020-09-02T03:52:21.693Z] [INFO] Initializing environment for https://github.com/adrienverge/yamllint.git.
[2020-09-02T03:52:22.265Z] [INFO] Initializing environment for git@github.com:elastic/apm-pipeline-library.
[2020-09-02T03:52:23.658Z] [INFO] Installing environment for git://github.com/pre-commit/pre-commit-hooks.
[2020-09-02T03:52:23.658Z] [INFO] Once installed this environment will be reused.
[2020-09-02T03:52:23.658Z] [INFO] This may take a few minutes...
[2020-09-02T03:52:31.906Z] [INFO] Installing environment for https://github.com/adrienverge/yamllint.git.
[2020-09-02T03:52:31.906Z] [INFO] Once installed this environment will be reused.
[2020-09-02T03:52:31.906Z] [INFO] This may take a few minutes...
[2020-09-02T03:52:34.136Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-904/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[2020-09-02T03:52:34.136Z] + set +e
[2020-09-02T03:52:34.136Z] + find /var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pre-commit -type d -name scripts
[2020-09-02T03:52:34.136Z] + grep .ci/scripts
[2020-09-02T03:52:34.136Z] + searchFile=/var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pre-commit/repo0AIPtp/.ci/scripts
[2020-09-02T03:52:34.136Z] + [ -e /var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pre-commit/repo0AIPtp/.ci/scripts ]
[2020-09-02T03:52:34.136Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-904/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/lib/jenkins/workspace/apm-integration-tests_PR-904/.cache/pre-commit/repo0AIPtp/.ci/scripts
[2020-09-02T03:52:34.136Z] + set -e
[2020-09-02T03:52:34.136Z] + tee pre-commit.out
[2020-09-02T03:52:34.136Z] + git diff-tree --no-commit-id --name-only -r f57adb118f07c2c2cbd04261a6b2c1c5ae3b8a94
[2020-09-02T03:52:34.136Z] + xargs pre-commit run --files
[2020-09-02T03:52:34.399Z] Check for case conflicts.................................................Passed
[2020-09-02T03:52:34.661Z] Check that executables have shebangs.....................................Passed
[2020-09-02T03:52:34.661Z] Check JSON...........................................(no files to check)Skipped
[2020-09-02T03:52:34.661Z] Check for merge conflicts................................................Passed
[2020-09-02T03:52:34.661Z] Check Yaml...........................................(no files to check)Skipped
[2020-09-02T03:52:34.661Z] Check Xml............................................(no files to check)Skipped
[2020-09-02T03:52:34.661Z] Fix End of Files.........................................................Passed
[2020-09-02T03:52:36.583Z] Shellscript: lint........................................................Passed
[2020-09-02T03:52:36.583Z] Yaml: lint...........................................(no files to check)Skipped
[2020-09-02T03:52:36.583Z] check-bash-syntax........................................................Passed
[2020-09-02T03:52:36.583Z] check-abstract-classes-and-trait.....................(no files to check)Skipped
[2020-09-02T03:52:36.583Z] check-jsonslurper-class..............................(no files to check)Skipped
[2020-09-02T03:52:36.583Z] check-jenkins-pipelines..............................(no files to check)Skipped
[2020-09-02T03:52:36.583Z] - hook id: check-jenkins-pipelines
[2020-09-02T03:52:36.583Z] check-unicode-non-breaking-spaces........................................Passed
[2020-09-02T03:52:36.583Z] remove-unicode-non-breaking-spaces.......................................Passed
[2020-09-02T03:52:36.583Z] check-en-dashes..........................................................Passed
[2020-09-02T03:52:36.583Z] remove-en-dashes.........................................................Passed
[2020-09-02T03:52:36.583Z] check-jjbb...........................................(no files to check)Skipped
[2020-09-02T03:52:36.583Z] - hook id: check-jjbb
[2020-09-02T03:52:36.537Z] $ ssh-agent -k
[2020-09-02T03:52:36.542Z] unset SSH_AUTH_SOCK;
[2020-09-02T03:52:36.542Z] unset SSH_AGENT_PID;
[2020-09-02T03:52:36.542Z] echo Agent pid 2609 killed;
[2020-09-02T03:52:36.627Z] [ssh-agent] Stopped.
[2020-09-02T03:52:36.720Z] Archiving artifacts
[2020-09-02T03:52:36.928Z] Recording test results
[2020-09-02T03:52:38.858Z] [INFO] Launching Agent tests in parallel
[2020-09-02T03:52:38.956Z] Scheduling project: APM Integration Test Downstream » PR-904
[2020-09-02T03:52:51.208Z] Starting building: APM Integration Test Downstream » PR-904 #5
[2020-09-02T04:12:36.027Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-904/5/display/redirect
[2020-09-02T04:12:36.056Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-904/All
[2020-09-02T04:12:36.556Z] Copied 48 artifacts from "APM Integration Test Downstream » PR-904" build number 5
[2020-09-02T04:12:36.564Z] Recording test results
[2020-09-02T04:12:36.584Z] None of the test reports contained any result
[2020-09-02T04:12:36.604Z] Failed in branch All
[2020-09-02T04:12:36.798Z] Running on Jenkins in /var/lib/jenkins/workspace/apm-integration-tests_PR-904
[2020-09-02T04:12:36.821Z] [INFO] getVaultSecret: Getting secrets
[2020-09-02T04:12:36.884Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-02T04:12:37.396Z] + chmod 755 generate-build-data.sh
[2020-09-02T04:12:37.396Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-904/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-904/runs/5 FAILURE 1536368
[2020-09-02T04:12:37.947Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-904/runs/5/steps/?limit=10000 -o steps-info.json

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>
@kuisathaverat kuisathaverat merged commit 8459767 into elastic:master Sep 2, 2020
kuisathaverat added a commit to kuisathaverat/apm-integration-testing that referenced this pull request Sep 2, 2020
* fix: update JDK and apply some maven options

* Update docker/java/spring/maven-package.sh

* fix: back to use maven

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
# Conflicts:
#	docker/opbeans/java/Dockerfile
kuisathaverat added a commit to kuisathaverat/apm-integration-testing that referenced this pull request Sep 2, 2020
* fix: update JDK and apply some maven options

* Update docker/java/spring/maven-package.sh

* fix: back to use maven

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
# Conflicts:
#	docker/opbeans/java/Dockerfile
#	docker/opbeans/java/build-agent.sh
kuisathaverat added a commit that referenced this pull request Sep 2, 2020
* fix: update JDK and apply some maven options

* Update docker/java/spring/maven-package.sh

* fix: back to use maven

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
# Conflicts:
#	docker/opbeans/java/Dockerfile
#	docker/opbeans/java/build-agent.sh
kuisathaverat added a commit that referenced this pull request Sep 2, 2020
* fix: update JDK and apply some maven options

* Update docker/java/spring/maven-package.sh

* fix: back to use maven

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
# Conflicts:
#	docker/opbeans/java/Dockerfile
v1v added a commit to v1v/apm-integration-testing that referenced this pull request Dec 16, 2020
* upstream/6.x: (22 commits)
  fix: skip chrome and firefox downloads on the RUM agent Docker image (elastic#965) (elastic#977)
  fix: change to use adoptOpenJDK to fix the build (elastic#944) (elastic#945)
  [6.x] fix: increase the resilience against network issues (elastic#927) (elastic#929)
  fix: use Node.js LTS version for ITs (elastic#921) (elastic#924)
  fix: RUM Docker image build (elastic#915)
  fix: update JDK and apply some maven options (elastic#904) (elastic#911)
  fix: use fixed version of setuptools (elastic#907) (elastic#909)
  fix: missing dependencies for rum test (elastic#899) (elastic#903)
  fix: update Go version to the latest LTS version (elastic#891)
  fix: add libxss dependency to the opbean-rum (elastic#880) (elastic#882)
  fix: remove chrome drive is not used (elastic#876)
  fix: update dependencies to run integration tests (elastic#872) (elastic#874)
  feat: bump pytest version (elastic#866) (elastic#868)
  test: add 6.x version to the test (elastic#651)
  (rum): run build on all RUM packages (elastic#622)
  feat: disable shallow cloning when using downstream pipelines (elastic#583) (elastic#585)
  [6.x] feat: pre-commit config (elastic#547) (elastic#549)
  fix: update build status badge
  ci: remove jenkinsfile
  feat: delete legacy integration testing jobs (elastic#542)
  ...
v1v added a commit to v1v/apm-integration-testing that referenced this pull request Jan 8, 2021
* upstream/6.x: (23 commits)
  Bump 6.8 release (elastic#1007)
  fix: skip chrome and firefox downloads on the RUM agent Docker image (elastic#965) (elastic#977)
  fix: change to use adoptOpenJDK to fix the build (elastic#944) (elastic#945)
  [6.x] fix: increase the resilience against network issues (elastic#927) (elastic#929)
  fix: use Node.js LTS version for ITs (elastic#921) (elastic#924)
  fix: RUM Docker image build (elastic#915)
  fix: update JDK and apply some maven options (elastic#904) (elastic#911)
  fix: use fixed version of setuptools (elastic#907) (elastic#909)
  fix: missing dependencies for rum test (elastic#899) (elastic#903)
  fix: update Go version to the latest LTS version (elastic#891)
  fix: add libxss dependency to the opbean-rum (elastic#880) (elastic#882)
  fix: remove chrome drive is not used (elastic#876)
  fix: update dependencies to run integration tests (elastic#872) (elastic#874)
  feat: bump pytest version (elastic#866) (elastic#868)
  test: add 6.x version to the test (elastic#651)
  (rum): run build on all RUM packages (elastic#622)
  feat: disable shallow cloning when using downstream pipelines (elastic#583) (elastic#585)
  [6.x] feat: pre-commit config (elastic#547) (elastic#549)
  fix: update build status badge
  ci: remove jenkinsfile
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automation bug ci Team:Automation Label for the Observability productivity team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

APM Java test are failing to build the Docker image

4 participants