From fcddfa218c4ad6d6f7deef2e06859fd92f43dd4b Mon Sep 17 00:00:00 2001 From: docushell-admin Date: Fri, 3 Jul 2026 00:21:01 +0530 Subject: [PATCH] Pin OpenDataLoader fixture line endings Signed-off-by: docushell-admin --- .gitattributes | 1 + .github/scripts/test_determinism_workflow.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.gitattributes b/.gitattributes index 9db6f1d..e84f9d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ packages/npm/ethos-pdf/vendor/ethos-* binary +fixtures/foreign/opendataloader/real/opendataloader-output.json text eol=lf diff --git a/.github/scripts/test_determinism_workflow.py b/.github/scripts/test_determinism_workflow.py index 1c96f01..8202968 100644 --- a/.github/scripts/test_determinism_workflow.py +++ b/.github/scripts/test_determinism_workflow.py @@ -24,7 +24,11 @@ ROOT = Path(__file__).resolve().parents[2] WORKFLOW = ROOT / ".github/workflows/determinism.yml" +GIT_ATTRIBUTES = ROOT / ".gitattributes" REQUIRED_MATRIX_OS = {"macos-14", "ubuntu-latest", "windows-latest"} +PINNED_OPENDATALOADER_FIXTURE_ATTRIBUTE = ( + "fixtures/foreign/opendataloader/real/opendataloader-output.json text eol=lf" +) def workflow_text() -> str: @@ -39,6 +43,11 @@ def matrix_os_values(text: str) -> set[str]: class DeterminismWorkflowTests(unittest.TestCase): + def test_hashed_opendataloader_fixture_is_pinned_to_lf(self) -> None: + attributes = GIT_ATTRIBUTES.read_text(encoding="utf-8").splitlines() + + self.assertIn(PINNED_OPENDATALOADER_FIXTURE_ATTRIBUTE, attributes) + def test_matrix_includes_gate_zero_platforms_and_windows_preflight(self) -> None: self.assertEqual(matrix_os_values(workflow_text()), REQUIRED_MATRIX_OS)