Skip to content

ci(verify): report logged against counted slow encode calls in the probe A/B - #4962

Merged
richiemcilroy merged 2 commits into
mainfrom
ci/probe-ab-slow-total
Dec 5, 2026
Merged

richiemcilroy merged 2 commits into
mainfrom
ci/probe-ab-slow-total

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Follow-up to the encoder probe A/B report, for the Recording thread.

  • Cap prints its slow encode line only for its first five slow calls and then every hundredth, so on a slow VM the 200 ms column fills up near five per recording. Per case the report now sets the lines Cap printed against the calls it counted, read from the end-of-recording M4S encoder timing summary (slow_encodes): new fields cap_slow_logged and cap_slow_total, and a "logged L of N" column per arm in the summary.
  • Screen and camera encoder lines are kept apart by their label ("Camera encoder.queue..." has its own counter); the yardstick columns use the screen encoder only, and the camera's figures go to cap_camera_slow_logged and cap_camera_slow_total.
  • Only the fragmented M4S muxer logs these lines at the level the oracle keeps, so a case recorded through another path (an MP4 recording) shows as not counted rather than as zero.

Testing

  • Before and after on the kept artifact of run 47555496257 (probe-ab-6), read by both scripts in run 47558278174. Probe arm: before "Cap slow calls 14, 2151 ms; 200 ms or more 6"; after the same plus "logged 14 of 14 (3 cases not counted)". Probe-off arm: "5, 97 ms; 0", after "logged 5 of 5 (3 cases not counted)". Per case the most was studio-screen/fragmented r3, logged 4 of 4 with 2 of 200 ms or more, so in this run the five-line limit never cut a count.
  • Camera cases: studio-camera/startup-drops (fast) and studio-camera/long (full, run 47557442904 on macOS 26 and 15) record through the MP4 path, which logs no per-call line or summary at the kept level. They show "screen logged 0 of None, camera logged 0 of None" and count as "not counted", not as zero.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge.

Summary

The PR adds logged-versus-counted slow encode totals and keeps screen and camera counts separate.

  • The probe report compares logged screen lines with counted slow encodes.

Reviews (4) · Last reviewed commit: "refactor(verify): drop a docstring that ..." · Reviewed by Greptile

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Dec 5, 2026 7:13pm UTC

Comment thread scripts/verify/probe-ab.py Resolved
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@richiemcilroy
richiemcilroy marked this pull request as ready for review December 5, 2026 19:37
@richiemcilroy
richiemcilroy merged commit c3e6e5e into main Dec 5, 2026
37 checks passed
@sandchest-com

sandchest-com Bot commented Dec 5, 2026

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 47a6232: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

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