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] Snapshots are not being published for query-insights repo #72

Closed
gaiksaya opened this issue Aug 23, 2024 · 3 comments
Closed

[BUG] Snapshots are not being published for query-insights repo #72

gaiksaya opened this issue Aug 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gaiksaya
Copy link
Member

What is the bug?

See the workflow runs here: https://github.com/opensearch-project/query-insights/actions/workflows/maven-publish.yml
None of them where successful before due to missing credentials. The credentials were added recently however, the required config seems to be missing for publishing snapshots.

How can one reproduce the bug?

See https://github.com/opensearch-project/query-insights/actions/runs/10498341550/job/29083082462

What is the expected behavior?

Snapshot publication should be successful

What is your host/environment?

Operating system, version.

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

FAILURE: Build failed with an exception.

* What went wrong:
Task 'publishShadowPublicationToSnapshotsRepository' not found in root project 'query-insights'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> For more on name expansion, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./

BUILD FAILED in 28s
Error: Process completed with exit code 1.
@gaiksaya gaiksaya added bug Something isn't working untriaged labels Aug 23, 2024
@ansjcy
Copy link
Member

ansjcy commented Sep 4, 2024

Hi @gaiksaya ! Thanks for reporting the issue.
I do see query insights snapshots published in https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/query-insights/
May I know what is the main purpose of publishShadowPublicationToSnapshotsRepository and where should those targets come from?

@ansjcy ansjcy removed the untriaged label Sep 4, 2024
@gaiksaya
Copy link
Member Author

gaiksaya commented Sep 4, 2024

I believe it comes from nebula plugin. See this issue to add required config in build.gradle. It has testing steps as well. I believe we want publishPluginZipPublicationToSnapshotsRepository to run correctly. The artifacts here https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/query-insights/ were published before this plugin was removed from core right?

@ansjcy
Copy link
Member

ansjcy commented Sep 4, 2024

The latest job to publish the snapshot is passing now: https://github.com/opensearch-project/query-insights/actions/runs/10708891477/job/29692255569

@ansjcy ansjcy closed this as completed Sep 4, 2024
@ansjcy ansjcy self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants