Skip to content

fix(orchestrator): mock starting processes in upgrade unit tests#9528

Draft
pierugo-dfinity wants to merge 2 commits intomasterfrom
pierugo/orchestrator/mock-replica-and-manageboot
Draft

fix(orchestrator): mock starting processes in upgrade unit tests#9528
pierugo-dfinity wants to merge 2 commits intomasterfrom
pierugo/orchestrator/mock-replica-and-manageboot

Conversation

@pierugo-dfinity
Copy link
Contributor

No description provided.

…tests (#9521)

This PR deflakes `//rs/orchestrator:orchestrator_test` by mocking the
process management of the orchestrator such that no process is actually
spawned when the upgrade loop supposedly starts the replica.
To do so, this moves the struct `ProcessManager` to a trait that exposes
the public functions and leaves the implementation to
`ProcessManagerImpl`. Now, a `FakeProcessManager` can be used, whose
implementation is keeping track of a boolean mocking whether the process
is running or not.

This was mostly AI-generated, supervised and reviewed by me.
@github-actions github-actions bot added the fix label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant