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

[BUG] opensearch.build plugin cannot be applied after upgrading to 2.0.0 #2987

Closed
cliu123 opened this issue Apr 19, 2022 · 16 comments
Closed
Labels
bug Something isn't working untriaged

Comments

@cliu123
Copy link
Member

cliu123 commented Apr 19, 2022

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
Upgrading BWC test to 2.0.0(Changes)

Expected behavior
BWC test runs

Actual behavior
Fails at applying opensearch.build plugin
Failing Github Action: https:/cliu123/security/runs/6085915040?check_suite_focus=true
Error:

* What went wrong:
A problem occurred evaluating root project 'bwc-test'.
> Failed to apply plugin 'nebula.info-basic'.
   > Cannot obtain value from provider of system property 'user.name' at configuration time.
     Use a provider returned by 'forUseAtConfigurationTime()' instead.

Plugins
Security plugin

@cliu123 cliu123 added bug Something isn't working untriaged labels Apr 19, 2022
@dblock
Copy link
Member

dblock commented Apr 19, 2022

Cannot obtain value from provider of system property 'user.name' at configuration time.

@cliu123 missing a git configuration somewhere?
@saratvemulapalli have you seen this before?

@saratvemulapalli
Copy link
Member

saratvemulapalli commented Apr 19, 2022

@saratvemulapalli have you seen this before?

Haven't really seen this before.
Initial looks seems like some where user.name System property is being accessed.

@cliu123 where is user.name used ?

@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

missing a git configuration somewhere?

That was my initial suspicion. But user.name is set in git config. And if without the git config, DCO would fail.

@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

where is user.name used ?

@saratvemulapalli Based on the error, it looks like being used in nebula.info-basic plugin that is a part/dependency of opensearch.build plugin?

@cliu123 cliu123 changed the title [BUG] opensearch.build plugin is not working [BUG] opensearch.build plugin cannot be applied after upgrading to 2.0.0 Apr 19, 2022
@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

This is the only place where nebula.info-basic is used.

@VachaShah
Copy link
Collaborator

There was a version upgrade for the nebula gradle info plugin f68c8f4. Checking if this is related

@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

@VachaShah That looks a suspect. But how can I fix this? The Gradle doc doesn't mention any fix that can be done on our side.

@VachaShah
Copy link
Collaborator

VachaShah commented Apr 19, 2022

I tested without the nebula info plugin upgrade. To do so:

  1. Checked out the OpenSearch 2.0 branch.
  2. Reverted the concerned commit.
  3. ./gradlew assemble and ./gradlew publishToMavenLocal to generate 2.0.0-SNAPSHOT artifact on my maven local.
  4. Updated here and here to 2.0.0-SNAPSHOT.
  5. Running the bwc test for security - which does not give any errors.

@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

@VachaShah Cool!.
2.0.0-SNAPSHOT is older than 2.0.0-rc1-SNAPSHOT, isn't it? But that proves that the f68c8f4 is the cause of this error. Should we revert the commit from 2.0.0-rc1?

@reta
Copy link
Collaborator

reta commented Apr 19, 2022

@VachaShah I do remember that update of Nebula (when I tried that while migrating to Gradke 7.3) was problematic, it also didn't work well

@VachaShah
Copy link
Collaborator

@VachaShah Cool!. 2.0.0-SNAPSHOT is older than 2.0.0-rc1-SNAPSHOT, isn't it? But that proves that the f68c8f4 is the cause of this error. Should we revert the commit from 2.0.0-rc1?

I am using the latest changes from 2.0 to generate the 2.0.0-SNAPSHOT, so I tested against my maven local. I am going to revert this nebula info plugin upgrade on 2.0 and 2.x. And for OpenSearch main, open an issue with the error coming from nebula plugiin

@cliu123
Copy link
Member Author

cliu123 commented Apr 19, 2022

@VachaShah Thanks!

@VachaShah
Copy link
Collaborator

@VachaShah I do remember that update of Nebula (when I tried that while migrating to Gradke 7.3) was problematic, it also didn't work well

Oh, @reta do you think we should not use this upgrade at all for nebula plugin (even in main)?

@reta
Copy link
Collaborator

reta commented Apr 19, 2022

Oh, @reta do you think we should not use this upgrade at all for nebula plugin (even in main)?

@VachaShah I think it will be safer to revert it as well, thank you

@saratvemulapalli
Copy link
Member

Thanks @VachaShah for the fixes.
@cliu123 feel free to reopen this if you are seeing problems. Changes have been merged into 2.0.

@dbwiddis
Copy link
Member

dbwiddis commented Jun 30, 2022

See comments on #3002. The root cause was a bug in Gradle 6.x which was fixed in Gradle 7; the newest version of the plugin above removed a (now deprecated) graceful fallback. TLDR: this plugin version can be upgraded as long as Gradle 7+ is used for the build. Why was the GHA cited above building on 6.9?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

7 participants