Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker compose based test environment for Linux #733

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Sep 12, 2024

Updated #687 as it appeared to be stale, but still useful.

This makes it trivial to inspect, line by line, what got covered.
That is useful when evaluating coverage for a new feature.

Signed-off-by: Martí Bolívar <[email protected]>
@pdgendt pdgendt added this to the v1.3.0 milestone Sep 13, 2024
@pdgendt
Copy link
Collaborator Author

pdgendt commented Sep 18, 2024

@marc-hb any objections to this PR? I found it very useful to run these extensive tests locally without the need for a lot of manuals setups.
It doesn't change the source code or packages.

docker-testing/in-container-test.sh Outdated Show resolved Hide resolved
docker-testing/debian-testing/Dockerfile Outdated Show resolved Hide resolved
docker-testing/compose.yaml Outdated Show resolved Hide resolved
Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

It doesn't change the source code or packages.

Short of using a separate repository (admittedly a bit overkill but see why in #687 (comment)), please make sure Docker stuff stays contained in a separate sub directory.

docker-testing/compose.yaml Outdated Show resolved Hide resolved
@pdgendt pdgendt force-pushed the docker-compose branch 2 times, most recently from 9b63579 to 72b695d Compare September 24, 2024 10:33
@pdgendt
Copy link
Collaborator Author

pdgendt commented Sep 24, 2024

@marc-hb reduced to mostly reusable files and yaml sections

docker-testing/in-container-test.sh Outdated Show resolved Hide resolved
Our release process documentation recommends getting passing tox
results on as many popular linux distributions as time allows. Doing
this by hand is cumbersome, redundant, and error prone.

Add a directory with a helper script that automates the entire process
using docker compose and document its use in MAINTAINERS.rst.

Signed-off-by: Martí Bolívar <[email protected]>
Signed-off-by: Pieter De Gendt <[email protected]>
@marc-hb marc-hb merged commit e432aff into zephyrproject-rtos:main Sep 25, 2024
9 checks passed
@pdgendt pdgendt deleted the docker-compose branch September 25, 2024 14:20
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