-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
test: add test for networking setup in act #1375
Conversation
This test makes sure that the hostname inside of act is resolvable.
🦙 MegaLinter status: ✅ SUCCESS
See errors details in artifact MegaLinter reports on CI Job page |
@KnisterPeter this pull request has failed checks 🛠 |
When merging parsed container options without options being set in a job, the default docker options are returned and will override the expected defaults by act (e.g. network mode). This is a first attempt to mitigate this behavior and only merge settings if something was requested on a job.
@KnisterPeter this pull request has failed checks 🛠 |
Codecov Report
@@ Coverage Diff @@
## master #1375 +/- ##
==========================================
+ Coverage 57.50% 64.02% +6.51%
==========================================
Files 32 41 +9
Lines 4594 6405 +1811
==========================================
+ Hits 2642 4101 +1459
- Misses 1729 2009 +280
- Partials 223 295 +72
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@alex-savchuk Please have a look as well next to the maintainers 🙏 |
@KnisterPeter Hello. |
Looks good from my point of view. Main change, as i understand, is that we do not merge nothing if options are empty. With my solution we did. But i see that test does not catch the problem but only prints data for manual checking. Thank you for catching this problem and providing solution! |
Exactly. I'm still unsure if that is good enough, but it should restore basic functionality.
The test
No problem, I did not see this issue while I've reviewed your code. This happens all the time as our tests are not yet good enough. A fix is already included in this PR. |
This test makes sure that the hostname inside of act is resolvable.
This will prevent regressions in the network setup (see #1351, #1022)
Act need to be started with docker network mode
host
by default. This was changed recently, leading to networking changes. That do break the previous (and expected) behavior.