-
Notifications
You must be signed in to change notification settings - Fork 219
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
Improve the error message when running nested inside a non-Toolbx container #1295
base: main
Are you sure you want to change the base?
Conversation
9598f72
to
34e4d3c
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 32s |
34e4d3c
to
29f6166
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 44s |
29f6166
to
7ec40bb
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 21s |
7ec40bb
to
a00bedc
Compare
Build succeeded. ✔️ unit-test SUCCESS in 9m 16s |
a00bedc
to
43a745f
Compare
Build failed. ❌ unit-test FAILURE in 9m 18s |
43a745f
to
36975c2
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 46s |
36975c2
to
fcb73d2
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 29s |
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.
Is this a continuation of #1191 ? It would have been better to continue using the old pull request to keep all the discussion in one place.
Anyway, the tests are failing, and the branch has conflicts. Did you check the test logs to understand why they are failing? The tests really need to pass.
I paused this PR and moved to #1301 to first fix the tests. I expect this PR to be fixed once #1301 is fixed. |
Did the tests get fixed for this pull request? Last time they were failing and they haven't been run lately. It also looks like this branch conflicts with |
recheck |
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
e1f36a9
to
0bf87c5
Compare
Build failed. ❌ unit-test RETRY_LIMIT in 7m 09s |
118ce54
to
47b556a
Compare
Build failed. ❌ unit-test RETRY_LIMIT in 6m 55s |
47b556a
to
0646411
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 05s |
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.
You seem to have left the check commented out.
Before this goes in having a test would be nice. Some along the lines of running podman run -it <some-available-image-in-the-test-suit> toolbox
? Do we need the test to be done per command? Probably not.
src/cmd/root.go
Outdated
/*if utils.IsInsideContainer() && !utils.IsInsideToolboxContainer() { | ||
return createErrorNonToolboxContainer() | ||
}*/ | ||
|
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.
This probably is not meant to be commented out.
/*if utils.IsInsideContainer() && !utils.IsInsideToolboxContainer() { | |
return createErrorNonToolboxContainer() | |
}*/ | |
if utils.IsInsideContainer() && !utils.IsInsideToolboxContainer() { | |
return createErrorNonToolboxContainer() | |
} |
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.
It is not, however, I was testing this because if I remove the comment, all the tests fail on the CI.
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.
The problem in the CI is caused by the fact that when you run toolbox init-container
inside the container, the /run/.toolboxenv
file does not exist, because it is created by the command. So, it is a classic chicken-and-egg problem.
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.
Any idea on how to face this problem @HarryMichal ?
…tainer Fixes issue containers#1183 Signed-off-by: Nieves Montero <[email protected]>
0646411
to
b287838
Compare
Build failed. ✔️ unit-test SUCCESS in 9m 13s |
Build failed. ✔️ unit-test SUCCESS in 8m 38s |
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.
Ping. What's the status of this pull request?
I put it aside while working on the other PRs. I am stuck because of the problem mentioned here #1295 (comment) by @HarryMichal |
Fixes issue #1183
Signed-off-by: Nieves Montero [email protected]