Unify run dir enumeration for tracer listing and resolve#147
Merged
AlexanderOnischenko merged 3 commits intocodex/refactor-makefile-help-sectionsfrom Feb 1, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
run_dirvalues (absolute, repo-relative,DATA_DIR-relative, and.runs/...suffixes) to avoid missed matches.runsroots (e.g..runs/runs/runs) and preserve history-only entries in listings with clear status flags likemissing_on_disk.Description
RunDirInventory,HistoryRunDir,CaseRunListingand functions_load_history_entries,_normalize_history_run_dir,_detect_runs_roots,_iter_fs_run_dirs, and_collect_run_dir_inventoryinsrc/fetchgraph/tracer/resolve.pyto merge history and FS sources.list_case_run_listingsto produce listings that include history-only entries and new statuses (missing_on_disk,missing_case_dir,missing_events,tag_mismatch,missed), and makescan_case_runshistory-aware when ordering results.src/fetchgraph/tracer/cli.pyto use the new listing path for--list-matchesand to expand--print-resolveoutput withruns_root_cli,runs_root_effective,history_pathand counts (historyvsfs) including warnings when history entries are missing on disk.tests/test_tracer_run_dir_inventory.pycovering relative history path normalization, nestedrunsroot discovery, and reporting ofhistoryentries missing on disk.Testing
pytest -q tests/test_tracer_run_dir_inventory.pyand all tests passed (3 passed).relative history pathnormalization,nested runs_rootscanning andmissing_on_diskreporting and succeeded.Codex Task