Skip to content

Refactor compose_run_linux_test#4845

Open
sathiraumesh wants to merge 1 commit intocontainerd:mainfrom
sathiraumesh:refactor_compose_run_linux_test_4613
Open

Refactor compose_run_linux_test#4845
sathiraumesh wants to merge 1 commit intocontainerd:mainfrom
sathiraumesh:refactor_compose_run_linux_test_4613

Conversation

@sathiraumesh
Copy link
Copy Markdown
Contributor

@sathiraumesh sathiraumesh commented Apr 11, 2026

Summary

  • Migrated 9 out of 10 tests in compose_run_linux_test.go from legacy testutil.NewBase to nerdtest.Setup() / tigron framework

Not included

  • TestComposePushAndPullWithCosignVerify remains on legacy harness — blocked on testregistry requiring *testutil.Base, A seperate PR would be better of this

@sathiraumesh sathiraumesh marked this pull request as draft April 11, 2026 11:54
@sathiraumesh sathiraumesh marked this pull request as ready for review April 18, 2026 07:48
@sathiraumesh sathiraumesh force-pushed the refactor_compose_run_linux_test_4613 branch from 3eb2166 to 1c62fbd Compare April 18, 2026 07:51
Migrated 9 out of 10 tests in compose_run_linux_test.go from legacy
testutil.NewBase to the nerdtest/tigron framework. Replaced unbuffer
wrapper with WithPseudoTTY, goroutine polling with cmd.Background
and EnsureContainerStarted, and hardcoded ports with portlock.Acquire.

Signed-off-by: sathiraumesh <sathiraumesh@gmail.com>
@sathiraumesh sathiraumesh force-pushed the refactor_compose_run_linux_test_4613 branch from 1c62fbd to 83f48b8 Compare April 18, 2026 07:55
@sathiraumesh
Copy link
Copy Markdown
Contributor Author

@AkihiroSuda this is up for review

@haytok
Copy link
Copy Markdown
Member

haytok commented Apr 19, 2026

HI, @sathiraumesh

Thanks for creating this PR.

It looks like the test you refactored is failing. Could you please check it?

https://github.com/containerd/nerdctl/actions/runs/24600266536/job/71937779334?pr=4845

=== Failing tests ===
TestComposeRunWithServicePorts

https://github.com/containerd/nerdctl/actions/runs/24600266519/job/71937648351?pr=4845

TestComposeRunWithEnv

@sathiraumesh
Copy link
Copy Markdown
Contributor Author

sure @haytok ill have a look

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