-
Notifications
You must be signed in to change notification settings - Fork 874
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
Fix spurious messages printed to the console. #5538
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thanks for investigating the jshell bug! (restarted the enterprise job since micronaut failed)
tests keep failing after 4 restarts, but that is caused by #5507 most likely |
I doubt that 5507 is involved, as that one only changes package.json in vscode ext that cannot participate in java micronaut tests (the ones that are failing) in any way. |
could be only a coincidence of course and it might be something entirely different but a few things indicate that it might be the PR above, since everything started after it was merged - restarting doesn't help. |
From the logs I see the tests run against
so I'll try to run tests on that exact commit locally. We'll see. There is some burried race condition with project infrastructure that causes micronaut and/or maven project tests to fail occasionally. If that does not help, I'll add some debugging / logging to this PR as an attempt to catch the issue. |
i diffed the log of the last green run on master and the first failing run on master and noticed something interesting:
also note that the test method is different which means that the exception occurs at a different time in the same test. edit: looks like the tests are ran in a different order? |
Marvellous ... when I run the test locally, it failed += same way on an empty gradle repository (with my usual repo content, download was not necessary). Then I run that from commandline (
I LOVE cloud solutions and repositories... |
... especially when they rely on SNAPSHOTs! 😄 |
we should consider to put things like this into the cache (I suppose it lands in the global |
Hm, I think it's actually good that the tests run from a pristine repository: it's hard to spot this kind of bug on a dev machine with all the artifacts and their whatever versions downloaded during development. |
its a question how well we pick the cache key. The build jobs hash all binaries-list files, which works really well so far: gradle cache config could look like this: the graalvm cache key could be the graalvm git tag (but I fear the whole jdk repo is too big to put into the cache) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all green - thanks a lot for fixing everything :)
That makes some sense. Certainly the reason we bypass the local I do think that having any test, or anything in the build, relying on a remote -SNAPSHOT is asking for trouble. And non-snapshot availability should be much better anyway?! |
@neilcsmith-net i was more thinking about things which aren't downloaded by the PR you linked is actually super important since it makes sure everything lands in |
During testing of NB17, I've seen some messages printed to the console that should not be there.
1/ Maven creates a fallback project, if the pom.xml cannot be read into the model. This is a fairly common, either because of malformed XML, inaccessible basic build plugin (i.e. empty repository) etc. Should be logged, but not at INFO level - that is likely a leftover after debugging maven actions.
2/ After a clean startup with Ergonomics, when Java SE feature is activated, a stacktrace prints to the console from unsuccessful JShell console deserialization:
The window is marked as
PERSISTENCE_NEVER
but the .settings file is there because of@TopComponent.Registration
. Other similar windows use a default constructor with limited initialization and features - this patch addds the same.