Refactor compose_run_linux_test#4845
Conversation
1c62fbd to
83f48b8
Compare
|
@AkihiroSuda this is up for review |
|
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
https://github.com/containerd/nerdctl/actions/runs/24600266519/job/71937648351?pr=4845
|
|
sure @haytok ill have a look |
|
Marking as a draft due to the CI failure. |
7aa3be4 to
326f008
Compare
|
@AkihiroSuda its ready for review. I only migrated the non flaky tests. |
|
@AkihiroSuda a kind reminder to review this |
Migrates the non-flaky compose run tests to nerdtest.Setup(): - TestComposeRunWithEnv - TestComposeRunWithUser - TestComposeRunWithArgs - TestComposeRunWithEntrypoint - TestComposeRunWithLabel (uses nerdtest.InspectContainer) - TestComposeRunWithVolume (uses nerdtest.InspectContainer) Replaces the unbuffer(1) pty wrapper with cmd.WithPseudoTTY(), and uses expect.ExitCodeSuccess instead of literal 0 for exit codes. TestComposeRunWithServicePorts, TestComposeRunWithPublish, and TestComposePushAndPullWithCosignVerify are intentionally left on the legacy framework for now (flaky / complex). Signed-off-by: sathiraumesh <sathiraumesh@gmail.com>
326f008 to
80cf9f8
Compare
https://github.com/containerd/nerdctl/actions/runs/26691700182/job/78710174989?pr=4845 |
I don't think its because of the changes from this PR. |
Summary
compose_run_linux_test.gofrom legacytestutil.NewBasetonerdtest.Setup()/ tigron frameworkNot included
TestComposePushAndPullWithCosignVerifyremains on legacy harness — blocked ontestregistryrequiring*testutil.Base, A seperate PR would be better of thisTestComposeRunWithServicePortsremains legacy due to the flakynessTestComposeRunWithPublishremains legacy due to the flakynesss