Repository navigation
Fix importer self-test after BiometricPrompt doc link fix - #2028
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the importer self-test expectation update.
No open issues 🎉
What changed in this PR
Updates the importer self-test to match the documentation label corrected in #1997, without changing production logic or documentation XML.
Changes:
- Parameterizes the expected availability sentence in the contract assertion.
- Expects the dotted method label in preserved XML while retaining the official
#label for future-source imports. - Keeps assertions for both defaults and all three safety conditions.
| File | Description |
|---|---|
tools/importer.cs |
Adjusts self-test expectations to distinguish preserved XML from imported source text. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the test-only importer change. The preserved live BiometricPrompt XML is correctly checked using the dot-form method label, while future-source imports retain the # form. Both local-function callers are updated, and the production importer behavior is unchanged.
No blocking issues found in the changed assertions and their input/output integration. Static review only; I did not execute the importer or its self-tests.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
f23f7ef6cd14c3c460d33037bb38cee98c623f4e↑ Full importer self-test passes; Gemini review found no issues.
Cause
#1997 (81f1249, R117) changed
BiometricPrompt#authenticate(...)toBiometricPrompt.authenticate(...)in the existing Builder remarks.TestBiometricAllowedAuthenticatorsRemarksGuardloads that live XML, but its preservation assertion still required the official source's#label.Fix
Pass the expected complete availability sentence to
AssertCompleteContract. The preserved live-XML case requires the dot label; the future-source placeholder import case still requires the unchanged official#label. Both defaults, availability, credential and key-generation conditions remain required. No production logic or documentation XML changes.Checks
dotnet run tools\importer.cs -- --self-test: PASS.git diff --check: PASS.gemini-4-argon, confirmed in localassistant_usage_events; no findings.A separate synthetic repair-fixture failure occurred with this Windows checkout's CRLF raw strings. The same source with LF line endings passes; the repo-root run also passes after local newline normalization. This adds no further Git diff and is not a campaign XML change.