Skip to content

Migrate Jenkinsfile 2 GH Actions Workflow - #1366

Merged
reakaleek merged 16 commits into
elastic:mainfrom
reakaleek:feature/migrate-jenksinfile-2-gh-actions-workflow
Apr 3, 2023
Merged

Migrate Jenkinsfile 2 GH Actions Workflow#1366
reakaleek merged 16 commits into
elastic:mainfrom
reakaleek:feature/migrate-jenksinfile-2-gh-actions-workflow

Conversation

@reakaleek

@reakaleek reakaleek commented Feb 20, 2023

Copy link
Copy Markdown
Member

What does this pull request do?

Partially migrates the Jenkinsfile to GH Actions.

@reakaleek reakaleek self-assigned this Feb 20, 2023
@ghost

ghost commented Feb 20, 2023

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 99.237% (130/131) 👍
Classes 99.237% (130/131) 👍
Lines 57.1% (2469/4324) 👍
Conditionals 100.0% (0/0) 💚

@reakaleek

reakaleek commented Feb 21, 2023

Copy link
Copy Markdown
Member Author

While debugging I noticed that there is a flaky test that would fail randomly on any matrix item with the following error:

  1) ElasticAPM::Metrics.collect_and_send when no samples calls callback
     Failure/Error: expect(callback).to_not receive(:call)

       (#<Proc:0x37c1688b@/app/spec/elastic_apm/metrics_spec.rb:25 (lambda)>).call(*(any args))
           expected: 0 times with any arguments
           received: 1 time with any arguments
     # ./spec/elastic_apm/metrics_spec.rb:102:in `block in ElasticAPM'
     # /usr/local/bundle/jruby/2.5.0/gems/webmock-3.18.1/lib/webmock/rspec.rb:37:in `block in /usr/local/bundle/jruby/2.5.0/gems/webmock-3.18.1/lib/webmock/rspec.rb'

samples:

@reakaleek
reakaleek force-pushed the feature/migrate-jenksinfile-2-gh-actions-workflow branch from c8d567a to 2c40b54 Compare March 6, 2023 10:06
but keep benchmarks in Jenkins. They will be handled in a follow-up
@reakaleek
reakaleek force-pushed the feature/migrate-jenksinfile-2-gh-actions-workflow branch from b2d2d51 to 359520f Compare March 6, 2023 13:56
@reakaleek
reakaleek requested review from a team March 6, 2023 13:57
@reakaleek
reakaleek marked this pull request as ready for review March 6, 2023 13:57
@reakaleek

Copy link
Copy Markdown
Member Author

We have some failing tests, but I think they are not related to this PR. It's also failing on main in https://apm-ci.elastic.co/job/apm-agent-ruby/job/apm-agent-ruby-mbp/job/main/76/

Comment thread .github/workflows/release.yml
@elastic elastic deleted a comment Mar 6, 2023

@v1v v1v left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, just a few comments

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/coverage-reporter.yml
Comment thread .github/workflows/coverage-reporter.yml
Comment thread .github/workflows/opentelemetry.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/snapshoty.yml
Comment thread .ci/.jenkins_ruby.yml
Comment thread .ci/Jenkinsfile
Comment thread .github/workflows/ci.yml
@ghost

ghost commented Mar 6, 2023

Copy link
Copy Markdown

💚 Build Succeeded

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

Expand to view the summary

Build stats

  • Start Time: 2023-03-30T14:01:48.675+0000

  • Duration: 3 min 59 sec

🤖 GitHub comments

Expand to view the 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 elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@reakaleek
reakaleek force-pushed the feature/migrate-jenksinfile-2-gh-actions-workflow branch from 4562c2e to 59413ca Compare March 6, 2023 15:05
@reakaleek
reakaleek force-pushed the feature/migrate-jenksinfile-2-gh-actions-workflow branch from 59413ca to 860c5eb Compare March 6, 2023 15:09
@reakaleek

Copy link
Copy Markdown
Member Author

run benchmark tests

@reakaleek reakaleek mentioned this pull request Mar 8, 2023
9 tasks
…kflow

# Conflicts:
#	.ci/.jenkins_exclude.yml
Comment thread .github/workflows/run-matrix.yml
@reakaleek
reakaleek marked this pull request as draft March 8, 2023 08:26
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
Comment thread .ci/Jenkinsfile
@reakaleek
reakaleek requested a review from v1v March 8, 2023 14:16
@reakaleek
reakaleek marked this pull request as ready for review March 8, 2023 14:16
@reakaleek
reakaleek requested a review from gregkalapos March 8, 2023 19:11
@reakaleek
reakaleek requested a review from estolfo March 21, 2023 10:54
@v1v

v1v commented Mar 24, 2023

Copy link
Copy Markdown
Member

@estolfo , would you mind reviewing it please? Do you happen to know when a new release will be done? So we can be part of the process to be sure things work nicely when running on GH actions?

Thanks

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/release.yml Outdated
Co-authored-by: Adrien Mannocci <adrien.mannocci@gmail.com>
Comment thread .ci/Jenkinsfile Outdated
@reakaleek
reakaleek merged commit 754270c into elastic:main Apr 3, 2023
@reakaleek
reakaleek deleted the feature/migrate-jenksinfile-2-gh-actions-workflow branch April 3, 2023 08:46
jclusso added a commit to jclusso/apm-agent-ruby that referenced this pull request Apr 13, 2023
* elastic/main: (30 commits)
  docs: remove kibana endpoint (elastic#1381)
  Update status badge (elastic#1379)
  Create single status check that can be set as required (elastic#1378)
  Remove jenkins related precommit hooks (elastic#1380)
  Migrate Jenkinsfile 2 GH Actions Workflow (elastic#1366)
  Migrate update specs to updatecli (elastic#1375)
  v4.6.2
  Fixing Faraday::RackBuilder::StackLocked (elastic#1371)
  Fix jruby docker images (elastic#1367)
  Update reference to sinatra main (elastic#1373)
  Update release:update_branch task to reference branch 4.x
  Add missing docs reference
  v4.6.1
  Add security options to docker containers (elastic#1356)
  Make sure http status code is set when Faraday Middleware is used (elastic#1368)
  Use composite action for updatecli workflow (elastic#1365)
  Fix sha source in updatecli update-specs.yml (elastic#1363)
  Add update-specs updatecli workflow (elastic#1359)
  use jruby user to run docker containers (elastic#1355)
  Close the read pipe at the right moment (elastic#1351)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants