Skip to content

feat(experiments): add experimental feature state#11633

Merged
milas merged 2 commits intodocker:mainfrom
milas:compose-experiments
Mar 20, 2024
Merged

feat(experiments): add experimental feature state#11633
milas merged 2 commits intodocker:mainfrom
milas:compose-experiments

Conversation

@milas
Copy link
Copy Markdown
Contributor

@milas milas commented Mar 19, 2024

What I did
Use environment variable for global opt-out and Docker Desktop (if
available) to determine specific experiment states.

In the future, we'll allow per-feature opt-in/opt-out via env vars
as well, but currently there is a single COMPOSE_EXPERIMENTAL env
var that can be used to opt-out of all experimental features
independently of Docker Desktop configuration.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@milas milas added the area/cli label Mar 19, 2024
@milas milas requested a review from a team March 19, 2024 15:29
@milas milas self-assigned this Mar 19, 2024
@milas milas requested review from glours, jhrotko and ndeloof and removed request for a team March 19, 2024 15:29
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 51 lines in your changes are missing coverage. Please review.

Project coverage is 57.51%. Comparing base (86cd523) to head (c43eade).

❗ Current head c43eade differs from pull request most recent head f19fc5e. Consider uploading reports for the commit f19fc5e to get more accurate results

Files Patch % Lines
internal/experimental/experimental.go 0.00% 26 Missing ⚠️
internal/desktop/client.go 0.00% 20 Missing ⚠️
pkg/compose/desktop.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11633      +/-   ##
==========================================
- Coverage   57.72%   57.51%   -0.21%     
==========================================
  Files         138      139       +1     
  Lines       11736    11784      +48     
==========================================
+ Hits         6775     6778       +3     
- Misses       4284     4326      +42     
- Partials      677      680       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@milas milas force-pushed the compose-experiments branch from c43eade to e88a585 Compare March 19, 2024 16:29
Use environment variable for global opt-out and Docker Desktop (if
available) to determine specific experiment states.

In the future, we'll allow per-feature opt-in/opt-out via env vars
as well, but currently there is a single `COMPOSE_EXPERIMENTAL` env
var that can be used to opt-out of all experimental features
independently of Docker Desktop configuration.

Signed-off-by: Milas Bowman <[email protected]>
@milas milas force-pushed the compose-experiments branch from fb7f42d to 6877c2c Compare March 19, 2024 17:23
@milas milas marked this pull request as ready for review March 19, 2024 17:23
Copy link
Copy Markdown
Contributor

@jhrotko jhrotko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milas milas enabled auto-merge (squash) March 19, 2024 17:25
Signed-off-by: Milas Bowman <[email protected]>
@milas milas merged commit 1b5fa3b into docker:main Mar 20, 2024
temenuzhka-thede pushed a commit to temenuzhka-thede/compose that referenced this pull request Sep 17, 2024
Use environment variable for global opt-out and Docker Desktop (if
available) to determine specific experiment states.

In the future, we'll allow per-feature opt-in/opt-out via env vars
as well, but currently there is a single `COMPOSE_EXPERIMENTAL` env
var that can be used to opt-out of all experimental features
independently of Docker Desktop configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants