Skip to content

Feat: Disable auto-continue in repro mode#302

Open
Wenzel wants to merge 2 commits intointel:mainfrom
Wenzel:feat/repro_continue
Open

Feat: Disable auto-continue in repro mode#302
Wenzel wants to merge 2 commits intointel:mainfrom
Wenzel:feat/repro_continue

Conversation

@Wenzel
Copy link
Contributor

@Wenzel Wenzel commented Mar 4, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +53 to +63
if self.should_auto_continue_repro() {
run_alone(|| {
continue_simulation(0)?;
Ok(())
})?;
} else {
info!(
self.as_conf_object(),
"Repro testcase prepared; waiting for external resume."
);
}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The new repro_auto_continue behavior (skipping continue_simulation and emitting an info log) is not covered by any existing integration test. Consider adding a Simics test that sets @tsffs.repro_auto_continue = False, triggers repro execution, and asserts the run remains stopped (or at least that the "waiting for external resume" log message is emitted) to prevent regressions in repro/debugger workflows.

Copilot uses AI. Check for mistakes.
src/haps/mod.rs Outdated
Comment on lines +91 to +103
if self.should_auto_continue_repro() {
debug!(self.as_conf_object(), "Resuming simulation");

run_alone(|| {
continue_simulation(0)?;
Ok(())
})?;
run_alone(|| {
continue_simulation(0)?;
Ok(())
})?;
} else {
info!(
self.as_conf_object(),
"Repro testcase prepared; waiting for external resume."
);
}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This auto-continue gating block (check + continue_simulation vs info log) is duplicated in multiple handlers in this file. To avoid future divergence (e.g., updating the message or adding additional repro prep steps in one place but not others), consider extracting a small helper on Tsffs (or a local function) that performs the conditional resume + logging in one place.

Copilot uses AI. Check for mistakes.
@Wenzel Wenzel force-pushed the feat/repro_continue branch from 6a4e40b to 701b4a6 Compare March 10, 2026 10:08
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