-
Notifications
You must be signed in to change notification settings - Fork 702
go.mod: experimental integration of gomodjail (library sandbox) #4012
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# artifacts | ||
/nerdctl | ||
_output | ||
*.gomodjail | ||
|
||
# golangci-lint | ||
/build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# artifacts | ||
/nerdctl | ||
_output | ||
*.gomodjail | ||
|
||
# golangci-lint | ||
/build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,8 @@ CMD ["echo", "nerdctl-test-builder-prune"]`, testutil.CommonImage) | |
{ | ||
Description: "Debug", | ||
// `nerdctl builder debug` is currently incompatible with `docker buildx debug`. | ||
Require: require.All(require.Not(nerdtest.Docker)), | ||
// FIXME: fails with gomodjail: "timed out to access cache storage. other debug session is running?" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not failing because of gomodjail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, but probably gomodjail is increasing the flakiness of that issue There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Patch from buildg got merged - which seems to address the issue. Suggestion is to remove |
||
Require: require.All(require.Not(nerdtest.Docker), require.Not(nerdtest.Gomodjail)), | ||
NoParallel: true, | ||
Command: func(data test.Data, helpers test.Helpers) test.TestableCommand { | ||
dockerfile := fmt.Sprintf(`FROM %s | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ import ( | |
"gotest.tools/v3/assert" | ||
|
||
"github.com/containerd/nerdctl/mod/tigron/expect" | ||
"github.com/containerd/nerdctl/mod/tigron/require" | ||
"github.com/containerd/nerdctl/mod/tigron/test" | ||
|
||
"github.com/containerd/nerdctl/v2/pkg/testutil" | ||
|
@@ -129,6 +130,8 @@ func TestRestartWithTime(t *testing.T) { | |
func TestRestartWithSignal(t *testing.T) { | ||
testCase := nerdtest.Setup() | ||
|
||
testCase.Require = require.Not(nerdtest.Gomodjail) // FIXME | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there details on this, and other similar disabled tests? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test now seems to pass on my laptop (aarch64). Probably it was failing due to a flakiness or something specific to CI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, felt like leftover. |
||
|
||
testCase.Cleanup = func(data test.Data, helpers test.Helpers) { | ||
helpers.Anyhow("rm", "-f", data.Identifier()) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,8 @@ type Helpers interface { | |
// a Setup or Cleanup routine, and as the basis of any type of helper. | ||
// For more powerful use-cases outside of test cases, see below CustomizableCommand. | ||
type TestableCommand interface { | ||
// Binary returns what binary to execute. | ||
Binary() string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should have this, at this point. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plus |
||
// WithBinary specifies what binary to execute. | ||
WithBinary(binary string) | ||
// WithArgs specifies the args to pass to the binary. Note that WithArgs can be used multiple | ||
|
Uh oh!
There was an error while loading. Please reload this page.