Add a recipe for comparing original PNG hashes across acquisitions

Aberta Para iniciantes
#3 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
78/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python

Direção de pesquisa

Comece por tests.test_streaming.TestStreaming.test_full_frame_parity_with_yt_dlp_and_https_ranges e, em seguida, leia o fixture de três rotas e suas asserções. Documente como executá-lo e verificar as verificações listadas de quadros, detecção, contador, hash PNG, arquivos mantidos e clipes de revisão; a tarefa estará concluída quando o procedimento cobrir cada verificação usando apenas fixtures sintéticos.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

documentation good first issue help wanted validation

Scope

Document a short local-versus-HTTPS check using only the synthetic fixtures. Specify which fields must match, how to compare PNG SHA-256 values and how to confirm that the streaming job retained no source file.

Reproduction recipe

On macOS with the repository dependencies and FFmpeg installed, run the existing three-route parity test from the checkout:

python -m unittest -v tests.test_streaming.TestStreaming.test_full_frame_parity_with_yt_dlp_and_https_ranges

The fixture serves its own synthetic MP4 over loopback HTTPS with a temporary certificate. It compares local upload, yt-dlp page resolution with ranged streaming, and full download. Verify 192 decoded and analyzed frames, the same 25 detections with their appearance IDs and original PTS/time base, exhaustive counters, and identical {PNG filename: SHA-256} maps. The same-host comparison excludes acquisition and performance measurements because each route has different wall time and retained bytes. The streaming job directory should consist of job.json, result.json and frames/. Confirm retained source bytes are zero and that review clips report HTTP 422 for the streaming job. The full-download route retains the source and checks its SHA-256 against the test MP4.

Passing hosted integration on b36986c. The Linux fixture in #12 also compares native file and HTTPS paths within one host using a deterministic engine.

Linguagem predominante
Python
Estrelas
0
Forks
0
Merge médio
20h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de JusticeGG-dev/CodeHunter

Todas as issues de JusticeGG-dev/CodeHunter

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.