-
-
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
Separate Container Workdir from host Workdir #635
Conversation
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
==========================================
- Coverage 49.62% 49.27% -0.36%
==========================================
Files 23 23
Lines 2380 2401 +21
==========================================
+ Hits 1181 1183 +2
- Misses 1072 1090 +18
- Partials 127 128 +1
Continue to review full report at Codecov.
|
@catthehacker ready to review. FYI you need to update your codecov action to include a base target, otherwise this is pretty much always going to reject through no fault of my own because the codebase outside of my PR is being tested as well. |
Don't mind |
Thanks, since you had codecov as a check I thought it might block the merge but since you're an admin I guess you can just force merge it anyways :) |
pkg/runner/step_context_test.go
Outdated
|
||
{"testdata", "uses-and-run-in-one-step", "push", "Invalid run/uses syntax for job:test step:Test", platforms, "linux/arm64"}, | ||
{"testdata", "uses-github-empty", "push", "Expected format {org}/{repo}[/path]@ref", platforms, "linux/arm64"}, | ||
{"testdata", "uses-github-noref", "push", "Expected format {org}/{repo}[/path]@ref", platforms, "linux/arm64"}, | ||
{"testdata", "uses-github-root", "push", "", platforms, "linux/arm64"}, | ||
{"testdata", "uses-github-path", "push", "", platforms, "linux/arm64"}, |
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.
Please no
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.
See answer above for run tests
eeb6ceb
to
de8598d
Compare
Reverted to draft to complete tests. |
@catthehacker unit tests added for new functions, this should be ready to merge. Tests pass on my machine but the docker setup barfs in Windows Github Actions runner, I'll try to make a separate PR to enable Windows PR tests to run. |
@JustinGrote it's not possible to run Docker on Windows GitHub runner currently. |
Whoops you are right, derp. Maybe I can figure out a nested docker in ACI but I won't spend too much time on it for now. |
@JustinGrote If we get newer Windows version on GHA (ref: actions/runner-images#3138), we might be able to have Docker in WSL2 and run tests. |
@JustinGrote - Adding |
Thanks, will rebase and sort it out. |
abd71b2
to
b5e02d6
Compare
@cplee Squashed and rebased on master. Conflicts were parallel fixes to tests. Should be ready for re-review |
Looks like this is causing MacOS tests to fail now :( |
|
b5e02d6
to
47e9bde
Compare
@cplee I'm working on the mac test now |
Found it, bad test, forgot that MacOS adds that |
d3c6801
to
de1e429
Compare
@cplee test fixed but now currently failing on new linter tests, rebase it when those tests get fixed and it should be OK. |
|
@catthehacker The imports one comes from master, I can fix the whitespace one however. |
@catthehacker @cplee just a reminder that the linting error is currently coming from master, not this PR, so I won't touch it assuming it will be fixed in master to avoid a conflict. |
@catthehacker @cplee ugh I just noticed that a maybeCopy was added in a recent commit I'll need to reconcile, will report back. |
it seems that lint issue is in your branch and in |
@catthehacker right, I didn't see that new changes had landed, working on that but once I rebase those in it should be good. |
e24a382
to
5713e5b
Compare
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! if we miss anything, I'll be sure to push fix 😸
Yay! Thank you @cplee and @catthehacker, I'll try to be available for any regressions that occur since this was a bit of a broad change, but this will lay the groundwork for some additional things as well. |
Since nektos#635 `envs.txt` is not copying properly when running `act` in WSL2 Moving it to fixed location resolves that.
Since nektos#635 `envs.txt` is not copying properly when running `act` in WSL2 Moving it to fixed location resolves that.
Since nektos#635 `envs.txt` is not copying properly when running `act` in WSL2 Moving it to fixed location resolves that.
Since nektos#635 `envs.txt` is not copying properly when running `act` in WSL2 Moving it to fixed location resolves that.
This PR started as a WSL2 fix but the pathing issue was so pervasive it expanded in scope a bit to meet the requirement.
A summary of changes:
Tests:
Resolves #587