From bb80d773e27b082246382fdc3d33ddce245d7f8d Mon Sep 17 00:00:00 2001 From: Charles de Beauchesne Date: Mon, 23 Nov 2026 17:49:01 +0100 Subject: [PATCH] test(ffe): ignore upstream Markdown docs when importing fixtures DataDog/ffe-system-test-data#78 added AGENTS.md files inside the scale and scale-json evaluation suites. The updater copied them and then rejected the suites, failing the scheduled Update FFE fixtures workflow. Co-Authored-By: Claude Opus 5.5 --- tests/test_the_test/test_update_ffe_fixtures.py | 2 ++ utils/scripts/update_ffe_fixtures.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/test_the_test/test_update_ffe_fixtures.py b/tests/test_the_test/test_update_ffe_fixtures.py index 73c528e7aa8..c941356161a 100644 --- a/tests/test_the_test/test_update_ffe_fixtures.py +++ b/tests/test_the_test/test_update_ffe_fixtures.py @@ -67,6 +67,7 @@ def test_copy_fixture_snapshot_imports_only_consumed_fixture_data(tmp_path: Path (suite / "cases").mkdir(parents=True) (suite / "ufc-config.json").write_text('{"flags": {"flag": {}}}', encoding="utf-8") (suite / "cases" / "case.json").write_text('[{"flag": "flag"}]', encoding="utf-8") + (suite / "AGENTS.md").write_text("upstream instructions", encoding="utf-8") _write_selection_vectors(source) (source / "flag-selection" / "README.md").write_text("upstream documentation", encoding="utf-8") (source / "flag-selection" / "AGENTS.md").write_text("upstream instructions", encoding="utf-8") @@ -77,6 +78,7 @@ def test_copy_fixture_snapshot_imports_only_consumed_fixture_data(tmp_path: Path assert (snapshot / "evaluation-cases" / "case.json").is_file() for path in (Path("ufc-config.json"), Path("cases/case.json")): assert (snapshot / "evaluation-suites" / "feature" / path).read_bytes() == (suite / path).read_bytes() + assert not (snapshot / "evaluation-suites" / "feature" / "AGENTS.md").exists() assert not (snapshot / "README.md").exists() assert not (snapshot / "AGENTS.md").exists() assert not (snapshot / "precomputed-assignments").exists() diff --git a/utils/scripts/update_ffe_fixtures.py b/utils/scripts/update_ffe_fixtures.py index 6b39a1b105f..b36ef796237 100644 --- a/utils/scripts/update_ffe_fixtures.py +++ b/utils/scripts/update_ffe_fixtures.py @@ -63,6 +63,9 @@ def _copy_entry(source: Path, destination: Path) -> None: destination.mkdir(parents=True, exist_ok=True) for child in sorted(source.iterdir()): + # Upstream documentation, such as a suite's AGENTS.md, is not fixture data. + if child.suffix == ".md" and not child.is_dir(): + continue _copy_entry(child, destination / child.name)