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

Linting improvements #1000

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

gregschohn
Copy link
Collaborator

Description

[Describe what this change achieves]

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
  • Why these changes are required?
  • What is the old behavior before changes and new behavior after changes?

Issues Resolved

[List any issues this PR will resolve]

Is this a backport? If so, please add backport PR # and/or commits #

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 66.50943% with 71 lines in your changes missing coverage. Please review.

Project coverage is 80.30%. Comparing base (e27072e) to head (98e6d94).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
.../opensearch/migrations/bulkload/common/S3Repo.java 28.57% 20 Missing ⚠️
...rations/bulkload/common/LuceneDocumentsReader.java 56.75% 13 Missing and 3 partials ⚠️
...ch/migrations/bulkload/common/SnapshotCreator.java 33.33% 8 Missing ⚠️
...h/migrations/bulkload/common/OpenSearchClient.java 82.85% 3 Missing and 3 partials ⚠️
...ch/migrations/bulkload/worker/DocumentsRunner.java 0.00% 4 Missing ⚠️
...s/trafficcapture/FileConnectionCaptureFactory.java 0.00% 4 Missing ⚠️
...igrations/bulkload/common/ByteArrayIndexInput.java 0.00% 3 Missing ⚠️
...load/transformers/Transformer_ES_7_10_OS_2_11.java 91.30% 0 Missing and 2 partials ⚠️
...ions/bulkload/transformers/TransformFunctions.java 93.75% 0 Missing and 1 partial ⚠️
...ad/transformers/Transformer_ES_6_8_to_OS_2_11.java 87.50% 1 Missing ⚠️
... and 6 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1000      +/-   ##
============================================
+ Coverage     80.16%   80.30%   +0.13%     
- Complexity     2720     2722       +2     
============================================
  Files           370      365       -5     
  Lines         13624    13595      -29     
  Branches        938      939       +1     
============================================
- Hits          10922    10917       -5     
+ Misses         2131     2105      -26     
- Partials        571      573       +2     
Flag Coverage Δ
gradle-test 78.33% <66.50%> (+0.15%) ⬆️
python-test 89.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@gregschohn gregschohn force-pushed the LintingImprovements branch 2 times, most recently from 2c7b618 to e8549eb Compare September 24, 2024 03:57
@@ -462,7 +451,7 @@ public String getFailureMessage() {
}

public static class OperationFailed extends RfsException {
public final HttpResponse response;
public final transient HttpResponse response;
Copy link
Member

Choose a reason for hiding this comment

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

Interesting... i've never seen transient

Copy link
Member

@AndreKurait AndreKurait left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

Signed-off-by: Greg Schohn <[email protected]>

# Conflicts:
#	RFS/src/main/java/org/opensearch/migrations/bulkload/common/InvalidResponse.java
Copy link
Member

@AndreKurait AndreKurait left a comment

Choose a reason for hiding this comment

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

LGTM

@gregschohn gregschohn merged commit b574434 into opensearch-project:main Sep 25, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants