Skip to content

Improve parallel test execution, RPM build, and test configuration#1251

Open
ibujna wants to merge 6 commits intomemcached:nextfrom
ibujna:feature/Better_parallel_usage_in_tests
Open

Improve parallel test execution, RPM build, and test configuration#1251
ibujna wants to merge 6 commits intomemcached:nextfrom
ibujna:feature/Better_parallel_usage_in_tests

Conversation

@ibujna
Copy link
Copy Markdown
Contributor

@ibujna ibujna commented Jan 16, 2026

  • Enable running tests in parallel using the Makefile variable PARALLEL. Example usage: PARALLEL=5, PARALLEL=-j5, PARALLEL=-jobs=5.

  • Add environment variable TEST_CMD to print the memcached command executed during tests.

  • Configure unit tests to skip starting memcached with SSL or UDP when not required.

  • Fix parallel test execution:

    1. Each test allocates its own port to avoid conflicts.
    2. Disable SSL or UDP in tests when not used to prevent parallel test failures.

- Enable running tests in parallel using the Makefile variable PARALLEL.
  Example usage: PARALLEL=5, PARALLEL=-j5, PARALLEL=-jobs=5.

- Automatically configure parallel and SSL testing when building RPMs via the spec file.
  Introduce new configuration variables:
    1. with_tls which setup --enable-tls
    2. with_proxy which setup --enable-proxy
    If both options are enabled, --enable-proxy-tls is automatically set.

- Add environment variable TEST_CMD to print the memcached command executed during tests.

- Configure unit tests to skip starting memcached with SSL or UDP when not required.

- Fix parallel test execution:
    1. Each test allocates its own port to avoid conflicts.
    2. Disable SSL or UDP in tests when not used to prevent parallel test failures.

- Add comment explaining what to do if attempting to compile Lua when Lua is not installed.

- Fix maxconn tests on systems with a nofile limit below 1024 (e.g., macOS).
@ibujna ibujna changed the base branch from master to next January 16, 2026 09:23
@dormando
Copy link
Copy Markdown
Member

dormando commented Mar 4, 2026

Parts of this are easy to take but I'm not sure about half of it... If you feel up to splitting it up into a few more PR's that would help. Or else I guess eventually I'll do it.

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