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

Update graphviz-java to 0.18.1 #151

Merged
merged 10 commits into from
Jun 4, 2022
Merged

Update graphviz-java to 0.18.1 #151

merged 10 commits into from
Jun 4, 2022

Conversation

SimonMarquis
Copy link
Contributor

Closes #145 and should fix #144 as well.

Closes #145 and should fix #144 as well.
@vanniktech
Copy link
Owner

Probably just like in the other PRs, tests are failing

@SimonMarquis
Copy link
Contributor Author

I'm on it. The default graphviz .dot output has changed.
There might be other errors though.

- `edge ["dir"="forward"]` and `edge ["dir"="none"]` seems to be added by default
- attributes are sorted differently (not strictly alphabetical...)
@SimonMarquis
Copy link
Contributor Author

@vanniktech I think I'll have to way for #150.
DependencyGraphGeneratorPluginTest.integrationTestGradle50 fails on CI and locally.

@vanniktech
Copy link
Owner

@SimonMarquis can you please rebase / merge with master?

Copy link
Owner

@vanniktech vanniktech left a comment

Choose a reason for hiding this comment

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

Dope thanks!

@SimonMarquis
Copy link
Contributor Author

It seems like it is stuck on a test. On my local machine the jvm crashes quite fast with an OOM.

@vanniktech
Copy link
Owner

Interesting, I have:

com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorPluginTest > integrationTestGradle742 FAILED
    org.junit.ComparisonFailure: expected:<digraph "G" {
    [node ["fontname"="Times New Roman"]
    "junit9628386895718580820" ["shape"="rectangle","label"="junit9628386895718580820"]
    "orgjetbrainskotlinkotlinstdlib" ["shape"="rectangle","label"="kotlin-stdlib"]
    "orgjetbrainsannotations" ["shape"="rectangle","label"="jetbrains-annotations"]
    "ioreactivexrxjava2rxjava" ["shape"="rectangle","label"="rxjava"]
    "orgreactivestreamsreactivestreams" ["shape"="rectangle","label"="reactive-streams"]
    {]
    graph ["rank"="same...> but was:<digraph "G" {
    [edge ["dir"="forward"]
    node ["fontname"="Times New Roman"]
    "junit9628386895718580820" ["label"="junit9628386895718580820","shape"="rectangle"]
    "orgjetbrainskotlinkotlinstdlib" ["label"="kotlin-stdlib","shape"="rectangle"]
    "orgjetbrainsannotations" ["label"="jetbrains-annotations","shape"="rectangle"]
    "ioreactivexrxjava2rxjava" ["label"="rxjava","shape"="rectangle"]
    "orgreactivestreamsreactivestreams" ["label"="reactive-streams","shape"="rectangle"]
    {
    edge ["dir"="none"]]
    graph ["rank"="same...>
        at org.junit.Assert.assertEquals(Assert.java:117)
        at org.junit.Assert.assertEquals(Assert.java:146)
        at com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorPluginTest.integrationTest(DependencyGraphGeneratorPluginTest.kt:96)
        at com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorPluginTest.integrationTestGradle742(DependencyGraphGeneratorPluginTest.kt:55)

@vanniktech
Copy link
Owner

Can you try including: https://github.com/vanniktech/Emoji/blob/2691a11028bb854f2a2816ce6a50879f686c3578/gradle.properties#L28

@SimonMarquis
Copy link
Contributor Author

SimonMarquis commented Jun 4, 2022

I also get those kind of errors on the integrationTestGradle742 test 🤯...

> Task :generateDependencyGraph FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateDependencyGraph'.
> Problem executing javascript

@vanniktech
Copy link
Owner

Can you run with --stacktrace?

@SimonMarquis
Copy link
Contributor Author

I now have the same test failures, I'll fix them right now.

@vanniktech
Copy link
Owner

At least now it fails with: Expiring Daemon because JVM heap space is exhausted, can you try giving it some more RAM?

@SimonMarquis
Copy link
Contributor Author

I'm not sure the jvm options specified in gradle.properties is applied to the test scenario. I tried to add them manually on the GradleRunner arguments.

@vanniktech
Copy link
Owner

Can you try on the GradleRunner .withDebug(true). IIRC that worked in some scenario on some project somewhere some time ago

@SimonMarquis
Copy link
Contributor Author

SimonMarquis commented Jun 4, 2022

There it is : https://github.com/vanniktech/gradle-dependency-graph-generator-plugin/runs/6740007186?check_suite_focus=true#step:5:50

    > Task :generateDependencyGraph FAILED
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':generateDependencyGraph'.
    > Problem executing javascript

There are more interesting logs with the --stacktrace.

@SimonMarquis
Copy link
Contributor Author

Removing the custom font fixed the build on my machine 🤯

@vanniktech
Copy link
Owner

Removing the custom font fixed the build on my machine 🤯

Meaning the OOM that we get on CI as well?

@SimonMarquis
Copy link
Contributor Author

No, only the > Problem executing javascript.
The OOM seems to be fixed by this: 9235955

@SimonMarquis
Copy link
Contributor Author

🎉

So I guess forcing the Times New Roman font is not that important right?
Also, should I revert e4e72f6 or keep it?

@vanniktech
Copy link
Owner

You're a legend!

I don't remember why I forced the font, but that basically implies it's not important.

@SimonMarquis
Copy link
Contributor Author

Thank you for the other necessary updates 🙏
The default value seems to be Times-Roman: https://graphviz.org/docs/attrs/fontname/
I would try to do a diff to see what has changed.

@SimonMarquis SimonMarquis deleted the path/graphviz branch June 5, 2022 10:52
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.

Execution failed "TypeError: Module.print is not a function" for a mono repo
2 participants