Skip to content

test(job_integrity): grow fixture content above MIN_ARTIFACT_BYTES#36

Merged
racmac57 merged 1 commit into
mainfrom
fix/test-job-integrity-fixture-sizes
Apr 14, 2026
Merged

test(job_integrity): grow fixture content above MIN_ARTIFACT_BYTES#36
racmac57 merged 1 commit into
mainfrom
fix/test-job-integrity-fixture-sizes

Conversation

@racmac57
Copy link
Copy Markdown
Owner

Summary

Three tests in tests/test_job_integrity.py failed deterministically on every CI run because the fixture content was smaller than the validator's minimum size:

  • TestValidation.test_validate_complete_job
  • TestIntegrationScenarios.test_complete_successful_workflow
  • TestIntegrationScenarios.test_failure_with_retry_success

job_integrity.py enforces min_bytes: 50 for chunks, transcript, sidecar, and manifest (lines 30–33). The complete_job fixture and the retry test wrote files of 21–42 bytes — guaranteed to fail validation.

Change

Pad each fixture payload so every generated file exceeds 50 bytes (new range: 57–81 bytes). No production code change. No assertion change. Only test inputs.

Why this matters now

Unrelated PR #35 (vite Dependabot alert) cannot merge on green CI while this test is broken. Fixing the fixtures unblocks #35 and any future Dependabot PRs.

Test plan

@racmac57 racmac57 requested a review from hy5guy as a code owner April 14, 2026 01:22
The complete_job fixture and test_failure_with_retry_success wrote
artifact files of 21-42 bytes while job_integrity.validate_artifact
enforces min_bytes: 50 for chunks, transcript, sidecar, and manifest.

These tests therefore failed deterministically on every CI run:
 - TestValidation.test_validate_complete_job
 - TestIntegrationScenarios.test_complete_successful_workflow
 - TestIntegrationScenarios.test_failure_with_retry_success

Pad each fixture payload so every generated file exceeds the 50-byte
threshold (range 57-81 bytes). No production code change; no
assertion change; only test inputs.
@racmac57 racmac57 merged commit a2c479a into main Apr 14, 2026
6 checks passed
@racmac57 racmac57 deleted the fix/test-job-integrity-fixture-sizes branch April 14, 2026 01:26
racmac57 added a commit that referenced this pull request Apr 14, 2026
Short in-repo pointer to the canonical handoff in cad_rms_data_quality.
Summarizes PRs #24, #35, #36 and the test_job_integrity root cause in
one paragraph — full handoff is not duplicated here.
racmac57 added a commit that referenced this pull request Apr 14, 2026
Short in-repo pointer to the canonical handoff in cad_rms_data_quality.
Summarizes PRs #24, #35, #36 and the test_job_integrity root cause in
one paragraph — full handoff is not duplicated here.

Co-authored-by: Robert Carucci <racmac57@users.noreply.github.com>
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