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

Changes affected String.toString() method calls to reflect correct signature #2418

Merged

Conversation

DarshitChanpura
Copy link
Member

@DarshitChanpura DarshitChanpura commented Jan 26, 2023

Description

Fixes broken CI

  • Category: Maintenance
  • Why these changes are required? To get CI working again

Issues Resolved

Testing

Manual testing

Check List

- [ ] New functionality includes testing
- [ ] 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.

@DarshitChanpura DarshitChanpura requested a review from a team January 26, 2023 21:03
@DarshitChanpura
Copy link
Member Author

CI task failures because Maven artifact for opensearch-3.0.0-SNAPSHOT is not updated with latest changes.

@DarshitChanpura DarshitChanpura marked this pull request as draft January 26, 2023 21:15
@DarshitChanpura DarshitChanpura changed the title Changes toString method signature to reflect correct call Changes toString method calls to reflect correct signature Jan 26, 2023
@DarshitChanpura DarshitChanpura changed the title Changes toString method calls to reflect correct signature Changes affected String.toString() method calls to reflect correct signature Jan 26, 2023
Copy link
Collaborator

@stephen-crawford stephen-crawford left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

My only question is whether we are generally fine with the System.out.prints in the test files. I know you didn't put them there but I don't know what we think about those being part of the tests when I assume they are left from debugging--the asserts are the real tests.

@peternied
Copy link
Member

CI task failures because Maven artifact for opensearch-3.0.0-SNAPSHOT is not updated with latest changes.

Is there an issue for this, seems like this is blocking our CI time and time again.

@stephen-crawford
Copy link
Collaborator

CI task failures because Maven artifact for opensearch-3.0.0-SNAPSHOT is not updated with latest changes.

Is there an issue for this, seems like this is blocking our CI time and time again.

I think there is sometimes an issue filed for a specific build but there is not one for the pattern. I am not sure what kind of issue you would do for that/where you would put it.

@DarshitChanpura
Copy link
Member Author

CI task failures because Maven artifact for opensearch-3.0.0-SNAPSHOT is not updated with latest changes.

Is there an issue for this, seems like this is blocking our CI time and time again.

#2276 seems related to this

@peternied
Copy link
Member

opensearch-project/OpenSearch#2276 seems related to this

@DarshitChanpura That bug is in our repository - I don't think we are activity trying to fix it, please create an issue in OpenSearch so they can start engaging.

@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2023

Codecov Report

Merging #2418 (622be1d) into main (4b51ea7) will decrease coverage by 0.13%.
The diff coverage is 16.66%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main    opensearch-project/OpenSearch#2418      +/-   ##
============================================
- Coverage     61.16%   61.04%   -0.13%     
+ Complexity     3276     3270       -6     
============================================
  Files           260      260              
  Lines         18362    18362              
  Branches       3249     3249              
============================================
- Hits          11232    11209      -23     
- Misses         5544     5567      +23     
  Partials       1586     1586              
Impacted Files Coverage Δ
...nsearch/security/action/whoami/WhoAmIResponse.java 0.00% <0.00%> (ø)
...search/security/configuration/DlsFlsValveImpl.java 59.47% <0.00%> (ø)
...a/org/opensearch/security/tools/SecurityAdmin.java 36.60% <0.00%> (ø)
...ecurity/configuration/ConfigurationRepository.java 72.13% <100.00%> (-2.19%) ⬇️
...t/keybyoidc/AuthenticatorUnavailableException.java 0.00% <0.00%> (-20.00%) ⬇️
...org/opensearch/security/rest/TenantInfoAction.java 77.94% <0.00%> (-10.30%) ⬇️
...ic/auth/http/jwt/AbstractHTTPJwtAuthenticator.java 54.76% <0.00%> (-3.58%) ⬇️
.../auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java 59.85% <0.00%> (-3.53%) ⬇️
.../dlic/auth/ldap2/LDAPConnectionFactoryFactory.java 57.46% <0.00%> (-1.50%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@DarshitChanpura
Copy link
Member Author

DarshitChanpura commented Jan 29, 2023

@DarshitChanpura That bug is in our repository - I don't think we are activity trying to fix it, please create an issue in OpenSearch so they can start engaging.

Done. opensearch-project/opensearch-build#3158

@DarshitChanpura DarshitChanpura marked this pull request as ready for review January 30, 2023 01:34
@DarshitChanpura
Copy link
Member Author

DarshitChanpura commented Jan 30, 2023

There is an intermittent test failure issue. Related to #2229

@peternied peternied merged commit f808b2a into opensearch-project:main Jan 30, 2023
@peternied
Copy link
Member

There is an intermittent test failure issue. Related to opensearch-project/OpenSearch#2229

@DarshitChanpura Thanks for logging those failures

@cwperks cwperks added the backport 2.x backport to 2.x branch label Feb 21, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

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

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
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2418-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f808b2ae207442b5f18dc47bfb67c5a71e75e8b8
# Push it to GitHub
git push --set-upstream origin backport/backport-2418-to-2.x
# Go back to the original working tree
cd ../..
# 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-2418-to-2.x.

cwperks pushed a commit to cwperks/security that referenced this pull request Feb 21, 2023
cwperks added a commit that referenced this pull request Feb 21, 2023
…#2452)

Signed-off-by: Darshit Chanpura <[email protected]>
(cherry picked from commit f808b2a)

Co-authored-by: Darshit Chanpura <[email protected]>
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants