Skip to content

Drop per-process exitcode files#2906

Merged
sporksmith merged 2 commits intoshadow:mainfrom
sporksmith:drop-exitcode
May 4, 2023
Merged

Drop per-process exitcode files#2906
sporksmith merged 2 commits intoshadow:mainfrom
sporksmith:drop-exitcode

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

The semantics of these were a bit awkward (e.g. 128+signum for death-by-signal; empty for still-running), and the per-process expected_final_state attribute replaces their primary use-case.

If we decide to bring these back, we should consider a richer format; maybe just the serialized actual process final state. e.g. "running", "{exited: 0}", "{signaled: SIGINT}", ...

@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label May 4, 2023
The semantics of these were a bit awkward (e.g. 128+signum for
death-by-signal; empty for still-running), and the per-process
`expected_final_state` attribute replaces their primary use-case.

If we decide to bring these back, we should consider a richer format;
maybe just the serialized actual process final state. e.g. "running",
"{exited: 0}", "{signaled: SIGINT}", ...
@github-actions github-actions bot added the Component: Documentation In-repository documentation, under docs/ label May 4, 2023
@sporksmith sporksmith marked this pull request as ready for review May 4, 2023 14:57
@sporksmith sporksmith added this to the Code health and maintenance milestone May 4, 2023
We no longer create any new files after Process creation.
@sporksmith sporksmith requested a review from stevenengler May 4, 2023 15:30
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler left a comment

Choose a reason for hiding this comment

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

I thought we had tests that checked that processes exited correctly by reading the exitcode file, but I guess not.

@sporksmith
Copy link
Copy Markdown
Contributor Author

I thought we had tests that checked that processes exited correctly by reading the exitcode file, but I guess not.

I replaced those with using expected_final_state in cb06833

@sporksmith sporksmith merged commit a2c0978 into shadow:main May 4, 2023
@sporksmith sporksmith deleted the drop-exitcode branch May 4, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Documentation In-repository documentation, under docs/ Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants