Fix reporting skill index expectation (#185)

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Jesper Schulz-Wedde 2026-09-15 10:45:35 +02:00 • committed by GitHub
parent b545b22fb9
commit d24dc7b14b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,6 +91,7 @@ try {
'microsoft/skills/review/al-testing-review.md', 'microsoft/skills/review/al-testing-review.md',
'microsoft/skills/review/al-data-modeling-review.md', 'microsoft/skills/review/al-data-modeling-review.md',
'microsoft/skills/review/al-query-review.md', 'microsoft/skills/review/al-query-review.md',
'microsoft/skills/review/al-reporting-review.md',
'microsoft/skills/review/al-appsource-review.md', 'microsoft/skills/review/al-appsource-review.md',
'microsoft/skills/review/al-telemetry-review.md' 'microsoft/skills/review/al-telemetry-review.md'
) )
@ -99,7 +100,7 @@ try {
throw "Expected exactly one al-code-review record, found $($review.Count)." throw "Expected exactly one al-code-review record, found $($review.Count)."
} }
if ((@($review[0].subSkills) -join "`n") -cne ($expectedLeaves -join "`n")) { if ((@($review[0].subSkills) -join "`n") -cne ($expectedLeaves -join "`n")) {
throw 'al-code-review subSkills did not preserve the declared 16-leaf order.' throw 'al-code-review subSkills did not preserve the declared 17-leaf order.'
} }
foreach ($leafPath in $expectedLeaves) { foreach ($leafPath in $expectedLeaves) {
$leaf = @($skills | Where-Object path -ceq $leafPath) $leaf = @($skills | Where-Object path -ceq $leafPath)
@ -237,4 +238,4 @@ finally {
Remove-Item -LiteralPath $tmp -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -LiteralPath $tmp -Recurse -Force -ErrorAction SilentlyContinue
} }
Write-Output 'Skill-index check PASSED: deterministic, schema-valid, and all 16 review leaves preserved in order.' Write-Output 'Skill-index check PASSED: deterministic, schema-valid, and all 17 review leaves preserved in order.'