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

tests: commands: only use one subtest #322

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

matttbe
Copy link
Member

@matttbe matttbe commented Feb 11, 2025

ELL 0.72 recently changed the way the subtests are executed: each one is now executed in a dedicated process, forked from the same parent [1].

This is causing issues for the commands test, because some shared info are shared between subtests. info could be created in a shared memory with mmap(), but it looks like there are more changes needed in mptcpd itself to cope with that, probably the memory allocated for the pm structure and more.

Then, for the moment, it looks better and easier to simplify things, an only use one subtest.

While at it, also fix l_test_init() used with the wrong argv (the one for mptcpd, instead of the one for the test).

Note that the breaking issue has been reported to the ELL ML [2], but this didn't block the 0.72 release :) (cc @mjmartineau)

Link: https://git.kernel.org/pub/scm/libs/ell/ell.git/commit/?id=e0628c4 [1]
Link: https://lore.kernel.org/ell/17dba9d9-6fce-41a6-a136-e47179c6a206@kernel.org/T/ [2]

ELL 0.72 recently changed the way the subtests are executed: each one is
now executed in a dedicated process, forked from the same parent [1].

This is causing issues for the 'commands' test, because some shared info
are shared between subtests. 'info' could be created in a shared memory
with mmap(), but it looks like there are more changes needed in mptcpd
itself to cope with that, probably the memory allocated for the pm
structure and more.

Then, for the moment, it looks better and easier to simplify things, an
only use one subtest.

Link: https://git.kernel.org/pub/scm/libs/ell/ell.git/commit/?id=e0628c4 [1]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
@matttbe
Copy link
Member Author

matttbe commented Feb 11, 2025

@ossama-othman I suggest merging, not to affect future development, and daily errors sent by the CI. I hope that's OK!

Do not hesitate to tell me if there is anything to change, I can easily create another PR fixing this

@matttbe matttbe merged commit 48942b2 into multipath-tcp:main Feb 11, 2025
8 checks passed
@coveralls
Copy link

coveralls commented Feb 13, 2025

Pull Request Test Coverage Report for Build 13270086376

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 68.972%

Totals Coverage Status
Change from base Build 13239277715: 0.0%
Covered Lines: 1516
Relevant Lines: 2198

💛 - Coveralls

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.

2 participants