Skip to content

integration-cli: migrate TestPostContainersCreateShmSizeXXX to integration#50525

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:migrate_defaultshmsize_test
Jul 28, 2025
Merged

integration-cli: migrate TestPostContainersCreateShmSizeXXX to integration#50525
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:migrate_defaultshmsize_test

Conversation

@thaJeztah
Copy link
Member

Some of these tests were making assumptions about the daemon's internals by using config.DefaultShmSize from the daemon config package.

Rewrite them to start a daemon with a custom default, and verify the tests to use that default.

This migrates the following tests from integration-cli to integration;

  • DockerAPISuite.TestPostContainersCreateShmSizeNegative
  • DockerAPISuite.TestPostContainersCreateShmSizeHostConfigOmitted
  • DockerAPISuite.TestPostContainersCreateShmSizeOmitted
  • DockerAPISuite.TestPostContainersCreateWithShmSize

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

…ation

Some of these tests were making assumptions about the daemon's internals
by using `config.DefaultShmSize` from the daemon config package.

Rewrite them to start a daemon with a custom default, and verify the
tests to use that default.

This migrates the following tests from integration-cli to integration;

- `DockerAPISuite.TestPostContainersCreateShmSizeNegative`
- `DockerAPISuite.TestPostContainersCreateShmSizeHostConfigOmitted`
- `DockerAPISuite.TestPostContainersCreateShmSizeOmitted`
- `DockerAPISuite.TestPostContainersCreateWithShmSize`

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 26, 2025
@thaJeztah thaJeztah added status/2-code-review area/testing kind/refactor PR's that refactor, or clean-up code labels Jul 26, 2025
@thaJeztah
Copy link
Member Author

Interesting; https://github.com/moby/moby/actions/runs/16542857660/job/46786654831?pr=50525

Prepare all required actions
Run ./.github/actions/setup-runner
Run sudo modprobe ip_vs
  sudo modprobe ip_vs
  sudo modprobe ipv6
  sudo modprobe ip6table_filter
  sudo modprobe -r overlay
  sudo modprobe overlay redirect_dir=off
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GO_VERSION: 1.24.5
    GOTESTLIST_VERSION: v0.3.1
    TESTSTAT_VERSION: v0.1.25
    ITG_CLI_MATRIX_SIZE: 6
    DOCKER_EXPERIMENTAL: 1
    DOCKER_GRAPHDRIVER: overlay2
    TEST_INTEGRATION_USE_SNAPSHOTTER: 
    SETUP_BUILDX_VERSION: edge
    SETUP_BUILDKIT_IMAGE: moby/buildkit:latest
modprobe: FATAL: Module overlay is in use.
Error: Process completed with exit code 1

@thaJeztah thaJeztah merged commit dbfe764 into moby:master Jul 28, 2025
258 of 259 checks passed
@thaJeztah thaJeztah deleted the migrate_defaultshmsize_test branch July 28, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants