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

More Variant Details for dependencyInsights #19763

Merged
merged 53 commits into from
Mar 9, 2022

Conversation

octylFractal
Copy link
Member

@octylFractal octylFractal commented Jan 30, 2022

This PR adds additional formatting and new table output for successfully resolved dependencies in dependencyInsights which allows for easier exploration of possible variants to match.

Sample output:
sample output

@octylFractal octylFractal added this to the 7.5 RC1 milestone Jan 30, 2022
@octylFractal octylFractal self-assigned this Jan 30, 2022
Copy link
Member

@tresat tresat left a comment

Choose a reason for hiding this comment

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

Gave it a read through and left a bunch of suggestions. I tried to be clear about things I thought should definitely be changed vs. where I was just musing about potential cleanups.

Copy link
Member

@big-guy big-guy left a comment

Choose a reason for hiding this comment

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

Please kick off the performance tests for this so we can see if we have a problem there.

If we need to, we could split this into the changes you have here and a follow on that adds the "Compatibility" column to the output.

When you go to write some tests to exercise the new output (some of these may already exist):

  • Have a test that shows the output for an external dependency
  • Have a test that shows the output for a project dependency
  • Have a test that shows the output for a dependency with a consumer defined variant (look around for "withVariant" and "ComponentMetadataRules" in dependency-management).

I would not use a Java project for all of these tests since there will be many, many variants.

@octylFractal
Copy link
Member Author

Updated with current output.

@octylFractal octylFractal force-pushed the ot/feature/dependency-insight-variants branch from 5c524b1 to 541fad0 Compare February 21, 2022 22:38
@gradle gradle deleted a comment from octylFractal Feb 22, 2022
 - `$ ./gradlew :docs:docsTest --tests "*.snippet-dependency-management-inspecting-dependencies*" --no-configuration-cache`
@gradle gradle deleted a comment from octylFractal Mar 3, 2022
@gradle gradle deleted a comment from octylFractal Mar 3, 2022
@octylFractal octylFractal force-pushed the ot/feature/dependency-insight-variants branch from a9f09e0 to ee6c8bb Compare March 3, 2022 21:11
@gradle gradle deleted a comment from DPUkyle Mar 3, 2022
@DPUkyle DPUkyle force-pushed the ot/feature/dependency-insight-variants branch from bfe458e to 5c1a337 Compare March 3, 2022 22:35
@gradle gradle deleted a comment from octylFractal Mar 3, 2022
@gradle gradle deleted a comment from DPUkyle Mar 7, 2022
@octylFractal octylFractal marked this pull request as ready for review March 7, 2022 21:19
@gradle gradle deleted a comment from DPUkyle Mar 7, 2022
@eskatos
Copy link
Member

eskatos commented Mar 8, 2022

@octylFractal good changes in DependencyManagementResultsAsInputsIntegrationTest 👍

* Introduce flag to request all variants

* Document when all variants flag works

* Cleanup test to remove unneeded projects
@octylFractal
Copy link
Member Author

@bot-gradle test this

@gradle gradle deleted a comment from octylFractal Mar 9, 2022
@bot-gradle
Copy link
Collaborator

OK, I've already triggered the following builds for you:

Copy link
Contributor

@DPUkyle DPUkyle left a comment

Choose a reason for hiding this comment

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

LGTM pending an answer to my two questions about unchecked casts.

@octylFractal
Copy link
Member Author

@bot-gradle test and merge

@gradle gradle deleted a comment from octylFractal Mar 9, 2022
@bot-gradle
Copy link
Collaborator

Your PR is queued. See the queue page for details.

@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

@bot-gradle bot-gradle merged commit f094e1f into master Mar 9, 2022
@octylFractal octylFractal deleted the ot/feature/dependency-insight-variants branch March 9, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants