Skip to content

ci(miri): run Miri with strict provenance enabled#23258

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/06-10-ci_miri_run_miri_with_strict_provenance_enabled
Jun 11, 2026
Merged

ci(miri): run Miri with strict provenance enabled#23258
graphite-app[bot] merged 1 commit into
mainfrom
om/06-10-ci_miri_run_miri_with_strict_provenance_enabled

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Jun 10, 2026

Copy link
Copy Markdown
Member

I had always understood that Miri ran its checks under strict provenance rules by default, but apparently not. Enable strict provenance in Miri in CI.

overlookmotel commented Jun 10, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review June 10, 2026 20:54
Copilot AI review requested due to automatic review settings June 10, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Enables Miri’s strict provenance checks in CI so that the Miri job(s) detect provenance-related UB under the stricter interpretation, aligning CI with the intended safety guarantees.

Changes:

  • Add -Zmiri-strict-provenance to Miri runs in the Linux workflow.
  • Add -Zmiri-strict-provenance to the Windows Miri workflow for oxc_allocator.
  • Document the purpose of the new Miri flag in both workflows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/miri.yml Sets strict provenance via MIRIFLAGS for the Linux Miri test runs.
.github/workflows/miri-windows.yml Sets strict provenance via MIRIFLAGS for the Windows Miri test run.

Comment thread .github/workflows/miri.yml Outdated
Comment thread .github/workflows/miri-windows.yml Outdated
@overlookmotel overlookmotel self-assigned this Jun 10, 2026
@overlookmotel overlookmotel added the C-test Category - Testing. Code is missing test cases, or a PR is adding them label Jun 10, 2026
@overlookmotel overlookmotel force-pushed the om/06-10-ci_miri_run_miri_with_strict_provenance_enabled branch from 0e3af3e to 437a564 Compare June 10, 2026 23:17
@graphite-app graphite-app Bot added the 0-merge Merge with Graphite Merge Queue label Jun 11, 2026
@graphite-app

graphite-app Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Merge activity

I had always understood that Miri ran its checks under strict provenance rules by default, but apparently not. Enable strict provenance in Miri in CI.
graphite-app Bot pushed a commit that referenced this pull request Jun 11, 2026
#23256)

Improve the unit tests for `Arena::try_alloc_layout_fast` (which purely does maths, no actual allocations).

1. Add more assertions that ensure test cases are correct.
2. Remove integer to pointer casts which Miri rejects under strict provenance rules.

The latter enables running Miri with strict provenance enabled (#23258).
@graphite-app graphite-app Bot force-pushed the om/06-10-docs_allocator_fix_memory_leaks_in_arena_examples branch from 2741679 to 65b6d7a Compare June 11, 2026 00:17
@graphite-app graphite-app Bot force-pushed the om/06-10-ci_miri_run_miri_with_strict_provenance_enabled branch from 437a564 to b77ca6f Compare June 11, 2026 00:17
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jun 11, 2026
Base automatically changed from om/06-10-docs_allocator_fix_memory_leaks_in_arena_examples to main June 11, 2026 00:22
@graphite-app graphite-app Bot merged commit b77ca6f into main Jun 11, 2026
31 checks passed
@graphite-app graphite-app Bot deleted the om/06-10-ci_miri_run_miri_with_strict_provenance_enabled branch June 11, 2026 00:23
camc314 pushed a commit that referenced this pull request Jul 3, 2026
#23256)

Improve the unit tests for `Arena::try_alloc_layout_fast` (which purely does maths, no actual allocations).

1. Add more assertions that ensure test cases are correct.
2. Remove integer to pointer casts which Miri rejects under strict provenance rules.

The latter enables running Miri with strict provenance enabled (#23258).
camc314 pushed a commit that referenced this pull request Jul 3, 2026
I had always understood that Miri ran its checks under strict provenance rules by default, but apparently not. Enable strict provenance in Miri in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants