Repository navigation
Description
Problem
ci-build-and-preview.yml parses the skipped count into the job summary table but never acts on it:
# Pass/fail is keyed off the test runner's exit code, not our ability to parse
# its output — a runner output format change should never fail CI on its own.
if [ "$PROJ_EXIT" -eq 0 ]; then ICON="✅"; else ICON="❌"; OVERALL_EXIT=1; fiA run where 190 of 644 tests skipped is a green ✅ with a number in a column nobody reads.
This already happened
IconGlyphReferenceTests (#117) resolves the icon package version by reading the app csproj, and
skips gracefully when the package cannot be located — deliberately, so a fresh machine or an
unrestored version bump does not fail red. When #62 moved the app project from
src/AniSprinkles.csproj to src/AniSprinkles/AniSprinkles.csproj, that lookup silently missed and
all 190 glyph cases turned into skips. Locally the count went Passed: 644 → Passed: 413, Skipped: 190, which is only obvious if you happen to be watching the number.
It was caught by eye. CI would have reported ✅.
That is the precise hole #117 was written to close — a check that quietly stops checking — so it is
worth closing one level up rather than only in that test.
Proposal
Fail the job when skips appear, with an explicit opt-out:
- If
Sis parsed and greater than an allowed threshold (default0), setOVERALL_EXIT=1and
emit::error::naming the project and count. - Keep the existing "unparseable output must never fail CI on its own" rule — only act when
PARSED=1, so a runner format change still cannot break the build. - If a genuinely environment-dependent skip is ever wanted, the threshold is a single number to
raise with a comment saying why.
Alongside it, a minimum test count. The same incident dropped the total by 231, and a
stale-assembly run during this work reported Total: 557 against a 644-test suite. Both are
invisible today. Agreed during planning to do this as a single floor on the summed Total across
projects, checked after the per-project loop, rather than a per-project mapping — there is only one
test project today and the sum is what the incident moved. Baseline measured 2026-08-23:
806 passed, 0 skipped, so the floor starts at 800.
One parsing gotcha for the skip check: in the new-runner branch S falls back to the literal ?
(ci-build-and-preview.yml:111) while PARSED is still set to 1, so the comparison needs a
numeric guard before it. The VSTest branch defaults to 0 instead — the two are not symmetric.
Acceptance
- A run with any skipped test fails, naming the project and the count.
- Deliberately skipping a test (
Assert.Skip) fails CI until the threshold is raised with a reason. - A run whose summed test total falls below the floor fails, naming the total and the floor.
- Unparseable runner output still cannot fail the job on its own.
Related
- Add a test that validates x:Static icon glyph references in XAML #117 — the test whose graceful skip is the reason this matters.
- Extract AniSprinkles.Core class library to unblock PageModel/Services unit tests #62 — the project move that triggered the incident.
Activity
zhollis21 commentedon Aug 23, 2026
Verification notes (checked against
origin/main@ 57d4506):.github/workflows/ci-build-and-preview.yml:127keys the icon andOVERALL_EXIToffPROJ_EXITalone;Sis parsed at:111/:117and only ever printed.Sfalls back to the literal?(
:111,S="${S:-?}") whilePARSEDis still set to1(:113). A bare[ "$S" -gt "$MAX" ]would error on that input, so the check needs a numeric guard(
[[ "$S" =~ ^[0-9]+$ ]]) before comparing. The VSTest branch defaults to0instead (:117),so the two branches are not symmetric.
ResolvePackageVersionnow scans every csprojunder
src/rather than naming one path(
tests/AniSprinkles.UnitTests/IconGlyphReferenceTests.cs:256). The gracefulAssert.SkipWhenat
:152remains, which is what keeps this issue live.[Fact]/[Theory]attributes acrosstests/AniSprinkles.UnitTests/(attribute count, not expanded[InlineData]cases).findover the repo (:81), so any threshold needs to beper-project or a single global value, not a hardcoded project name.
zhollis21 commentedon Aug 23, 2026
Updated during planning: the minimum test count moved from "worth considering" to agreed scope, as a single floor on the summed
Totalacross projects rather than per-project. Floor starts at800against a measured baseline of 806 passed / 0 skipped. Also recorded theSnumeric-guard gotcha in the proposal, since it is easy to write the threshold check without it and get a shell error instead of a clean failure.Adult-content commit timing, token redaction, AppSettings seam, and C…
Adult-content commit timing, token redaction, AppSettings seam, and C…