Skip to content

fix(ci): run npsim with --random.enableEventSeed - #79

Merged
wdconinc merged 1 commit into
mainfrom
npsim-enable-event-seed
Jul 2, 2026
Merged

fix(ci): run npsim with --random.enableEventSeed#79
wdconinc merged 1 commit into
mainfrom
npsim-enable-event-seed

Conversation

@wdconinc

@wdconinc wdconinc commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

This PR adds --random.enableEventSeed to the npsim CI tests to ensure we end up simulating the same events even when the internal event random number consumption changes. Mostly aspirational until we pick up AIDASoft/DD4hep#1617 (at least for gun)...

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue: ensure events are reproducible)
  • New feature (issue #__)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

Copilot AI review requested due to automatic review settings July 2, 2026 19:51
@wdconinc wdconinc changed the title fix(ci): run npsim with --random.enableEventSeed fix(ci): run npsim with --random.enableEventSeed Jul 2, 2026

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

This PR updates the GitHub Actions CI workflow to make npsim runs more reproducible by enabling per-event seeding in addition to setting a fixed global RNG seed.

Changes:

  • Add --random.enableEventSeed to the gun-based npsim CI run.
  • Add --random.enableEventSeed to the DIS-input npsim CI run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@veprbl veprbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I support these aspirations.

@wdconinc
wdconinc merged commit 38606d9 into main Jul 2, 2026
28 checks passed
@wdconinc
wdconinc deleted the npsim-enable-event-seed branch July 2, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants