Skip to content

fix(test): hip_smoke conflict markers + GPU test skip-gracefully - #221

Merged
lusoris merged 1 commit into
masterfrom
fix/test-hip-smoke-conflict-markers-and-gpu-test-skip-20260529
May 29, 2026
Merged

lusoris merged 1 commit into
masterfrom
fix/test-hip-smoke-conflict-markers-and-gpu-test-skip-20260529

Conversation

@lusoris

@lusoris lusoris commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Resolves two unresolved Git conflict markers in core/test/test_hip_smoke.c (lines 363 and 644 on master) left by post-merge-train sweep commit 24bb5daf89. HEAD side retained: the float_ansnr_hip extractor test is correctly omitted (dropped by ADR-0720 / PR feat(core): drop legacy ansnr feature (pre-VMAF, never Netflix-adopted) #38).
  • test_gpu_picture_pool.c::test_ring_buffer (lines 49–53): added skip-gracefully guard — checks vmaf_cuda_state_init return value, emits [skip: no CUDA device], returns NULL on failure, preventing a NULL-deref SIGSEGV on CPU-only runners.
  • test_cuda_pic_preallocation.c (line 77–78 pattern, all four sub-tests): replaced hard-fail mu_assert after vmaf_cuda_state_init with the same skip pattern.

Six deliverables (ADR-0108)

  • Research digest: no digest needed: trivial conflict-marker removal + skip-guard pattern
  • Decision matrix: no alternatives: only-one-way fix
  • AGENTS.md invariant: core/test/AGENTS.md — GPU tests must skip gracefully when no device (rebase-sensitive)
  • Reproducer: grep -E '^(<<<<<<<|=======|>>>>>>>)' core/test/test_hip_smoke.c → must return empty
  • Changelog fragment: changelog.d/fixed/hip-smoke-conflict-markers-and-gpu-test-skip.md
  • Rebase notes: docs/rebase-notes.md entry added; no rebase impact (all files fork-local)

State.md

Closes T-CI-HIP-SMOKE-MARKERS + T-CI-GPU-TESTS-HARD-FAIL (row added to docs/state.md in this PR).

Test plan

  • grep -E '^(<<<<<<<|=======|>>>>>>>)' core/test/test_hip_smoke.c returns empty
  • meson setup build-test core -Denable_cuda=false -Denable_sycl=false && ninja -C build-test — clean build confirmed locally (724/724 targets)
  • pre-commit run --files core/test/test_hip_smoke.c core/test/test_gpu_picture_pool.c core/test/test_cuda_pic_preallocation.c — all hooks passed

🤖 Generated with Claude Code

Resolve two unresolved Git conflict markers in core/test/test_hip_smoke.c
(lines 363 and 644) left by post-merge-train sweep commit 24bb5da.
Both markers resolved by keeping the HEAD side: the float_ansnr_hip
extractor test and its test-list entry are correctly omitted (the extractor
was dropped by ADR-0720 / PR #38).

Replace hard-fail mu_assert after vmaf_cuda_state_init with a
skip-gracefully pattern in two GPU test files:
- test_gpu_picture_pool.c::test_ring_buffer: emits [skip: no CUDA device]
  and returns NULL on init failure, preventing a NULL-deref SIGSEGV.
- test_cuda_pic_preallocation.c: all four preallocation sub-tests
  (none / host / host_pinned / device) now skip when no CUDA device is
  present rather than hard-failing.

Six deliverables (ADR-0108):
1. no digest needed: trivial
2. no alternatives: only-one-way fix
3. AGENTS.md invariant note added to core/test/AGENTS.md
4. reproducer: grep -E '^(<<<<<<<|=======|>>>>>>>)' core/test/test_hip_smoke.c
5. changelog.d/fixed/hip-smoke-conflict-markers-and-gpu-test-skip.md
6. docs/rebase-notes.md entry added; no rebase impact

Closes: T-CI-HIP-SMOKE-MARKERS, T-CI-GPU-TESTS-HARD-FAIL

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lusoris
lusoris enabled auto-merge (squash) May 29, 2026 16:57
@lusoris
lusoris merged commit fcb6a0a into master May 29, 2026
41 of 67 checks passed
@lusoris
lusoris deleted the fix/test-hip-smoke-conflict-markers-and-gpu-test-skip-20260529 branch May 29, 2026 21:26
@lusoris lusoris added this to the 1.0.0 — First release milestone Sep 4, 2026
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