From 40f2cdd84bc99be80c806d8b36d693a4dce7f7cc Mon Sep 17 00:00:00 2001 From: Chris Huber Date: Sat, 27 Jun 2026 20:02:00 -0400 Subject: [PATCH] Remove retired bfb/bac test residue from php-transformer block-format-bridge and block-artifact-compiler are retired packages, so the migration-example smoke branches and the opt-in legacy-comparison maps that pointed at them are dead: the legacy harness can never run against packages that no longer exist. - tests/migration/examples.php: drop the block-format-bridge-wrapper.php and block-artifact-compiler-wrapper.php smoke branches. The test still lints every globbed example and smoke-calls the live html-to-blocks and SSI adapter examples. - tests/parity/run.php: drop the format_bridge.normalize / artifact_compiler.compile entries (and the bfb_/bac_ callables and retired-repo bootstraps) from legacyRepoForOperation, legacyCallableForOperation, and legacyBootstrapForRepo. The current artifact_compiler.compile and format_bridge.normalize parity fixtures still run against the in-repo ArtifactCompiler/FormatBridge; only the external legacy-package comparison path is removed. No php-transformer-parity-fixture.schema.json exists and no JSON schema carries a module enum with the retired values, so there was no schema residue to remove. Co-Authored-By: Claude Opus 4.8 (1M context) --- php-transformer/tests/migration/examples.php | 35 -------------------- php-transformer/tests/parity/run.php | 6 +--- 2 files changed, 1 insertion(+), 40 deletions(-) diff --git a/php-transformer/tests/migration/examples.php b/php-transformer/tests/migration/examples.php index af0ddf7a..8913bf3f 100644 --- a/php-transformer/tests/migration/examples.php +++ b/php-transformer/tests/migration/examples.php @@ -71,41 +71,6 @@ continue; } - if ( 'block-format-bridge-wrapper.php' === $name ) { - $smoke( - $name, - $example, - $assertions . <<<'PHP' -$serialized = bfb_convert( '

Hello

', 'html', 'blocks' ); -$assert( str_contains( $serialized, '' ), 'BAC wrapper compiles generated HTML' ); -$fragment = bac_compile_fragment( '

Fragment

', 'fragment', 'html' ); -$assert( isset( $fragment['schema'] ), 'BAC fragment wrapper returns result envelope' ); -$summary = bac_summarize_result( $compiled ); -$assert( isset( $summary['diagnostic_count'] ), 'BAC summary wrapper returns counts' ); -PHP - ); - continue; - } - if ( 'static-site-importer-transformer-adapter.php' === $name ) { $smoke( $name, diff --git a/php-transformer/tests/parity/run.php b/php-transformer/tests/parity/run.php index 5325cf59..e97baed4 100644 --- a/php-transformer/tests/parity/run.php +++ b/php-transformer/tests/parity/run.php @@ -415,8 +415,6 @@ function legacyRepoForOperation(string $operation): string { return match ( $operation ) { 'html_transformer.transform' => 'html-to-blocks-converter', - 'format_bridge.normalize' => 'block-format-bridge', - 'artifact_compiler.compile' => 'block-artifact-compiler', default => '', }; } @@ -425,8 +423,6 @@ function legacyCallableForOperation(string $operation): string { return match ( $operation ) { 'html_transformer.transform' => 'html_to_blocks_convert', - 'format_bridge.normalize' => 'bfb_normalize', - 'artifact_compiler.compile' => 'bac_compile_website_artifact', default => '', }; } @@ -434,7 +430,7 @@ function legacyCallableForOperation(string $operation): string function legacyBootstrapForRepo(string $repo): string { return match ( $repo ) { - 'html-to-blocks-converter', 'block-format-bridge', 'block-artifact-compiler' => 'library.php', + 'html-to-blocks-converter' => 'library.php', default => '', }; }