Skip to content

chore(cfc): remove orphaned snapshots and group negative lit tests - #1908

Open
volsa wants to merge 2 commits into
masterfrom
vosa/PRG-4757-1
Open

chore(cfc): remove orphaned snapshots and group negative lit tests#1908
volsa wants to merge 2 commits into
masterfrom
vosa/PRG-4757-1

Conversation

@volsa

@volsa volsa commented Sep 8, 2026

Copy link
Copy Markdown
Member

Problem: Ten tests__integration__cfc__ir__* snapshots survived the removal of the plc_xml integration tests in #1807 and no test reads them anymore. The CFC lit tests that assert diagnostics are spread across blocks/ and variables/.

Solution: Delete the orphaned snapshots and group the negative lit tests under tests/lit/cfc/validation, where the follow-up location diagnostics tests will live.

Refs: PRG-4757

@volsa volsa changed the title vosa/PRG 4757 1 chore(cfc): remove orphaned snapshots and group negative lit tests Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Build Artifacts

🐧 Linux

Artifact Link Size
deb-aarch64 Download 30.8 MB
plc-aarch64 Download 43.4 MB
deb-x86_64 Download 38.4 MB
schema Download 0.0 MB
stdlib Download 32.4 MB
plc-x86_64 Download 43.5 MB

From workflow run

🪟 Windows

Artifact Link Size
stdlib.lib Download 4.0 MB
stdlib.dll Download 0.1 MB
plc.exe Download 38.3 MB

From workflow run

@volsa
volsa marked this pull request as ready for review September 8, 2026 17:07
@volsa
volsa requested review from ghaith and mhasel September 8, 2026 17:07
volsa and others added 2 commits September 10, 2026 18:24
Problem: ten snapshots under tests/integration/snapshots belong to CFC tests that were deleted with the plc_xml crate, so nothing reads them.

Solution: delete them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Problem: the CFC lit tests that assert a diagnostic are scattered across the feature folders, next to the runtime tests.

Solution: gather them under tests/lit/cfc/validation so location and diagnostic checks live in one place.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

1 finding in 1m 29s for $0.03 between f216425 (master) and 0a0e41c (vosa/PRG-4757-1):

  • P3 compiler/plc_cfc/fixtures/blocks/invalid/function_inout_negated/README.md:7: This README still points to tests/lit/cfc/blocks/function_inout_negated, but the change moves that test to tests/lit/cfc/validation/function_inout_negated. Following the documented path now lands on a nonexistent directory and misdirects maintainers trying to run the regression.

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