-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Rootless error concerning /var/run/docker.sock
#2181
Conversation
This reverts commit b2a8394.
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2181 +/- ##
==========================================
+ Coverage 61.56% 61.76% +0.20%
==========================================
Files 53 54 +1
Lines 9002 9078 +76
==========================================
+ Hits 5542 5607 +65
- Misses 3020 3029 +9
- Partials 440 442 +2 ☔ View full report in Codecov by Sentry. |
@AndesKrrrrrrrrrrr this pull request has failed checks 🛠 |
@ChristopherHX, do you mind taking a look? Tests are passing, but coverage diff is failing; the greater part of the modified files are untested and are CLI. Does test coverage apply here? |
My own PR's failing in that metric and requiring tests of old code. I'm not the owner, converage wasn't configured by me (this check is required to pass, if the owner doesn't bypass the rules). Recently coverage metrics were broken, because it compared the diff with a over 400days old version of act, this allowed 0% diff coverage to pass. |
So yes it worked. |
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.
I guess your change is okish
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.
found breaking change I don't like to see
@AndesKrrrrrrrrrrr this pull request has failed checks 🛠 |
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.
Thank you for adding tests, but one of them still fails.
I revoke my veto now
I think we should be there... finally ❤️
One thing, though, still bugs me about this comment above. Now that I've refactored
Footnotes |
|
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.
Looks good to me, the comments about tests don't have to be addressed as they would still work.
@AndesKrrrrrrrrrrr this pull request has failed checks 🛠 |
Looking at the logs, it seems like unrelated tests are failing. Passing -> swap test assertions -> other tests fail 🤔 |
* Use same socket defaulting strategy every time * Always default to DOCKER_HOST * Add more debug logs * Commenting, and massively simplified socket logic * Rever to upstream run_context.go * Fix EACCESS error regarding /opt/hostedtoolcache * Revert "Fix EACCESS error regarding /opt/hostedtoolcache" This reverts commit b2a8394. * Revert CLI debug logs * Move socket and host handling to own function, and simplify logic * Move to container package * Make return be a struct * Write tests to verify functionality * Fix DOCKER_HOST being set to the string "DOCKER_HOST" * Always use struct * Use socketLocation, for DOCKER_HOST and more defaults * Fixup arguments to GetSocketAndHost in test and root.go * Un-struct hasDockerHost * Fixup logic and set hasDockerHost * Minor scoping & variable name change * Move functionality to a new file * Rename corresponding test * Reviewfix * Fix DOCKER_HOST expected * Fix test assertions and add comments * Swap comparison actual, expected * Fixed no-DOCKER_HOST env test * Fixed default socket test * Add test to verify review comments * Add more test for greater test coverage * Consistent comment references * Fix bug found while writing tests * Passing tests * NoMountNoHost testfix * Rename test appropriately * NoMount testfix * Fixed OnlySocket * Swap expected <-> actual in tests --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fixes #724
Fixes #2016