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

feat(datasource/maven): Add Artifact Registry support via Google ADC #24657

Merged
merged 20 commits into from
Oct 15, 2023

Conversation

kvanzuijlen
Copy link
Contributor

@kvanzuijlen kvanzuijlen commented Sep 25, 2023

Changes

Adds Google Application Default Credentials (ADC)/Workload Identity support for Maven repositories

Context

This change makes configuring Artifact Registry support easier and makes use of best practices.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

@viceice My proposal for writing unit tests for this change is to add tests to the downloadMavenXml block and add a new block to specifically test downloadArtifactRegistryProtocol. Do you agree with this proposal?

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@kvanzuijlen kvanzuijlen changed the title Added Maven Artifact Registry support via Google ADC feat: Added Maven Artifact Registry support via Google ADC Sep 26, 2023
@rarkins
Copy link
Collaborator

rarkins commented Sep 27, 2023

@kvanzuijlen is this ready for review?

@kvanzuijlen
Copy link
Contributor Author

@rarkins the code itself is, but I still need to write some tests. I asked @viceice for some input on how to test this, so hoping to get his opinion on it.

@rarkins
Copy link
Collaborator

rarkins commented Sep 27, 2023

Somehow it passes coverage. @zharinov is this possibly a bug in our sharded tests?

@kvanzuijlen
Copy link
Contributor Author

I think the coverage check was skipped?

@kvanzuijlen kvanzuijlen marked this pull request as ready for review September 27, 2023 12:14
@kvanzuijlen kvanzuijlen marked this pull request as draft September 27, 2023 12:19
@rarkins
Copy link
Collaborator

rarkins commented Sep 27, 2023

Yes you're right - due to it being a draft PR

@kvanzuijlen kvanzuijlen marked this pull request as ready for review October 1, 2023 11:17
@rarkins rarkins changed the title feat: Added Maven Artifact Registry support via Google ADC feat(datasource/maven): Add Artifact Registry support via Google ADC Oct 1, 2023
docs/usage/java.md Outdated Show resolved Hide resolved
lib/modules/datasource/maven/util.ts Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
docs/usage/docker.md Show resolved Hide resolved
docs/usage/java.md Outdated Show resolved Hide resolved
docs/usage/docker.md Show resolved Hide resolved
@kvanzuijlen
Copy link
Contributor Author

Thank you so much for taking the time to review my PR @Churro

@rarkins rarkins requested a review from Churro October 3, 2023 05:52
Copy link
Collaborator

@Churro Churro left a comment

Choose a reason for hiding this comment

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

Please make sure getGoogleAuthToken() also has its own test in util.spec.ts.

lib/modules/datasource/util.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/utils.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/util.ts Outdated Show resolved Hide resolved
kvanzuijlen and others added 2 commits October 7, 2023 09:45
Co-authored-by: Johannes Feichtner <343448+Churro@users.noreply.github.com>
@rarkins rarkins added this pull request to the merge queue Oct 15, 2023
Merged via the queue into renovatebot:main with commit 080d642 Oct 15, 2023
36 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants