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

[Backport 2.x] enabled mockTelemetryPlugin for IT and fixed OOM (#13054) #13269

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

atharvasharma61
Copy link
Contributor

@atharvasharma61 atharvasharma61 commented Apr 17, 2024

Description

Backport PR for #13054

Related Issues

Resolves #13054

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…13054)

* Disable stackTrace in MockSpanData by default

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* enabled MockTelemetryPlugin for ITs

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* Added the flag as system property

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* Applied java spotless check

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* Added details in changelog

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* Added details in TESTING.md

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>

* Update TESTING.md

Signed-off-by: Atharva Sharma <60044988+atharvasharma61@users.noreply.github.com>

---------

Signed-off-by: Atharva Sharma <atharvasharma61@gmail.com>
Signed-off-by: Atharva Sharma <60044988+atharvasharma61@users.noreply.github.com>
(cherry picked from commit 51009b7)
Copy link
Contributor

❌ Gradle check result for 748c2a4: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@reta
Copy link
Collaborator

reta commented Apr 17, 2024

❌ Gradle check result for 748c2a4: FAILURE

#13270

Copy link
Contributor

✅ Gradle check result for 748c2a4: SUCCESS

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.12%. Comparing base (0dd892c) to head (748c2a4).
Report is 152 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #13269      +/-   ##
============================================
- Coverage     71.28%   71.12%   -0.17%     
- Complexity    60145    60549     +404     
============================================
  Files          4957     5004      +47     
  Lines        282799   285411    +2612     
  Branches      41409    41729     +320     
============================================
+ Hits         201591   202990    +1399     
- Misses        64189    65225    +1036     
- Partials      17019    17196     +177     

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

@reta reta merged commit a14ec07 into opensearch-project:2.x Apr 17, 2024
57 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-13269-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a14ec07beab625c28a377a97e40431ebf9d83472
# Push it to GitHub
git push --set-upstream origin backport/backport-13269-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-13269-to-2.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch backport-failed bug Something isn't working flaky-test Random test failure that succeeds on second run Other
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants