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

Added groupId as org.opensearch.plugin in pluginZip publication #251

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

prudhvigodithi
Copy link
Collaborator

@prudhvigodithi prudhvigodithi commented Oct 12, 2022

Signed-off-by: prudhvigodithi [email protected]

Description

Added groupId as org.opensearch.plugin in pluginZip publication

Issues Resolved

#225

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

@prudhvigodithi prudhvigodithi requested a review from a team October 12, 2022 18:12
@prudhvigodithi prudhvigodithi added backport 2.x v2.4.0 'Issues and PRs related to version v2.4.0' labels Oct 12, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2022

Codecov Report

Merging #251 (be84c72) into main (207bfe8) will decrease coverage by 0.22%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #251      +/-   ##
============================================
- Coverage     53.19%   52.96%   -0.23%     
+ Complexity       65       64       -1     
============================================
  Files             8        8              
  Lines           438      438              
  Branches         50       50              
============================================
- Hits            233      232       -1     
  Misses          186      186              
- Partials         19       20       +1     
Impacted Files Coverage Δ
...pensearch/jobscheduler/scheduler/JobScheduler.java 72.94% <0.00%> (-1.18%) ⬇️

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

@prudhvigodithi prudhvigodithi marked this pull request as draft October 12, 2022 19:41
@saratvemulapalli
Copy link
Member

Looks like the tests are failing. Want to take a stab at it? @prudhvigodithi

@prudhvigodithi
Copy link
Collaborator Author

Sure @saratvemulapalli I do see the error > Task :integTest FAILED which is not related to this change, @joshpalis can you please confirm that?

@joshpalis
Copy link
Member

@prudhvigodithi Integration and BWC tests have passed locally for me, might just be a flaky test but re-running the failed jobs have also failed. I shall spend some time digging into this.

@saratvemulapalli
Copy link
Member

saratvemulapalli commented Oct 13, 2022

@prudhvigodithi @joshpalis this commit on OpenSearch could have broken the changes[1].
Looks like org.apache.http was updated to a newer version which is why its failing.

[1]opensearch-project/OpenSearch#4459

@saratvemulapalli
Copy link
Member

saratvemulapalli commented Oct 13, 2022

I was able to re-produce the problem on local box.
Its probably stale maven local cache which was helping the build to succeed on local. After I've nuked the local cache, the problem showed up.

/gradlew :opensearch-job-scheduler-sample-extension:compileTestJava
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.5.1
  OS Info               : Linux 5.4.0-1037-aws (amd64)
  JDK Version           : 14 (Private Build JDK)
  JAVA_HOME             : /usr/lib/jvm/java-14-openjdk-amd64
  Random Testing Seed   : 990C0B537CE645E9
  In FIPS 140 mode      : false
=======================================

> Task :opensearch-job-scheduler-sample-extension:compileTestJava
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:8: error: package org.apache.http does not exist
import org.apache.http.Header;
                      ^
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:9: error: package org.apache.http does not exist
import org.apache.http.HttpEntity;
                      ^
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:10: error: package org.apache.http.entity does not exist
import org.apache.http.entity.ContentType;
                             ^
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:11: error: package org.apache.http.entity does not exist
import org.apache.http.entity.StringEntity;
                             ^
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:84: error: cannot find symbol
                                   HttpEntity entity, Header... headers) throws IOException {
                                   ^
  symbol:   class HttpEntity
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:84: error: cannot find symbol
                                   HttpEntity entity, Header... headers) throws IOException {
                                                      ^
  symbol:   class Header
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:62: error: cannot find symbol
                new StringEntity(jobParameter, ContentType.APPLICATION_JSON));
                    ^
  symbol:   class StringEntity
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:62: error: cannot find symbol
                new StringEntity(jobParameter, ContentType.APPLICATION_JSON));
                                               ^
  symbol:   variable ContentType
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:89: error: cannot find symbol
        for (Header header: headers) {
             ^
  symbol:   class Header
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:165: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                            ^
  symbol:   class StringEntity
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:165: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                                                 ^
  symbol:   variable ContentType
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:242: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                            ^
  symbol:   class StringEntity
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:242: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                                                 ^
  symbol:   variable ContentType
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:265: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                            ^
  symbol:   class StringEntity
  location: class SampleExtensionIntegTestCase
/home/ubuntu/prudhvi-groupId-js/sample-extension-plugin/src/test/java/org/opensearch/jobscheduler/sampleextension/SampleExtensionIntegTestCase.java:265: error: cannot find symbol
                Collections.emptyMap(), new StringEntity(entity, ContentType.APPLICATION_JSON));
                                                                 ^
  symbol:   variable ContentType
  location: class SampleExtensionIntegTestCase
15 errors

> Task :opensearch-job-scheduler-sample-extension:compileTestJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':opensearch-job-scheduler-sample-extension:compileTestJava'.
> Compilation failed; see the compiler error output for details.

@joshpalis
Copy link
Member

joshpalis commented Oct 13, 2022

@prudhvigodithi I will raise a PR later today to modify the org.apache.http imports. Once this change is merged, please rebase your fork with JS main and the failing tests should be resolved.

Update : Merged #254

@joshpalis joshpalis self-requested a review October 13, 2022 18:20
@saratvemulapalli
Copy link
Member

@prudhvigodithi could you rebase your changes with main, this should get CIs to pass.

@prudhvigodithi
Copy link
Collaborator Author

Hey @saratvemulapalli and @joshpalis and I just did 👍

@saratvemulapalli saratvemulapalli merged commit 197eb97 into opensearch-project:main Oct 13, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 13, 2022
Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
(cherry picked from commit 197eb97)
joshpalis pushed a commit that referenced this pull request Oct 13, 2022
Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
(cherry picked from commit 197eb97)
Signed-off-by: Joshua Palis <[email protected]>
joshpalis pushed a commit that referenced this pull request Oct 13, 2022
Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
(cherry picked from commit 197eb97)
Signed-off-by: Joshua Palis <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Co-authored-by: Prudhvi Godithi <[email protected]>
wuychn pushed a commit to ochprince/job-scheduler that referenced this pull request Mar 16, 2023
…h-project#255)

Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
(cherry picked from commit 197eb97)
Signed-off-by: Joshua Palis <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Co-authored-by: Prudhvi Godithi <[email protected]>
prudhvigodithi added a commit to prudhvigodithi/job-scheduler that referenced this pull request May 9, 2023
…h-project#255)

Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
(cherry picked from commit 197eb97)
Signed-off-by: Joshua Palis <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Co-authored-by: Prudhvi Godithi <[email protected]>
Signed-off-by: Prudhvi Godithi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants