-
Notifications
You must be signed in to change notification settings - Fork 16
repo: enable Miri for Rust #106
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||
| # ******************************************************************************* | ||||||||||||||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||||||||||||||
| # | ||||||||||||||
| # See the NOTICE file(s) distributed with this work for additional | ||||||||||||||
| # information regarding copyright ownership. | ||||||||||||||
| # | ||||||||||||||
| # This program and the accompanying materials are made available under the | ||||||||||||||
| # terms of the Apache License Version 2.0 which is available at | ||||||||||||||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||||||||||||||
| # | ||||||||||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||||||||||
| # ******************************************************************************* | ||||||||||||||
|
|
||||||||||||||
| name: Miri check | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| pull_request: | ||||||||||||||
| branches: [main, development] | ||||||||||||||
| types: [opened, ready_for_review, reopened, synchronize] | ||||||||||||||
|
|
||||||||||||||
| env: | ||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||
| jobs: | ||||||||||||||
| miri: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| env: | ||||||||||||||
| MIRIFLAGS: "-Zmiri-ignore-leaks -Zmiri-disable-isolation" | ||||||||||||||
|
Comment on lines
+25
to
+27
|
||||||||||||||
| runs-on: ubuntu-latest | |
| env: | |
| MIRIFLAGS: "-Zmiri-ignore-leaks -Zmiri-disable-isolation" | |
| runs-on: ubuntu-lest | |
| env: | |
| MIRIFLAGS: "-Zmiri-ignore-leaks" |
Copilot
AI
Mar 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The toolchain version is pinned twice (in dtolnay/rust-toolchain and in cargo +nightly-...). This duplication can drift over time; prefer relying on the installed toolchain (i.e., run cargo miri test without +...) or define the toolchain once (e.g., via an env var) and reuse it.
| cargo +nightly-2025-12-15 miri test --features stub_supervisor_api_client --no-default-features | |
| cargo miri test --features stub_supervisor_api_client --no-default-features |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -301,6 +301,8 @@ mod tests { | |||||||
| } | ||||||||
|
|
||||||||
| #[test] | ||||||||
| // Test is flaky for Miri. | ||||||||
|
||||||||
| // Test is flaky for Miri. | |
| // Test is flaky under Miri due to timing and thread-scheduling sensitivity | |
| // in this sleep-based background thread check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GITHUB_TOKENis being exported as a job-wide environment variable, but this workflow doesn’t appear to use it directly. Consider removing it (or scoping it to the one step that needs it) to reduce unnecessary secret exposure in the runner environment.