Repository navigation
[CI]: tests cleanup - #4247
[CI]: tests cleanup#4247
Conversation
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
| }, | ||
| Cleanup: func(data test.Data, helpers test.Helpers) { | ||
| helpers.Anyhow("rmi", "-f", data.Identifier("ignored")) | ||
| helpers.Anyhow("rmi", "-f", data.Identifier()) |
There was a problem hiding this comment.
Properly remove leftovers.
| data.Labels().Set("containerName1", data.Identifier("-container1")) | ||
| containerName1 := data.Labels().Get("containerName1") | ||
| helpers.Ensure("run", "-d", "--name", containerName1, | ||
| data.Labels().Set("container1", data.Identifier("container1")) |
There was a problem hiding this comment.
There is no need for "-" in suffix - this is added automatically by Identifier
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
28a3d08 to
d9cf528
Compare
| helpers.Anyhow("rm", "--data-root", data.Temp().Path(), "-f", data.Identifier()) | ||
| }, | ||
| Command: func(data test.Data, helpers test.Helpers) test.TestableCommand { | ||
| return helpers.Command("run", "--data-root", data.Temp().Path(), "--rm", "--name", data.Identifier(), "-p", "22200-22299:22200-22299", testutil.CommonImage) |
There was a problem hiding this comment.
Name is useless here, and so is cleanup.
| data.Labels().Set("container2", data.Identifier("container2")) | ||
| nerdtest.EnsureContainerStarted(helpers, data.Identifier("container2")) | ||
| }, | ||
| Expected: func(data test.Data, helpers test.Helpers) *test.Expected { |
There was a problem hiding this comment.
Splitting this into subtests.
| return &test.Expected{ | ||
| ExitCode: 0, | ||
| } | ||
| return helpers.Command("run", "--rm", "--uts", "host", |
| return &test.Expected{ | ||
| ExitCode: 1, | ||
| } | ||
| return helpers.Command("run", "--rm", "--dns", "0.1.2.3", |
| ExitCode: 1, | ||
| } | ||
| }, | ||
| // 1 for nerdctl, 125 for docker |
There was a problem hiding this comment.
Unless aligning with docker on exit codes would really matter to us, simplifying.
|
Failures:
|
|
Failure is #4249 |
|
Failure is Hub 429. |
|
Green. |
|
Green again. |
|
Green. I think we can call it and merge - then close the issues linked above. |
This is a tentative at fixing:
The hypothesis is that in very slow environments (eg: EL8 under pressure), containers started with
-dmay not have started by the time we are testing on them, resulting in unspecified behavior (whether this is a bug or not is a separate conversation to be evaluated case by case).Besides enforcing verification that the container has started, this PR does take the occasion to do some cleanup:
-dwhen not necessaryCommonImageinstead of Alpine, or Nginx (when not necessary)WithArguments, simplify expectations)I will restart the CI a few times to confirm that EL8 is no longer failing on these.