Skip to content

Remove retired bfb/bac test residue from php-transformer#256

Merged
chubes4 merged 1 commit into
trunkfrom
cook/php-transformer-finish-bfb-bac-residue
Jun 28, 2026
Merged

Remove retired bfb/bac test residue from php-transformer#256
chubes4 merged 1 commit into
trunkfrom
cook/php-transformer-finish-bfb-bac-residue

Conversation

@chubes4

@chubes4 chubes4 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

What

Removes the remaining retired block-format-bridge (bfb) / block-artifact-compiler (bac) dead references from the php-transformer test surface. Complements #234 (which retires the bfb/bac consumer-PR docs); together they finish removing bfb/bac from the package.

Changes

  • tests/migration/examples.php — removed the two dead smoke branches for the retired block-format-bridge-wrapper.php / block-artifact-compiler-wrapper.php examples (the bfb_* / bac_* assertions). The test still globs+lints every example file and smoke-calls the live html-to-blocks-converter and static-site-importer adapter examples.
  • tests/parity/run.php — removed the retired entries from the three BLOCKS_ENGINE_PARITY_LEGACY comparison maps (legacyRepoForOperation, legacyCallableForOperation, legacyBootstrapForRepo). Only the external legacy-package comparison path was removed — it could never run since the packages are gone. The 26 live artifact_compiler.compile + 1 format_bridge.normalize fixtures exercise the in-repo src/ArtifactCompiler/src/FormatBridge and are unaffected.
  • (The parity-fixture schema enum item was a no-op — no such schema file exists in the repo.)

Verification

  • composer test + composer parity128 fixtures green; test:migration:examples and the opt-in test:migration:legacy-parity both pass (legacy comparisons skip gracefully).
  • Re-grep of the touched surfaces and repo-wide (excluding vendor + the out-of-scope docs/consumer-prs/) → zero block-format-bridge/block-artifact-compiler/bfb_/bac_ matches.
  • Independent adversarial verify: corpus fallback output byte-identical to trunk.

AI assistance

  • AI assistance: Yes
  • Tool(s): Claude Code (Claude Opus 4.8, 1M context) — multi-agent workflow
  • Used for: Identifying and removing the dead references + verification under human review.

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) <noreply@anthropic.com>
@chubes4 chubes4 merged commit 3fb9a29 into trunk Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant