From 847f399886b51bac81765e717ecc22710ca46805 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 15 Aug 2026 14:33:32 -0500 Subject: [PATCH] fix: correct hardcoded generated-image counts after Task 3 regression Task 3 raised assets/images/generated/ from 76 to 81 files and updated build-responsive-images.sh's count guard, but missed four other hardcoded 76/62/14 references in the smoke suite and README. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 2 +- tests/smoke/visual-integration.test.mjs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 41a8622..4280327 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ responsive_output=$(mktemp -d "${TMPDIR:-/tmp}/chrnx-responsive.XXXXXX") The rebuild rejects symlinks, nested paths, nonexistent paths, and destinations outside the canonical system temporary directory. The automated smoke test -byte-compares all 76 generated files: 62 binary derivatives and 14 manifests. +byte-compares all 81 generated files: 66 binary derivatives and 15 manifests. The inventory has eleven portrait families at 384 px and 768 px, plus three landscape background families (Podcast, About, and Projects) at 384 px, 768 px, and 1536 px. Every 384/768 derivative is diff --git a/tests/smoke/visual-integration.test.mjs b/tests/smoke/visual-integration.test.mjs index 89335db..0282564 100644 --- a/tests/smoke/visual-integration.test.mjs +++ b/tests/smoke/visual-integration.test.mjs @@ -140,7 +140,7 @@ test( 'media and review documentation matches the current inventory and cleanup const readme = read( 'README.md' ); const plan = read( 'docs/superpowers/plans/2026-08-13-music-podcast-grunge-stages.md' ); - assert.match( readme, /76 generated files: 62 binary derivatives and 14 manifests/ ); + assert.match( readme, /81 generated files: 66 binary derivatives and 15 manifests/ ); assert.match( readme, /eleven portrait families at 384 px and 768 px/ ); assert.match( readme, /three\s+landscape background families \(Podcast, About, and Projects\) at 384 px, 768 px,\s+and 1536 px/ ); for ( const budget of [ '160 KiB', '260 KiB', '400 KiB', '340 KiB', '620 KiB', '3 MiB' ] ) { @@ -469,7 +469,7 @@ test( 'all approved responsive media rebuild byte-identically within payload bou assert.deepEqual( readdirSync( external ), [ 'sentinel' ] ); execFileSync( './scripts/build-responsive-images.sh', [ output ], { cwd: new URL( '../..', import.meta.url ) } ); const names = readdirSync( output ).sort(); - assert.equal( names.length, 76 ); + assert.equal( names.length, 81 ); for ( const name of [ 'alter-ego-gaming-half-body-384.avif', 'alter-ego-gaming-half-body-384.webp', @@ -684,7 +684,7 @@ printf 'partial-build-%s\n' "$count" > "$output" } } ); -test( 'responsive promotion failure restores all 76 prior files', () => { +test( 'responsive promotion failure restores all 81 prior files', () => { const output = mkdtempSync( join( tmpdir(), 'chrnx-promotion-output-' ) ); const fakeBin = mkdtempSync( join( tmpdir(), 'chrnx-promotion-bin-' ) ); const external = mkdtempSync( join( tmpdir(), 'chrnx-promotion-external-' ) ); @@ -697,7 +697,7 @@ test( 'responsive promotion failure restores all 76 prior files', () => { try { execFileSync( './scripts/build-responsive-images.sh', [ output ], { cwd: projectRoot } ); const published = new Map( readdirSync( output ).map( ( name ) => [ name, sha256( join( output, name ) ) ] ) ); - assert.equal( published.size, 76 ); + assert.equal( published.size, 81 ); writeFileSync( sentinel, 'external-sentinel' ); const sentinelHash = sha256( sentinel ); const realMv = execFileSync( '/bin/sh', [ '-c', 'command -v mv' ], { encoding: 'utf8' } ).trim();