Skip to content

Linkage Monitor to read content of a BOM#1920

Merged
suztomo merged 4 commits intomasterfrom
linkage_monitor_info
Jan 22, 2021
Merged

Linkage Monitor to read content of a BOM#1920
suztomo merged 4 commits intomasterfrom
linkage_monitor_info

Conversation

@suztomo
Copy link
Copy Markdown
Contributor

@suztomo suztomo commented Jan 21, 2021

Fixes #1919

@google-cla google-cla bot added the cla: yes label Jan 21, 2021
artifactToVersion.put(model.getGroupId() + ":" + model.getArtifactId(), model.getVersion());
String versionlessCoordinates = model.getGroupId() + ":" + model.getArtifactId();
artifactToVersion.put(versionlessCoordinates, model.getVersion());
logger.info("Found local artifact: " + model);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

info message not needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated this to fine. I needed this information when I was debugging #1919.

String managedDependencyVersionlessCoordinates =
dependency.getGroupId() + ":" + dependency.getArtifactId();
artifactToVersion.put(managedDependencyVersionlessCoordinates, dependency.getVersion());
logger.info("Found local artifact in the BOM: " + dependency);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unnecessary

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated this to fine. This information helps to identify why Linkage Monitor did not detect a problem.

<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
<version>1.60.2-SNAPSHOT</version><!-- {x-version-update:gax:current} -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we shouldn't need to version update the test data

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed.

<artifactId>gax-bom</artifactId>
<version>1.60.2-SNAPSHOT</version><!-- {x-version-update:gax-bom:current} -->
<packaging>pom</packaging>
<name>GAX (Google Api eXtensions) for Java</name>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Most of this metadata isn't needed for the test

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. Removed the unnecessary metadata.

Copy link
Copy Markdown
Contributor Author

@suztomo suztomo left a comment

Choose a reason for hiding this comment

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

@elharo PTAL.

artifactToVersion.put(model.getGroupId() + ":" + model.getArtifactId(), model.getVersion());
String versionlessCoordinates = model.getGroupId() + ":" + model.getArtifactId();
artifactToVersion.put(versionlessCoordinates, model.getVersion());
logger.info("Found local artifact: " + model);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated this to fine. I needed this information when I was debugging #1919.

String managedDependencyVersionlessCoordinates =
dependency.getGroupId() + ":" + dependency.getArtifactId();
artifactToVersion.put(managedDependencyVersionlessCoordinates, dependency.getVersion());
logger.info("Found local artifact in the BOM: " + dependency);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated this to fine. This information helps to identify why Linkage Monitor did not detect a problem.

<artifactId>gax-bom</artifactId>
<version>1.60.2-SNAPSHOT</version><!-- {x-version-update:gax-bom:current} -->
<packaging>pom</packaging>
<name>GAX (Google Api eXtensions) for Java</name>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. Removed the unnecessary metadata.

<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
<version>1.60.2-SNAPSHOT</version><!-- {x-version-update:gax:current} -->
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linkage Monitor fails to detect linkage errors in gax-java

2 participants