feat: use new snap keyring v2/v1 split#33405
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|
Description
Using the new explicit split from v1/v2 in the
SnapKeyring(v2).This
SnapKeyringused to inherit from v1, so it was making migration easier, but was also keeping some old patterns in place that we wanted to replace.Now, this keyring "composes" a v1 instance instead and make some v1 underlying call when possible.
This allows v2-only Snaps to be used as well now (since the old inheritance was making some old methods to be incompatible with new ones, e.g different transport or different function signatures).
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist