Skip to content

Conversation

@genesor
Copy link
Member

@genesor genesor commented Jan 22, 2026

Motivation

I am using the following test:

TEST_LIBRARY=golang ./run.sh DEFAULT -k test_data_integrity -v

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

@github-actions
Copy link
Contributor

CODEOWNERS have been resolved as:

CONTAINER_ID_SOLUTION.md                                                @DataDog/system-tests-core
utils/_context/_scenarios/default.py                                    @DataDog/system-tests-core
utils/_context/containers.py                                            @DataDog/system-tests-core

Copy link
Collaborator

@cbeauchesne cbeauchesne left a comment

Choose a reason for hiding this comment

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

Some minor cosmetic requests changes

volumes: dict | None = None,
working_dir: str | None = None,
pid_mode: str | None = None,
cgroupns_mode: str | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you keep this identical to docker run method :

Suggested change
cgroupns_mode: str | None = None,
cgroupns: Literal['private', 'host'] | None = None,

name=self.container_name,
hostname=self.name,
environment=self.environment,
# Build run arguments
Copy link
Collaborator

Choose a reason for hiding this comment

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

By keeping the cgroupns identical to the one used by run method, you can keep the current code design.

# Set cgroupns to host mode to ensure container ID is visible in /proc/self/cgroup
# This is particularly important for Docker Desktop on macOS where the default
# private cgroup namespace shows "/" as the cgroup path
self.weblog_container.cgroupns_mode = "host"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line should be in DefaultScenario.__init__

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.

3 participants