Skip to content

Support macos walltime without profiling in codspeed-runner#287

Merged
GuillaumeLagrange merged 10 commits intomainfrom
cod-2459-be-able-to-run-all-integrations-on-macos
Apr 16, 2026
Merged

Support macos walltime without profiling in codspeed-runner#287
GuillaumeLagrange merged 10 commits intomainfrom
cod-2459-be-able-to-run-all-integrations-on-macos

Conversation

@GuillaumeLagrange
Copy link
Copy Markdown
Contributor

No description provided.

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch 2 times, most recently from 8a9d9bd to 407c55c Compare April 13, 2026 13:01
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 13, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing cod-2459-be-able-to-run-all-integrations-on-macos (8e74cca) with main (fafd233)

Open in CodSpeed

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch 4 times, most recently from f95953f to bba9e90 Compare April 13, 2026 15:12
@GuillaumeLagrange GuillaumeLagrange marked this pull request as ready for review April 13, 2026 15:12
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch 6 times, most recently from c07e0c6 to dc2a772 Compare April 13, 2026 16:07
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch from dc2a772 to 8b7c20c Compare April 13, 2026 16:10
@GuillaumeLagrange GuillaumeLagrange changed the title Be able to run all integrations on macos Support macos walltime without profiling in codspeed-runner Apr 14, 2026
Copy link
Copy Markdown
Member

@not-matthias not-matthias left a comment

Choose a reason for hiding this comment

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

It's important to consider everything unsupported by default. e.g. if someone runs on a system we haven't considered (e.g. Windows) we shouldn't even try to continue running with best-effort.

Logic could be implemented like this:

  • Tool support: Get Os struct, check version + distro
  • Executor: Check each OS, e.g. on Linux: is_debian FullySupported; else RequireManualInstallation; Mac/Windows: Unsupported
  • General (check_system): We could refactor this to just iterate over all executors and see if any are supported.

Comment thread src/system/os.rs
Comment thread src/system/os.rs Outdated
Comment thread src/system/check.rs Outdated
Comment thread src/executor/valgrind/executor.rs Outdated
Comment thread src/system/os.rs Outdated
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch from bb820ae to be6956c Compare April 15, 2026 13:27
@GuillaumeLagrange
Copy link
Copy Markdown
Contributor Author

@not-matthias I've done the following

  • Os -> SupportedOs, we now can represent ONLY the Os that we at least somewhat support, and bail for the others
  • The SupportedOs has two variants, Linux and MacOs, with Linux having a linux distrib enum for well known distirbs that we support better
  • Updated the support level check for valgrind executor

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch 2 times, most recently from abefba1 to 2fdce4e Compare April 16, 2026 07:41
Copy link
Copy Markdown
Member

@not-matthias not-matthias left a comment

Choose a reason for hiding this comment

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

LGTM, just two minor style comments

Comment thread src/executor/valgrind/executor.rs Outdated
Comment thread src/system/check.rs Outdated
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch 3 times, most recently from 1cb2811 to 3c21514 Compare April 16, 2026 14:29
On macos a symlink breaks the existing test creating an infinite loop
where `instropected_go` detects itself as the real `go` executable.

Fixed by changing the behavior to what instrospected_node does.
Fixes compilation warnings in exec-harness's build script.
…ecutor support gates

Only supported Oses can be represented, the runner will bail if it
detects a non supported os.
Then, each executor can define its support level for the current system
depending on the Os and, for example, the linux distribution/version.
These tests panic on macOS, and for now are not relevant since we do not
support profiling on macOS.
When we do support it, we should have os-specific tests
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch from 3c21514 to 25ee001 Compare April 16, 2026 14:43
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2459-be-able-to-run-all-integrations-on-macos branch from 26b0434 to 8e74cca Compare April 16, 2026 15:13
@GuillaumeLagrange GuillaumeLagrange merged commit 8e74cca into main Apr 16, 2026
18 checks passed
@GuillaumeLagrange GuillaumeLagrange deleted the cod-2459-be-able-to-run-all-integrations-on-macos branch April 16, 2026 15:51
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