-
Notifications
You must be signed in to change notification settings - Fork 18
[ALPHA-P1] Single node restart test (NodeId stability) #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
[ALPHA-P1] Single node restart test (NodeId stability) #834
Conversation
- Install libudev-dev, pkg-config, libssl-dev, libdbus-1-dev - Add Rust toolchain with clippy component - Fixes Clippy build failure: libudev-sys dependency missing
There was a problem hiding this 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 updates the orchestrator restart determinism integration tests to align with the new encrypted seed storage format, ensuring NodeId and identity stability across restarts while enforcing that key files remain seedless. It also wires in the necessary dependencies and CI setup (SonarCloud workflow environment) to support these changes.
Changes:
- Refactored
test_orchestrator_restart_determinismhelpers to store the master seed in a separate, encrypted JSON record (Argon2 + ChaCha20) instead of in the private key file, and updated reload logic accordingly. - Extended restart/seed persistence/DHT consistency tests to verify that the master seed is loaded from the encrypted seed file, the key file no longer contains seed material, and the encrypted seed file remains stable across restarts.
- Added
argon2,base64, andranddependencies to theintegration-testscrate and updated the SonarCloud GitHub Actions workflow to install system dependencies and a Rust toolchain withclippy.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/integration/test_orchestrator_restart_determinism.rs |
Introduces encrypted seed storage helpers and adjusts identity reload and determinism tests to operate on a seedless key file plus a stable, encrypted seed file while checking NodeId/DID consistency. |
tests/integration/Cargo.toml |
Adds cryptographic and utility dependencies (argon2, base64, rand) needed by the new encrypted seed test helpers. |
Cargo.lock |
Locks in the new integration-test dependencies (argon2, base64 0.22.1, rand 0.8.5) to concrete versions. |
.github/workflows/sonarcloud.yml |
Ensures the SonarCloud job installs required system libraries and a Rust toolchain (with clippy) so Rust analysis can run reliably. |
|


Summary
Testing
Relates to #68