Ray's Knowledge Base
Unlock

A benchmark through the overlay reads the live working tree, so a rebase in progress breaks it

PitfallVerified 6 Oct 2026Holds project: dfanalyzer
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

The dask cases fail with cannot import name 'DaskFrame'. Files such as dask_frame.py have vanished, and the native extension no longer matches the Python sources.

Cause#

The overlay is the native extension plus symlinks to the live python/dftracer/utils files. It reads the working tree while it runs. During an interactive rebase with a conflict (for example in src/dftracer/utils/dataframe/batch_ops.cpp) the tree is half applied.

Fix#

Run git status before starting. If a rebase is in progress, benchmark a frozen git worktree snapshot with a fresh Release build, and do not trust runs on the live tree. Save each run's bench.jsonl somewhere durable, because scratchpad copies of earlier results can disappear and block the old-versus-new comparison.

Evidence#

Seen in a dfanalyzer benchmark session while the user was mid rebase.

Also found by searching

  • cannot import name 'DaskFrame'
  • benchmark fails while the repo is in the middle of an interactive rebase
  • benchmark results differ because the working tree changed under the overlay
  • how to benchmark old versus new when the live tree is in a rebase