Skip to content

fix: tee interactive job stdout/stderr to the log file#123

Merged
AlexJones0 merged 2 commits intolowRISC:masterfrom
AlexJones0:tee_interactive
Mar 30, 2026
Merged

fix: tee interactive job stdout/stderr to the log file#123
AlexJones0 merged 2 commits intolowRISC:masterfrom
AlexJones0:tee_interactive

Conversation

@AlexJones0
Copy link
Copy Markdown
Contributor

This PR is the fourth of a series of PRs to rewrite DVSim's core scheduling functionality (Scheduler, status display, launchers / runtime backends) to use an async design, with key goals of long term maintainability and extensibility.

This PR just contains an unrelated fix found during the rewrite process. Currently, interactive jobs with pass/fail regex patterns will always fail because no logs are created for jobs that are run interactively. For the local launcher, this PR adds some additional subprocess piping logic to tee the stdout/stderr contents to the log file, so that the standard _check_status logic can run as normal. It also does a small refactor on the JobSpec and launchers.

See the commit messages for more information.

This attribute does not need to be part of the `JobSpec`, it was only
inherited because it was originally on a part of the `Deploy` that was
being used by the launcher.

This attribute is only used in the `Local` and `nc` launchers to
determine whether to apply the timeout or not. But given that the
timeout is only used in these instances, it suffices to instead remove
the timeout for jobs that would previously have had this attribute.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Currently, interactive jobs with pass/fail regex patterns will always
fail because no logs are created for jobs run interactively. For the
local launcher, we add some additional subprocess piping logic to tee
the stdout/stderr contents to the log file so that the standard
`_check_status` logic can run as normal.

Aside: this logic can be cleaned up somewhat, but the main aim of this
commit is fixing the bug, as it is intended that this local launcher
will be replaced entirely in the future and this code will be removed.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
@AlexJones0 AlexJones0 added this pull request to the merge queue Mar 30, 2026
Merged via the queue into lowRISC:master with commit 6d1f83c Mar 30, 2026
6 checks passed
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.

3 participants