Skip to content

fix: undefined vars, regex bugs, sourceType crash, and typos#197

Open
k-rister wants to merge 6 commits into
masterfrom
fix-cdm-bugs
Open

fix: undefined vars, regex bugs, sourceType crash, and typos#197
k-rister wants to merge 6 commits into
masterfrom
fix-cdm-bugs

Conversation

@k-rister

@k-rister k-rister commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • delete-run.js: Fix undefined docTypes and numAttempts in warning message — use numDocTypes
  • add-run.js: Fix wrong property path info['indices'] — should be info['runIds'][runId]['indices']
  • get-result-summary.js: Handle metric names without :: separator — sourceType[1] was undefined
  • get-metric-data.js: Fix eopch_msepoch_ms and otuputoutput typos in help text
  • 7 files: Fix regex [7|8|9][789] in CDM version check — was also matching literal pipe
  • 4 files: Fix typos: index-nane, porse, vaules, greather, mestric_desc-uuid, retured, reqsuested, interations, soucres

Closes #195

Test plan

  • CI passes (prettier check)
  • node queries/cdmq/delete-run.js --help — no syntax errors
  • node queries/cdmq/add-run.js --help — no syntax errors

🤖 Generated with Claude Code

k-rister and others added 6 commits July 6, 2026 15:23
The warning referenced undefined docTypes and numAttempts instead
of the in-scope numDocTypes returned by waitForDeletedDocs().

Closes: #195

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
info['indices'] does not exist — the indices are nested under
info['runIds'][runId]['indices'] as used on the surrounding lines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sourceType[1] was undefined when the primary metric name did not
contain a :: separator, matching the guard already present earlier
in the same file (lines 363-371).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
[7|8|9] matches digits 7, 8, 9 AND the literal pipe character.
Use [789] for the intended behavior.  Affected 7 files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
index-nane, porse, vaules, greather, mestric_desc-uuid, retured,
reqsuested, interations, soucres

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@k-rister k-rister self-assigned this Jul 6, 2026
@k-rister k-rister requested a review from a team July 6, 2026 20:28
@project-crucible-tracking project-crucible-tracking Bot moved this to In Progress in Crucible Tracking Jul 6, 2026
@k-rister k-rister requested review from atheurer and removed request for a team July 6, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

fix: CDM delete-run undefined vars, regex bugs, and typos

1 participant