-
Notifications
You must be signed in to change notification settings - Fork 19
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
io.micronaut.context.exceptions.NoSuchBeanException while running on Github Actions #785
Comments
Micronaut version 4.6.1 works fine. Version 4.7.1 does not |
Can you share a reproducer? The |
Copied to public repo https://github.com/jurna/demo-micronaut |
Strangely on my personal account github actions builds successfully. But on private organisation repo I have error mentioned above. Mabye some racing condition depending on how fast is the machine on which you are building? |
im also facing the same issue in github actions .Mine repo is in a private organization . |
I am also facing this issue, just tried again but on micronaut platform version
The current workaround is pinning the version to |
Update: I created a demo project to try and help find the cause of the issue above. The interesting thing is that the visibility of the repo does seem to be significant. The workflow build/test works when the repo is public but failed when I made it private. This seems to be the case when using versions later than Logs when repo was public: success Logs when the repo was made private: failure (Note the repo is public again to make viewing the logs possible). |
That's an interesting discovery. At this stage I have no idea what could cause this. In both cases ryuk is started. There must be some environmental difference between the 2, which would disable a bean, but it's kind of surprising since test resources doesn't have environment dependent beans... |
We have the same problem and cannot update to 4.7.x because of this. As this changed in 4.7 there should be a commit that causes this. Has the ryuk version been updated? |
I don't think it's related to ryuk. It is started in both cases, and the error seems unrelated since it's a bean missing exception. |
Can you add this to your
|
This looks promising! - I ran in public and private mode and both succeeded 🥳 . |
Great! I need to investigate another issue (builds hanging when test resources fail to load) then I'll release 2.7.1. Thanks for your patience! |
If the server factory fails to start the test resources service, then we'd wait indefinitely for the server port file to appear, which causes builds to hang. Closes #785
If the server factory fails to start the test resources service, then we'd wait indefinitely for the server port file to appear, which causes builds to hang. Closes #785
If the server factory fails to start the test resources service, then we'd wait indefinitely for the server port file to appear, which causes builds to hang. Closes #785
Please try to upgrade to Micronaut Gradle plugins 4.4.5, which will use latest test resources, and let me know if the issue is fixed for you, thanks! |
Thanks @melix, will do! I assumed we would also need the |
The plugin does the job, the version in the platform is only used by the Maven plugin . |
ok looks good on my side in the demo project 🙏 ( private repo with gradle plugins at |
Expected Behavior
Tests with test micronaut-test-resources should run on Github Actions
Actual Behaviour
While running github actions with test resources and mongodb repositories, github actions hangs. Logs contains some errors:
Steps To Reproduce
Create github actions job
Environment Information
No response
Example Application
No response
Version
4.7.1
The text was updated successfully, but these errors were encountered: