Skip to content

chore: address the review notes left - #14469

Merged
ndeloof merged 1 commit into
docker:mainfrom
htoyoda18:chore/review-followups
Nov 11, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
htoyoda18:chore/review-followups

Conversation

@htoyoda18

@htoyoda18 htoyoda18 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Follows up on the non-blocking notes ndeloof left when approving #14358 and #14351. The RunOptions comment now matches what run does with the dependencies it creates. The fixture and e2e step added by #14358 now say why they need init: true and COMPOSE_IGNORE_ORPHANS. And a test restores disableAnsi to its previous value. Comments and tests only, no behavior change.

Related issue

No issue

Changes made

  • pkg/api/api.go: the RunOptions.CreateOptions comment listed Recreate, RecreateDependencies and Inherit as ignored. In fact, run passes Recreate and RecreateDependencies to the dependencies it creates (since feat(run): --no-recreate reuses existing dependencies as-is #14144) and always sets Inherit (since fix(run): keep a recreated dependency's anonymous volumes #14358). The comment now says so; Timeout, Services and SkipProviders are still ignored.
  • pkg/e2e/testdata/TestComposeRunInheritsAnonymousVolumes/compose.yaml: says that init: true is there because sleep as PID 1 ignores SIGTERM. Without it, stopping dep for the recreate waits for the stop timeout and kills it.
  • pkg/e2e/compose_run_test.go: says that COMPOSE_IGNORE_ORPHANS=True in the last step silences the orphan warning about the one-off container left by the first run.
  • cmd/formatter/shortcut_test.go: the cleanup restores the previous value of disableAnsi instead of resetting it to false.

Testing done

  • Unit tests pass: make test
  • E2E tests pass: make e2e-compose or make e2e-compose-standalone
  • Linting passes: make lint
  • Code formatted: make fmt
  • Manually tested (describe):

AI tool used (if applicable)

AI Tool:

Additional context

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

image
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com>
@htoyoda18
htoyoda18 marked this pull request as ready for review November 5, 2026 23:19
@htoyoda18
htoyoda18 requested review from a team as code owners November 5, 2026 23:19
@htoyoda18
htoyoda18 requested review from glours and ndeloof November 5, 2026 23:19
@ndeloof
ndeloof enabled auto-merge (rebase) November 11, 2026 19:28
@ndeloof
ndeloof merged commit e0f431c into docker:main Nov 11, 2026
61 of 62 checks passed
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants