Skip to content

Enable parallel dlt tests#104

Open
HiLivin wants to merge 3 commits intoeclipse-score:mainfrom
HiLivin:jakuza_docker_dlt
Open

Enable parallel dlt tests#104
HiLivin wants to merge 3 commits intoeclipse-score:mainfrom
HiLivin:jakuza_docker_dlt

Conversation

@HiLivin
Copy link
Copy Markdown
Contributor

@HiLivin HiLivin commented May 8, 2026

Create a dedicated bridge network for each Docker container so that
get_ip()/get_gateway() return addresses unique to that container,
preventing multicast cross-talk between parallel tests.

When a dedicated network is set, get_ip()/get_gateway() default to it.
The first-attached-network fallback is only used when no dedicated
network was provided (e.g. DockerTarget created without a network).

Add a dlt_on_target pytest fixture that uploads dlt-receive to the
target and yields a factory for starting receivers. All receivers are
stopped automatically on teardown.

Suppress two warrnings from third party dlt 2.18.11.

HiLivin added 3 commits May 6, 2026 11:04
- safe_size_to_int32 in dlt_user.c is defined outside a
DLT_TRACE_LOAD_CTRL_ENABLE guard but only called inside it,
triggering -Werror=unused-function with GCC.

- dlt_env_ll.c uses strlen() in an array size which Clang treats as a
GNU extension (-Wgnu-folding-constant)
Create a dedicated bridge network for each Docker container so that
get_ip()/get_gateway() return addresses unique to that container,
preventing multicast cross-talk between parallel tests.

When a dedicated network is set, get_ip()/get_gateway() default to it.
The first-attached-network fallback is only used when no dedicated
network was provided (e.g. DockerTarget created without a network).

Migrate test_dlt.py helpers to use the new target methods instead
of reaching into container internals.
Add a dlt_on_target pytest fixture that uploads dlt-receive to the
target and yields a factory for starting receivers.  All receivers are
stopped automatically on teardown.
@HiLivin HiLivin marked this pull request as ready for review May 8, 2026 11:32
@HiLivin HiLivin self-assigned this May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant