Skip to content

refactor(e2e): move the e2e framework and tests out of pkg/ to internal/e2e - #14404

Open
ndeloof wants to merge 1 commit into
docker:mainfrom
ndeloof:internal-e2e
Open

ndeloof wants to merge 1 commit into
docker:mainfrom
ndeloof:internal-e2e

Conversation

@ndeloof

@ndeloof ndeloof commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What this PR does, in one sentence

Moves the e2e framework and the e2e tests from pkg/e2e to internal/e2e, so they are no longer part of the public /v5 API surface.

Context

pkg/e2e holds the e2e test support code (framework.go, scenario.go, checks.go, assert.go, the build-tag specific configs) as regular, non-test Go files. Being under pkg/, they are published as part of github.com/docker/compose/v5 and look like a supported SDK package, although they are only meant to drive the test suite. This is one of the items of the "Public surface" section of #14396.

What the PR brings

To the authors of those PRs: a plain git rebase origin/main (or merge) will carry your pkg/e2e/... changes over to internal/e2e/... thanks to rename detection, no manual action should be needed.

Why this is the right next brick

It is the smallest, fully mechanical step to get test-only code out of the public API, and doing it as a pure rename (no content change) keeps it cheap to review and conflict-free for in-flight work, before any further cleanup of the public surface.

Part of #14396

🤖 Generated with Claude Code

The e2e framework (framework.go, scenario.go, checks.go, assert.go) and
the e2e tests lived under pkg/e2e, so the framework was published as part
of the public /v5 API although it is only test support code. Move it to
internal/e2e.

This is a pure move: the files keep their content, only the references to
the old path (Makefile, .golangci.yml, codecov.yml, .gitignore, AGENTS.md
and SCENARIO.md) are updated. internal/e2e is at the same depth as
pkg/e2e, so the relative paths to bin/, relay/ and testdata keep working.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
ndeloof requested review from a team as code owners October 28, 2026 06:55

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

2 participants