Skip to content

Fix enrich-history not discovering cluster_ids from scan-only databases - #27

Merged
iross merged 1 commit into
mainfrom
fix/enrich-history-discovers-condor-history-cluster-ids
Aug 24, 2026
Merged

Fix enrich-history not discovering cluster_ids from scan-only databases#27
iross merged 1 commit into
mainfrom
fix/enrich-history-discovers-condor-history-cluster-ids

Conversation

@iross

@iross iross commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • enrich_from_condor_history() only discovered candidate cluster_ids from the events table (built by db build from NDJSON). A provenance.db populated purely via scan --db (an ad hoc batch with no DAGMan/NDJSON instrumentation at all) has an empty events table, so enrich-history reported "No new cluster_ids to enrich" even though those exact jobs were already sitting in condor_history waiting to be enriched further.
  • Candidate cluster_ids are now the union of the events table and whatever's already in condor_history (any source).

Test plan

  • uv run pytest tests/ -q — 278 passed, 2 skipped
  • ruff check / ty check clean
  • Manually reproduced: scan --db into a fresh db, then enrich-history — now attempts the query instead of reporting nothing to do

🤖 Generated with Claude Code

…sk-35)

enrich_from_condor_history() only discovered candidate cluster_ids
from the events table (built by db build from NDJSON). A provenance.db
populated purely via scan --db (an ad hoc batch with no DAGMan/NDJSON
instrumentation at all) has an empty events table, so enrich-history
reported "No new cluster_ids to enrich" even though those exact jobs
were already sitting in condor_history waiting to be enriched further.

Candidate cluster_ids are now the union of the events table and
whatever's already in condor_history (any source), so a scan-only
database is a valid input to enrich-history too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@iross
iross merged commit fc96437 into main Aug 24, 2026
1 check passed
@iross
iross deleted the fix/enrich-history-discovers-condor-history-cluster-ids branch August 24, 2026 20:14
@iross iross mentioned this pull request Aug 24, 2026
1 task
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