Skip to content

Commit 5bf49c4

Browse files
Restore the official YAML conformance archive
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 8cac127 commit 5bf49c4

5 files changed

Lines changed: 36 additions & 11 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
*.png binary
1414
*.dll binary
1515
*.so binary
16-
*.zip binary
16+
*.zip binary -eol

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@ does not fit the data.
163163

164164
## Conformance corpus
165165

166-
The offline test gate runs the complete released `yaml-test-suite` data corpus
167-
at commit `6ad3d2c62885d82fc349026c136ef560838fdf3d` (generated from source
168-
commit `45db50ae`). The pinned archive contains 402 inputs:
166+
The offline test gate runs the latest official `yaml-test-suite` source release,
167+
`v2022-01-17`, at commit `45db50aecf9b1520f8258938c88f396e96f30831`.
168+
Its `data-2022-01-17` export is pinned at commit
169+
`6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f` with archive SHA-256
170+
`47C173AFFEB480517B30FB77DC8C76FD48609B9B65DD1C1D3D0D0BAEE48D6AA9`.
171+
The archive contains 402 inputs:
169172

170173
| Surface | Pass | PolicyDifference | Fail | NotApplicable |
171174
| --- | ---: | ---: | ---: | ---: |

tests/Conformance.Tests.ps1

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,19 @@ param()
1313

1414
BeforeAll {
1515
$archivePath = Join-Path $PSScriptRoot 'fixtures\yaml-test-suite\yaml-test-suite-data-2022-01-17.zip'
16+
$sourcesPath = Join-Path $PSScriptRoot 'fixtures\yaml-test-suite\SOURCES.txt'
1617
$suitePath = Join-Path $TestDrive 'yaml-test-suite'
1718
Expand-Archive -LiteralPath $archivePath -DestinationPath $suitePath
19+
$suiteRoots = @(
20+
Get-ChildItem -LiteralPath $suitePath -Directory
21+
)
22+
if ($suiteRoots.Count -ne 1) {
23+
throw "Expected one release archive root, but found $($suiteRoots.Count)."
24+
}
25+
$suiteDataPath = $suiteRoots[0].FullName
1826
$suiteResults = @(
1927
& (Join-Path $PSScriptRoot 'tools\Invoke-YamlTestSuite.ps1') `
20-
-Path $suitePath `
28+
-Path $suiteDataPath `
2129
-CompareJson `
2230
-CompareEvents `
2331
-CompareOutYaml `
@@ -28,10 +36,18 @@ BeforeAll {
2836
Describe 'Released yaml-test-suite corpus accounting' {
2937
It 'uses the pinned unmodified release archive' {
3038
(Get-FileHash -LiteralPath $archivePath -Algorithm SHA256).Hash |
31-
Should -Be 'DCC1F037B13F6C3032D5190C447B6A6EF5560738A4C104F29B4243B0AB8F8029'
39+
Should -Be '47C173AFFEB480517B30FB77DC8C76FD48609B9B65DD1C1D3D0D0BAEE48D6AA9'
3240
$suiteResults.Count | Should -Be 402
3341
}
3442

43+
It 'pins the latest official source and data release attribution' {
44+
$sources = Get-Content -LiteralPath $sourcesPath -Raw
45+
46+
$sources | Should -Match 'Latest source release:\s+v2022-01-17'
47+
$sources | Should -Match '45db50aecf9b1520f8258938c88f396e96f30831'
48+
$sources | Should -Match '6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f'
49+
}
50+
3551
It 'accounts for syntax recognition and representation-key load policy' {
3652
@($suiteResults | Where-Object SyntaxResult -EQ 'Pass').Count | Should -Be 400
3753
@($suiteResults | Where-Object SyntaxResult -EQ 'PolicyDifference').Count |

tests/fixtures/yaml-test-suite/SOURCES.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,18 @@ See LICENSE.txt for the upstream MIT license.
2323

2424
The complete released data corpus is vendored as:
2525
yaml-test-suite-data-2022-01-17.zip
26-
Data commit:
27-
6ad3d2c62885d82fc349026c136ef560838fdf3d
28-
Generated from source commit:
29-
45db50ae
26+
Latest source release:
27+
v2022-01-17 (verified 2026-07-23)
28+
Source release commit:
29+
45db50aecf9b1520f8258938c88f396e96f30831
30+
Data release:
31+
data-2022-01-17
32+
Data release commit:
33+
6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f
34+
Archive source:
35+
https://github.com/yaml/yaml-test-suite/archive/refs/tags/data-2022-01-17.zip
3036
Archive SHA-256:
31-
DCC1F037B13F6C3032D5190C447B6A6EF5560738A4C104F29B4243B0AB8F8029
37+
47C173AFFEB480517B30FB77DC8C76FD48609B9B65DD1C1D3D0D0BAEE48D6AA9
3238

3339
The archive contains 402 released inputs in 352 case directories. It is
3440
consumed locally by tests/tools/Invoke-YamlTestSuite.ps1 without network
Binary file not shown.

0 commit comments

Comments
 (0)