GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: GAPIC library BOM in monorepo_script bootstrap by suztomo · Pull Request #7991 · googleapis/google-cloud-java Conversation
|
|
|
||
| Review the artifact name "google-cloud-gapic-bom" in the bom directory and | ||
| configure the version managed by Release Please. Ensure the BOM is part of the | ||
| entire release pipeline. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@ddixit14 This message is for you in near future.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sure, will keep this in mind.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| detail of the Libraries BOM. | ||
| </description> | ||
| <dependencyManagement> | ||
| BOM_ARTIFACT_LIST |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You probably need <dependencies> before the placeholder, and a closing one after.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Indeed, the check failed with Error: Malformed POM /home/runner/work/google-cloud-java/google-cloud-java/monorepo/google-cloud-java/bom/pom.xml: Unrecognised tag: 'dependency' (position: START_TAG seen ...<dependencyManagement>\n <dependency>... @16:17) @ /home/runner/work/google-cloud-java/google-cloud-java/monorepo/google-cloud-java/bom/pom.xml, line 16, column 17.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| artifactId_line=$(grep --max-count=1 'artifactId' "${pom_file}") | ||
| version_line=$(grep --max-count=1 'x-version-update' "${pom_file}") | ||
|
|
||
| if [[ $version_line == *"<version>0"* ]]; then |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Another method is to read the .repo-metadata.json for each library, which specifies whether it's preview or not. It might be more reliable. Also, why not do this in the main loop above where we iterate over repos.txt?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice idea.
why not do this in the main loop above where we iterate over repos.txt?
I feel it's better to split the logic of BOM generation as separate one. No technical reason.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| mkdir bom | ||
| awk -v "dependencyManagements=$bom_lines" '{gsub(/BOM_ARTIFACT_LIST/,dependencyManagements)}1' \ | ||
| ../../bom.pom.xml > bom/pom.xml |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The directly should match the artifact name if possible: google-cloud-gapic-bom.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
It turned out that the bom module was not declared in the parent module (java-accesscontextmanager). Fix: googleapis/java-accesscontextmanager#359 The error from CoverageAggregator/pom.xml is: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The bom module was missing in the root pom. It caused build failure in another issue in google-cloud-java repository: googleapis/google-cloud-java#7991 (comment) Other repositories declare the bom module correctly. Example: https://github.com/googleapis/java-accessapproval/blob/main/pom.xml#L116
|
All checks are green. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The bom module was missing in the root pom. It caused build failure in another issue in google-cloud-java repository: #7991 (comment) Other repositories declare the bom module correctly. Example: https://github.com/googleapis/java-accessapproval/blob/main/pom.xml#L116
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.