fix flakey test - #3104
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE HIGH scrutiny: account is under 90 days old, but has write permission and substantial merged subtensor work; author and committer match, with no Gittensor association found. Branch: fix-flakey-unittest → release-448. The sole change replaces a network- and randomness-dependent encryption test setup with a deterministic SCALE-encoded FindingsNo findings. ConclusionNo malicious behavior or security vulnerability was found in this small, deterministic test-only change. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 HIGH scrutiny: Gittensor association UNKNOWN; account is under 90 days old, but has repository write permission and substantial merged subtensor contributions. PR body was empty/trivial; the Auditor has auto-filled it. Please review. The deterministic SCALE-encoded fixture directly exercises
FindingsNo findings. ConclusionThis is a minimal, correct test-only change that removes a source of flakiness without weakening the behavior under test. |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
Motivation
The
inner_ciphertext_unwraps_user_data_envelopeunit test constructed its fixture through randomized timelock encryption even though it only tests SCALE envelope decoding. That unnecessary encryption step made the test nondeterministic and potentially flaky.Changes
UserDatafixture directly.inner_ciphertextreturns the embedded ciphertext bytes.Behavioral impact
This changes test code only. Production behavior, runtime state, migrations, and
spec_versionare unaffected.Testing
git diff --checkpassed.cargo fmt --check --allcould not run in the review environment because rustup's directory was read-only.