From b922358a822ff1e60cfa6467ee72adde8f7b253b Mon Sep 17 00:00:00 2001 From: Doug Fennell Date: Sun, 19 Oct 2025 15:33:40 -0500 Subject: [PATCH 1/3] conformance(action): expose totals and pass-rate as outputs --- .github/actions/rdcp-conformance/action.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/actions/rdcp-conformance/action.yml b/.github/actions/rdcp-conformance/action.yml index 2009e7a..451fb17 100644 --- a/.github/actions/rdcp-conformance/action.yml +++ b/.github/actions/rdcp-conformance/action.yml @@ -15,6 +15,23 @@ inputs: required: false default: reports/rdcp.discovery.json +outputs: + tests-passed: + description: Number of tests passed + value: ${{ steps.set.outputs.tests_passed }} + tests-total: + description: Number of tests + value: ${{ steps.set.outputs.tests_total }} + pass-rate: + description: Pass rate percent (rounded) + value: ${{ steps.set.outputs.pass_rate }} + suites-passed: + description: Number of suites passed + value: ${{ steps.set.outputs.suites_passed }} + suites-total: + description: Number of suites + value: ${{ steps.set.outputs.suites_total }} + runs: using: composite steps: @@ -45,6 +62,26 @@ runs: shell: bash run: | node scripts/conformance-badges.mjs || echo 'Badge generation skipped' + - name: Set outputs from results + id: set + shell: bash + run: | + node -e " + const fs=require('fs'); + let r={summary:{}}; + try{ r=JSON.parse(fs.readFileSync('reports/rdcp.results.json','utf8')); }catch(e){} + const s=r.summary||{}; + const p=Number(s.passed||0); + const t=Number(s.total||0); + const sp=Number(s.suitesPassed||0); + const st=Number(s.suitesTotal||0); + const rate=t?Math.round((p/t)*100):0; + console.log('tests_passed='+p); + console.log('tests_total='+t); + console.log('pass_rate='+rate); + console.log('suites_passed='+sp); + console.log('suites_total='+st); + " >> "$GITHUB_OUTPUT" - name: Upload conformance reports uses: actions/upload-artifact@v4 with: From 1ae22b5bb7609427be2f1c5ff21c207bb2cb4444 Mon Sep 17 00:00:00 2001 From: Doug Fennell Date: Sun, 19 Oct 2025 17:04:19 -0500 Subject: [PATCH 2/3] docs(conformance): update wiki submodule pointer (Home + Sidebar) --- .wiki-edit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.wiki-edit b/.wiki-edit index 99b0ff2..94d69e4 160000 --- a/.wiki-edit +++ b/.wiki-edit @@ -1 +1 @@ -Subproject commit 99b0ff2e056aec07aa893bc55ee220ee1b409b29 +Subproject commit 94d69e4f2fde4726076db99afc879dbd97083152 From 99fe2e9ac7199cc62606ecda9d1af92a9d8a9f6d Mon Sep 17 00:00:00 2001 From: Doug Fennell Date: Sun, 19 Oct 2025 17:13:14 -0500 Subject: [PATCH 3/3] docs(wiki): update submodule pointer (Home + Sidebar Conformance links) --- .wiki-edit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.wiki-edit b/.wiki-edit index 94d69e4..d909e07 160000 --- a/.wiki-edit +++ b/.wiki-edit @@ -1 +1 @@ -Subproject commit 94d69e4f2fde4726076db99afc879dbd97083152 +Subproject commit d909e0713f92b204be110f736345db498025135b