Skip to content

[test][ci] MacOS test support#4883

Draft
gamesh411 wants to merge 3 commits into
Ericsson:masterfrom
gamesh411:macos-test-support
Draft

[test][ci] MacOS test support#4883
gamesh411 wants to merge 3 commits into
Ericsson:masterfrom
gamesh411:macos-test-support

Conversation

@gamesh411

@gamesh411 gamesh411 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

An umbrella PR to test the MacOS runners. I think I will try to create 3 PRs from the 3 commits we have for an easier review.

@gamesh411 gamesh411 force-pushed the macos-test-support branch from fc3d34d to 976efeb Compare June 8, 2026 13:10
@gamesh411 gamesh411 changed the title [test][ci] Macos test support [test][ci] MacOS test support Jun 8, 2026
@gamesh411 gamesh411 force-pushed the macos-test-support branch 28 times, most recently from ee2abfd to 09c136a Compare June 11, 2026 18:30
@gamesh411 gamesh411 force-pushed the macos-test-support branch 21 times, most recently from 6b66186 to d77eec4 Compare June 12, 2026 14:08
@gamesh411 gamesh411 force-pushed the macos-test-support branch 2 times, most recently from 42d1258 to a7513ea Compare June 12, 2026 20:54
Replace the in-tree multiprocessing compatibility shim with the
multiprocess package and select the spawn start method on macOS and
Windows (fork remains the default on Linux). Spawned workers do not
inherit the parent process state, so the logging configuration is set
up explicitly in each worker, but only under spawn to avoid needlessly
re-running it for forked workers.
Adapt analyzer and web tests for non-Linux platforms: handle the
'arguments' form of compile_commands.json in tu_collector, resolve
symlinked paths in analyzer tests, make blame and OAuth mock-server
tests robust, detect server startup by polling, and replace
timing-dependent task tests with poll loops. The build-command escaping
test only checks that the (escaped) command compiles, so use
-fsyntax-only (no linking) and skip it on Windows where Unix shell
quoting does not apply.
Run the analyzer, web, and tools suites on macOS (continue-on-error).
install-deps-macos.sh installs the toolchain (llvm@14, gcc@13, cppcheck,
openldap, bear) and pins the build environment so Homebrew's clang@14
and the macOS SDK cooperate: SDKROOT for platform headers, an arm64-only
ARCHFLAGS and an SDK-matched deployment target (so clang@14 and the gcc
analyzer's SARIF output work), and Apple clang for pip C extensions
(e.g. python-ldap) which clang@14 cannot link against the current SDK.
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.

1 participant