apm-agent-java icon indicating copy to clipboard operation
apm-agent-java copied to clipboard

ci: use k8s pod template agents

Open v1v opened this issue 4 years ago • 5 comments

What does this PR do?

PoC with K8s CI Workers

Checklist

  • ~~[ ] This is an enhancement of existing features, or a new feature in existing plugins~~
    • [ ] I have updated CHANGELOG.asciidoc
    • [ ] I have added tests that prove my fix is effective or that my feature works
    • [ ] Added an API method or config option? Document in which version this will be introduced
    • [ ] I have made corresponding changes to the documentation
  • ~~[ ] This is a bugfix~~
    • [ ] I have updated CHANGELOG.asciidoc
    • [ ] I have added tests that would fail without this fix
  • ~~[ ] This is a new plugin~~
    • [ ] I have updated CHANGELOG.asciidoc
    • [ ] My code follows the style guidelines of this project
    • [ ] I have made corresponding changes to the documentation
    • [ ] I have added tests that prove my fix is effective or that my feature works
    • [ ] New and existing unit tests pass locally with my changes
    • [ ] I have updated supported-technologies.asciidoc
    • [ ] Added an API method or config option? Document in which version this will be introduced
    • [ ] Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.
  • [x] This is something else

Why

  1. Delegate the Agents configuration to the consumers
  2. Faster provisioning.

For instance, the agent is provisioned almost immediately, compared to the 2 minutes average per CI worker

image

Actions

  • [ ] Cached workspace to speed up builds?
  • [ ] Matrix support for difference openjdk versions

v1v avatar Dec 05 '21 15:12 v1v

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-12-08T08:39:21.273+0000

  • Duration: 14 min 51 sec

  • Commit: 99f2581657917c44f465729badb511b3ef4fdebe

Test stats :test_tube:

Test Results
Failed 7
Passed 17
Skipped 0
Total 24

Test errors 7

Expand to view the tests failures

Tests / Smoke Tests 01 / test[mysql jdbc:tc:mysql:5://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Could not find a valid Docker environment. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[postgresql jdbc:tc:postgresql:9://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[postgresql jdbc:tc:postgresql:10://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[mariadb jdbc:tc:mariadb:10://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[mssql jdbc:tc:sqlserver:2017-CU12://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[db2 jdbc:tc:db2:11.5.0.0a://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    
Tests / Smoke Tests 01 / test[oracle jdbc:tc:oracle://hostname/databasename] – co.elastic.apm.agent.jdbc.JdbcDbIT
    Expand to view the error details

     Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration 
    
    Expand to view the stacktrace

     java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
    	at co.elastic.apm.agent.jdbc.JdbcDbIT.<init>(JdbcDbIT.java:35)
     
    

Steps errors 1

Expand to view the steps failures

Shell Script
  • Took 1 min 51 sec . View more details here
  • Description: ./scripts/jenkins/smoketests-01.sh

:bug: Flaky test report

:grey_exclamation: There are test failures but not known flaky tests.

:robot: GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

  • run compatibility tests : Run the JDK Compatibility test.

  • run integration tests : Run the APM-ITs.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

apmmachine avatar Dec 05 '21 15:12 apmmachine

@mergifyio refresh

v1v avatar Dec 07 '21 21:12 v1v

refresh

✅ Pull request refreshed

mergify[bot] avatar Dec 07 '21 21:12 mergify[bot]

@Mergifyio update

v1v avatar Dec 07 '21 21:12 v1v

update

✅ Branch has been successfully updated

mergify[bot] avatar Dec 07 '21 21:12 mergify[bot]

@v1v do we want to proceed with this, or can I close this PR?

eyalkoren avatar Feb 05 '23 15:02 eyalkoren

Closing this issue as we are moving away from Jenkins

v1v avatar Feb 05 '23 19:02 v1v