Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Verify a workset only exists along with a reboot context #378

Merged
6 commits merged into from
Jan 4, 2021

Conversation

bmc-msft
Copy link
Contributor

Adds the following:

  1. Serializes a workset to disk during setup.
  2. Upon deserializing a RebootContext, delete the file from disk (We support rebooting once and only once)
  3. Check if a workset exists with a RebootContext
    1. If True, continuing processing
    2. if False, mark the tasks & node as "Done" with appropriate errors via:
      1. send WorkerEvent::Done events for each of the tasks in the work set
      2. send StateUpdateEvent::Done for the node

@bmc-msft
Copy link
Contributor Author

This passed basic integration tests, but none of those do a reboot.

This PR should update the integration tests to one of the tests to enable reboot_after_setup.

src/agent/onefuzz-supervisor/src/work.rs Outdated Show resolved Hide resolved
src/agent/onefuzz-supervisor/src/work.rs Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Jan 4, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit d038cca into microsoft:main Jan 4, 2021
@bmc-msft bmc-msft deleted the check-existing-worksets branch January 20, 2021 11:11
@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

agent-supervisor claims additional work after failing
3 participants