Skip to content

Conversation

@cjen1-msft
Copy link
Contributor

@cjen1-msft cjen1-msft commented Nov 10, 2025

Following @eddyashton 's comment on #7437 this PR explicitly waits for the sealed secrets to be available before proceeding.

@cjen1-msft cjen1-msft changed the title Cleaner waiting for secrets Wait for sealed secrets Nov 10, 2025
@cjen1-msft cjen1-msft marked this pull request as ready for review November 11, 2025 16:49
@cjen1-msft cjen1-msft requested a review from a team as a code owner November 11, 2025 16:49
Copilot AI review requested due to automatic review settings November 11, 2025 16:49
Copilot finished reviewing on behalf of cjen1-msft November 11, 2025 16:52
Copy link
Contributor

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

This PR addresses a race condition in recovery tests by implementing an explicit wait mechanism to ensure sealed secrets are fully written to disk before attempting to read them during node recovery. The solution adds a new wait_for_sealed_secrets() function that polls node logs to confirm sealed secrets have been flushed to disk.

Key changes:

  • New helper function wait_for_sealed_secrets() that monitors node logs for sealed secret completion messages
  • Strategic placement of wait calls before save_sealed_ledger_secret() operations to prevent reading incomplete files
  • Additional synchronization before ledger rekey operations to ensure network stability

@achamayou achamayou merged commit f13e472 into microsoft:main Nov 13, 2025
17 checks passed
achamayou added a commit that referenced this pull request Nov 13, 2025
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Amaury Chamayou <[email protected]>
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