Skip to content

fix(executor): remove runner FIFOs when the run ends - #636

Merged
not-matthias merged 1 commit into
mainfrom
cod-4460-fix-fifo-issues-reported-by-firefox
Nov 26, 2026
Merged

not-matthias merged 1 commit into
mainfrom
cod-4460-fix-fifo-issues-reported-by-firefox

Conversation

@not-matthias

Copy link
Copy Markdown
Member

RunnerFifo created /tmp/runner.ctl.fifo and /tmp/runner.ack.fifo but never removed them. Integrations treat existing FIFOs as a live runner and stall for about 4 s per benchmark process on later runs that don't recreate them, for example a walltime run with the profiler disabled.

Changes

  • Unlink both FIFOs in a Drop impl for RunnerFifo, covering walltime, memory and analysis runs.
  • Share the unlink with create_fifo.
  • Add a unit test that drops a RunnerFifo and asserts both FIFOs are gone.

FIFOs left by a killed runner or by older runner versions are not cleaned up here. Integrations handle those in CodSpeedHQ/instrument-hooks#36.

Fixes #635
Fixes COD-4460

RunnerFifo created /tmp/runner.ctl.fifo and /tmp/runner.ack.fifo but never
removed them. Integrations treat existing FIFOs as a live runner and stall
for about 4 s per benchmark process on the next run, for example a
walltime run with the profiler disabled, which never touches the FIFOs.

Unlink both FIFOs in a Drop impl, covering walltime, memory and analysis
runs, and share the unlink with create_fifo.

Fixes #635
@not-matthias
not-matthias marked this pull request as ready for review November 26, 2026 10:20
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

RunnerFifo now saves both FIFO paths and removes them when dropped.

  • Runner FIFO paths disappear when each run finishes.

Reviews (1) · Last reviewed commit: "fix(executor): remove runner FIFOs when ..." · Reviewed by Greptile

@codspeed

codspeed Bot commented Nov 26, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 9 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 53 untouched benchmarks
⏩ 6 skipped benchmarks1


Comparing cod-4460-fix-fifo-issues-reported-by-firefox (ff27652) with main (18641a4)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@not-matthias
not-matthias merged commit ff27652 into main Nov 26, 2026
68 checks passed
@not-matthias
not-matthias deleted the cod-4460-fix-fifo-issues-reported-by-firefox branch November 26, 2026 15:09
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.

Runner leaves /tmp/runner.{ctl,ack}.fifo behind; later profiler-disabled runs stall ~4 s per benchmark process

2 participants