Skip to content
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

K8s lib injection tests new scenarios #4234

Merged
merged 12 commits into from
Jan 10, 2025

Conversation

robertomonteromiguel
Copy link
Contributor

@robertomonteromiguel robertomonteromiguel commented Dec 17, 2024

What does this PR do?

Adapt the gitlab pipeline to add the new k8s lib injection tests scenarios

Motivation:

We need to ensure the scalability of the system-tests k8s lib injection tests.
We added the new scenarios on system-tests. We changed the one pipeline and now on the tracer we need to create the test matrix with the new scenarios

Change log entry
No

Additional Notes:

How to test the change?

@github-actions github-actions bot added the dev/ci Involves CircleCI, GitHub Actions, or GitLab label Dec 17, 2024
Copy link

github-actions bot commented Dec 17, 2024

Thank you for updating Change log entry section 👏

Visited at: 2025-01-09 11:52:52 UTC

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Dec 17, 2024

Datadog Report

Branch report: robertomonteromiguel/k8s_new_scenarios
Commit report: eaf515f
Test service: dd-trace-rb

✅ 0 Failed, 22121 Passed, 1476 Skipped, 5m 23.77s Total Time
⌛ 1 Performance Regression

⌛ Performance Regressions vs Default Branch (1)

  • Rails integration tests for an application with a basic route Nested apps GET request with an event-triggering request in query string behaves like a GET 200 span is expected to eq 0 - rspec 3.58s (+2.99s, +508%) - Details

@pr-commenter
Copy link

pr-commenter bot commented Dec 17, 2024

Benchmarks

Benchmark execution time: 2025-01-10 09:01:16

Comparing candidate commit eaf515f in PR branch robertomonteromiguel/k8s_new_scenarios with baseline commit 08041d2 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 31 metrics, 2 unstable metrics.

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (08041d2) to head (eaf515f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4234      +/-   ##
==========================================
- Coverage   97.72%   97.72%   -0.01%     
==========================================
  Files        1354     1354              
  Lines       82450    82449       -1     
  Branches     4236     4236              
==========================================
- Hits        80578    80571       -7     
- Misses       1872     1878       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@robertomonteromiguel robertomonteromiguel marked this pull request as ready for review January 9, 2025 07:53
@robertomonteromiguel robertomonteromiguel requested a review from a team as a code owner January 9, 2025 07:53
Copy link
Member

@p-datadog p-datadog left a comment

Choose a reason for hiding this comment

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

I am not familiar with the tests in question, therefore I can add my checkmark on the basis of this PR not obviously affecting the rest of dd-trace-rb in a negative way but I cannot tell whether the changes do test everything correctly.

The tests also look like they are stuck.

@robertomonteromiguel
Copy link
Contributor Author

The tests also look like they are stuck.

https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-rb/-/pipelines/52523725

I can't merge the PR: "The base branch restricts merging to authorized users. "

@ivoanjo
Copy link
Member

ivoanjo commented Jan 10, 2025

These 3 tests seem to be completely stuck and I've not seen this in master so they do seem to be caused by this PR:

image

@robertomonteromiguel can you check what's up there?

@robertomonteromiguel
Copy link
Contributor Author

These 3 tests seem to be completely stuck and I've not seen this in master so they do seem to be caused by this PR:

image

@robertomonteromiguel can you check what's up there?

@ivoanjo I can't access to your repository settings, but I seems that there are specific requirements for merge a PR. These requirements are pointed to the jobs that not longer exists. You need to change them to the new scenarios/jobs on ruby. Ping me if you need help to do that.

@robertomonteromiguel
Copy link
Contributor Author

robertomonteromiguel commented Jan 10, 2025

These 3 tests seem to be completely stuck and I've not seen this in master so they do seem to be caused by this PR:

image

@robertomonteromiguel can you check what's up there?

@ivoanjo I can't access to your repository settings, but I seems that there are specific requirements for merge a PR. These requirements are pointed to the jobs that not longer exists. You need to change them to the new scenarios/jobs on ruby. Ping me if you need help to do that.

Here an example of system-tests repository requirements:
Screenshot 2025-01-10 at 13 06 45

@ivoanjo
Copy link
Member

ivoanjo commented Jan 10, 2025

@ivoanjo I can't access to your repository settings, but I seems that there are specific requirements for merge a PR. These requirements are pointed to the jobs that not longer exists. You need to change them to the new scenarios/jobs on ruby. Ping me if you need help to do that.

Ahh right, this has happened to me before -- github couples on the exact names of the tests and so if we change it a bit (like we're doing here) then GitHub gets really confused.

Two notes:

  1. Since now we have many separate tests, do you have any recommendations on making sure that they are all green? E.g. is there a single step we can rely on that runs after all these or something like that?

image

  1. I've gone ahead and removed these tests from the require list to unblock this PR:
  • dd-gitlab/onboarding_tests_k8s_injection: [dd-lib-ruby-init-test-rails-explicit]
  • dd-gitlab/onboarding_tests_k8s_injection: [dd-lib-ruby-init-test-rails-gemsrb]
  • dd-gitlab/onboarding_tests_k8s_injection: [dd-lib-ruby-init-test-rails]

@ivoanjo ivoanjo merged commit 61d8723 into master Jan 10, 2025
378 checks passed
@ivoanjo ivoanjo deleted the robertomonteromiguel/k8s_new_scenarios branch January 10, 2025 12:48
@github-actions github-actions bot added this to the 2.9.0 milestone Jan 10, 2025
@robertomonteromiguel
Copy link
Contributor Author

  1. we can rely on that runs after all the

I still don't have a clear idea of how to manage this. The same thing happens with other tracers and with the other onboarding tests.
I had the same problem a couple of months ago, with other tests in another repository.
It is painful to rename a test scenario or create a new one. Since you have to add it in all tracers, and also these checks are different in each repository, and I don't have permissions to modify these checks in the repositories either.
Let me discuss it with the team, to try to come up with a definitive solution that applies to all tracers.

@ivoanjo
Copy link
Member

ivoanjo commented Jan 10, 2025

Let me discuss it with the team, to try to come up with a definitive solution that applies to all tracers.

Awesome, thank you, looking forward to it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/ci Involves CircleCI, GitHub Actions, or GitLab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants