-
Notifications
You must be signed in to change notification settings - Fork 617
enable experimental commands by default, and remove BUILDX_EXPERIMENTAL env-var
#3241
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
Open
thaJeztah
wants to merge
7
commits into
docker:master
Choose a base branch
from
thaJeztah:rm_experimental_warning
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+9
−83
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
164bb43
remove "experimental" hint from help / usage output
thaJeztah baf1b1e
commands: enable experimental commands by default
thaJeztah 74da0d6
remove uses of BUILDX_EXPERIMENTAL for generating docs
thaJeztah 59525fc
util/confutil: remove IsExperimental() utility
thaJeztah 9691c01
tests: remove redundant cleanup
thaJeztah 5f704ad
remove "experimental" integration tests
thaJeztah 484ab1b
docs: remove use of BUILDX_EXPERIMENTAL as example
thaJeztah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,40 +62,19 @@ jobs: | |
| - remote | ||
| pkg: | ||
| - ./tests | ||
| mode: | ||
| - "" | ||
| - experimental | ||
| include: | ||
| - worker: docker | ||
| pkg: ./tests | ||
| - worker: docker+containerd # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| - worker: docker | ||
| pkg: ./tests | ||
| mode: experimental | ||
| - worker: docker+containerd # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| mode: experimental | ||
| - worker: "[email protected]" | ||
| pkg: ./tests | ||
| - worker: "[email protected]" # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| - worker: "[email protected]" | ||
| pkg: ./tests | ||
| mode: experimental | ||
| - worker: "[email protected]" # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| mode: experimental | ||
| - worker: "[email protected]" | ||
| pkg: ./tests | ||
| - worker: "[email protected]" # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| - worker: "[email protected]" | ||
| pkg: ./tests | ||
| mode: experimental | ||
| - worker: "[email protected]" # same as docker, but with containerd snapshotter | ||
| pkg: ./tests | ||
| mode: experimental | ||
| steps: | ||
| - | ||
| name: Prepare | ||
|
|
@@ -116,9 +95,6 @@ jobs: | |
| if [[ "${{ matrix.worker }}" == "docker"* ]]; then | ||
| echo "TEST_DOCKERD=1" >> $GITHUB_ENV | ||
| fi | ||
| if [ "${{ matrix.mode }}" = "experimental" ]; then | ||
| echo "TEST_BUILDX_EXPERIMENTAL=1" >> $GITHUB_ENV | ||
| fi | ||
| - | ||
| name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,6 @@ import ( | |
| "os/exec" | ||
| "path/filepath" | ||
| "reflect" | ||
| "strconv" | ||
| "strings" | ||
| "sync" | ||
| "testing" | ||
|
|
@@ -64,9 +63,6 @@ func buildxCmd(sb integration.Sandbox, opts ...cmdOpt) *exec.Cmd { | |
| if context := sb.DockerAddress(); context != "" { | ||
| cmd.Env = append(cmd.Env, "DOCKER_CONTEXT="+context) | ||
| } | ||
| if isExperimental() { | ||
| cmd.Env = append(cmd.Env, "BUILDX_EXPERIMENTAL=1") | ||
| } | ||
| if v := os.Getenv("GO_TEST_COVERPROFILE"); v != "" { | ||
| coverDir := filepath.Join(filepath.Dir(v), "helpers") | ||
| cmd.Env = append(cmd.Env, "GOCOVERDIR="+coverDir) | ||
|
|
@@ -128,14 +124,6 @@ func driverName(sbName string) (string, bool, bool) { | |
| return name, hasVersion, hasFeature | ||
| } | ||
|
|
||
| func isExperimental() bool { | ||
| if v, ok := os.LookupEnv("TEST_BUILDX_EXPERIMENTAL"); ok { | ||
| vv, _ := strconv.ParseBool(v) | ||
| return vv | ||
| } | ||
| return false | ||
| } | ||
|
|
||
| func buildkitTag() string { | ||
| if v := os.Getenv("TEST_BUILDKIT_TAG"); v != "" { | ||
| return v | ||
|
|
@@ -172,9 +160,6 @@ func buildkitVersion(t *testing.T, sb integration.Sandbox) string { | |
| require.NoError(t, err, "undock not found") | ||
|
|
||
| destDir := t.TempDir() | ||
| t.Cleanup(func() { | ||
| os.RemoveAll(destDir) | ||
| }) | ||
|
Comment on lines
-175
to
-177
Member
Author
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. Not really related, but my IDE was complaining about the unhandled error, and it was redundant, so added a commit to remove it 😂 |
||
|
|
||
| cmd := exec.Command(undockBin, "--cachedir", "/root/.cache/undock", "--include", "/usr/bin/buildkitd", "--rm-dist", buildkitImage, destDir) | ||
| require.NoErrorf(t, cmd.Run(), "failed to extract buildkitd binary from %q", buildkitImage) | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Also considering if we should just (as we did for the CLI) always enable the
debugcommand;buildx/commands/root.go
Lines 121 to 123 in 08dd378
The output already shows it's experimental;
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.
With on-going work with
debugcommand related to new DAP implementation I think we should keep it experimental for now: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.
Yeah, I was considering that we would have it visible, but call out that it's experimental? It may help getting more people to try it if we don't require config changes, as long as we explicitly call out that it's experimental?
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.
In the future I agree that we should deprecate
BUILDX_EXPERIMENTALas the CLI already marks commands as experimental anyway.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.
For what it's worth, the debug adapter stuff is going under another command in
dap. Right now,debugcontrols the monitor. We do potentially have plans to completely remove thedebugcommand and integrate it directly with build.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.
Discussed with @tonistiigi, we would need to always enable the
debugcommand if we are removing this hint from help so users are aware of it.