PR #26296 opened by Zhao Zhili (quink)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26296
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26296.patch

# Summary of changes

FFmpeg uses several ways to check test results. A blanket
reference-file requirement can flag valid tests as review blockers.

For example, in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24946

LLM already noticed that libav*/tests/* don't use ref file normally, but it 
still insists that a FATE test must have a ref file.
There are other CMP methods, e.g.,
```
fate-hevc-bsf-mp4toannexb: CMP = oneline
fate-hevc-bsf-mp4toannexb: REF = 7d05a79c7a6665ae22c0043a4d83a811
```

LLM should be able to figure out how the test works. Misleading information 
gives worse results than missing information.


>From 4a161344da53bb269702cd9953c98ab18c18ebe9 Mon Sep 17 00:00:00 2001
From: Zhao Zhili <[email protected]>
Date: Mon, 23 Nov 2026 17:59:34 +0800
Subject: [PATCH] fairy: review FATE tests using project precedents

FFmpeg uses several ways to check test results. A blanket
reference-file requirement can flag valid tests as review blockers.
---
 fairy/project_facts.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fairy/project_facts.md b/fairy/project_facts.md
index 0cd886a0040..46bdf687b00 100644
--- a/fairy/project_facts.md
+++ b/fairy/project_facts.md
@@ -12,7 +12,7 @@ Each new codec, parser, filter and format should have a fate 
test, when possible
 Multimedia files used in fate tests are stored in fate-suite.ffmpeg.org.
 To upload a new file to the fate samples, the pull request author has to send 
a mail to samples-request at ffmpeg dot org. (you can tell this email address 
and procedure when it seems that this is not understood)
 FATE samples that are 10kb (100kb for video) or less do not need to be 
trimmed. samples that are over 1mb should be trimmed if possible (sometimes its 
not possible and that's ok)
-API and FATE tests should not hard-code expected values in source code. 
Expected output belongs in tests/ref/*, with the test printing actual results 
and FATE comparing them against the reference files. It is ok to also print the 
expected result as part of printing the current value when the expected is very 
stable. Tests that compare to hardcoded values and fail directly should not be 
approved, even when hidden behind helper macros such as CHECK(). Exception is 
CMP = grep
+Judge a FATE test by what it verifies and how it detects failures. Use 
comparable tests in the FFmpeg tree as precedents for test format.
 side data attached by ffmpeg code complies with the documented constraints of 
its type. Producers must ensure this; consumers may assume it.
 AVCodecContext.get_buffer2() buffers need to respect 
avcodec_align_dimensions2(). Decoders and Encoders may assume this additional 
padding has been allocated.
 Big-endian AArch64 is not supported.
-- 
2.54.1

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to