Skip to content

BenchFlow rollout_results: a dangling result.json link is reported as cannot list <file> #1671

Todo

Description

@antonwolfy

dokimi/dokimi/harnesses/rollouts.py rollout_results sorts the result.json files by p.stat().st_mtime, and result_files finds them with lstat, so a dangling link passes the listing and fails the sort. Repro: jobs/j1/t__a/result.json as a link to a missing path; look_for_rollouts(jobs) returns ([], 0, 'benchflow: cannot list .../t__a/result.json: No such file or directory'), a listing error naming a file that was listed. Fix options: skip or name the dangling link (is_file() before the sort, or lstat as the key), and word the error as a read failure.

Follow-up from the review of #1635: #1635 (review)

Activity

  1. self-assigned this
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions