Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ddprobe): verifying frames should test up to 10 frames #3414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nonary
Copy link
Collaborator

@Nonary Nonary commented Nov 22, 2024

Description

Fixed a bug that caused the verify frame code to exit the loop early if it failed to acquire a frame (due to timeouts or other reasons).

It should now properly try up to 10 times.

Issues Fixed or Closed

N/A

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Fixed a bug that caused the verify frame code to exit the loop early if it failed to aquire a frame (due to timeouts or other reasons).

It should now properly try up to 10 times.
Copy link

sonarcloud bot commented Nov 22, 2024

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.12%. Comparing base (d5854ae) to head (4260b52).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3414      +/-   ##
==========================================
- Coverage   11.13%   11.12%   -0.01%     
==========================================
  Files          99       99              
  Lines       17253    17253              
  Branches     8045     8045              
==========================================
- Hits         1921     1920       -1     
  Misses      12639    12639              
- Partials     2693     2694       +1     
Flag Coverage Δ
Linux 8.37% <ø> (ø)
Windows 5.31% <ø> (ø)
macOS-13 13.62% <ø> (-0.02%) ⬇️
macOS-14 12.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

---- 🚨 Try these New Features:

@ReenigneArcher ReenigneArcher changed the title bugfix: verifying frames should test up to 10 frames fix(ddprobe): verifying frames should test up to 10 frames Nov 22, 2024
@Nonary Nonary marked this pull request as ready for review November 23, 2024 02:09
@cgutman
Copy link
Collaborator

cgutman commented Nov 26, 2024

Does this mean in the worst case we're potentially waiting 5 seconds (500 ms * 10 tries) per invocation of ddprobe? That seems bad.

It already takes quite a while (like 30 seconds or so) to reprobe decoders when a display isn't connected due to ddprobe running over and over.

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.

2 participants