Skip to content

Stable label order for PrintMavenAsDot #5893

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

Merged
merged 7 commits into from
Aug 11, 2025

Conversation

timtebeek
Copy link
Member

We were seeing some flaky tests lately, possibly following:

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Aug 11, 2025
@timtebeek timtebeek added the enhancement New feature or request label Aug 11, 2025
@timtebeek timtebeek self-assigned this Aug 11, 2025
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Aug 11, 2025
@timtebeek timtebeek marked this pull request as ready for review August 11, 2025 10:21
for (List<ResolvedDependency> deps : mrr.getDependencies().values()) {
for (ResolvedDependency dep : deps) {
// Build up index of all dependencies, so we can reference them by index in the DOT output
for (Scope scope : Scope.values()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to limit it to Compile, Runtime, Provided and Test like the loop lower down that is calling dotEdges(..) or would that not change things?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes sure, makes sense. Also rendered the big disabled test SVG:
sb dot

@timtebeek timtebeek merged commit a7cde54 into main Aug 11, 2025
1 of 2 checks passed
@timtebeek timtebeek deleted the stable-label-order-for-PrintMavenAsDot branch August 11, 2025 14:34
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Aug 11, 2025
MBoegers pushed a commit that referenced this pull request Aug 12, 2025
* Stable label order for `PrintMavenAsDot`

* Restore junit-bom

* Update PrintMavenAsDotTest.java

* Minimize indentation

* Use the same bounds for labels as for edges
timtebeek added a commit that referenced this pull request Aug 12, 2025
…5897)

* add reproducing tests

* correct expectation and document that the DependencyInsight recipes match against resolved versions

* Fix performance problem with RemoveUnusedProperties (#5895)

* Fix performance problem with RemoveUnusedProperties

- #5875

* Make the test values more descriptive

* Stable label order for `PrintMavenAsDot` (#5893)

* Stable label order for `PrintMavenAsDot`

* Restore junit-bom

* Update PrintMavenAsDotTest.java

* Minimize indentation

* Use the same bounds for labels as for edges

* Match dot output in CI (#5898)

* apply best practices

---------

Co-authored-by: Tim te Beek <tim@moderne.io>
dcsekar pushed a commit to dcsekar/rewrite that referenced this pull request Aug 18, 2025
* Stable label order for `PrintMavenAsDot`

* Restore junit-bom

* Update PrintMavenAsDotTest.java

* Minimize indentation

* Use the same bounds for labels as for edges
dcsekar pushed a commit to dcsekar/rewrite that referenced this pull request Aug 18, 2025
…penrewrite#5897)

* add reproducing tests

* correct expectation and document that the DependencyInsight recipes match against resolved versions

* Fix performance problem with RemoveUnusedProperties (openrewrite#5895)

* Fix performance problem with RemoveUnusedProperties

- openrewrite#5875

* Make the test values more descriptive

* Stable label order for `PrintMavenAsDot` (openrewrite#5893)

* Stable label order for `PrintMavenAsDot`

* Restore junit-bom

* Update PrintMavenAsDotTest.java

* Minimize indentation

* Use the same bounds for labels as for edges

* Match dot output in CI (openrewrite#5898)

* apply best practices

---------

Co-authored-by: Tim te Beek <tim@moderne.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants