Skip to content

fix: don't emit wandb URL for offline runs#124

Merged
TrevorBasinger merged 1 commit into
mainfrom
cg/fix-wandb-offline-url
May 22, 2026
Merged

fix: don't emit wandb URL for offline runs#124
TrevorBasinger merged 1 commit into
mainfrom
cg/fix-wandb-offline-url

Conversation

@christophergeyer
Copy link
Copy Markdown
Member

Summary

  • Fixes URL construction in _extract_wandb_info when entity, project, or run_id are None
  • Offline wandb runs (WANDB_MODE=offline) write wandb-metadata.json without these fields, producing https://wandb.ai/None/None/runs/None
  • Changed the check from all(k in info for k in ...) (which passes when keys exist with None values) to info.get(...) and ... (which requires truthy values)

Test plan

  • Run with WANDB_MODE=offline and verify no None-containing URL is emitted
  • Run with a normal online wandb run and verify URL is still constructed correctly

🤖 Generated with Claude Code

Offline wandb runs (WANDB_MODE=offline) write wandb-metadata.json
without entity, project, or run_id fields. The analyzer was building
a URL with None values. Now skips URL construction when any required
field is missing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TrevorBasinger TrevorBasinger merged commit ba017cd into main May 22, 2026
12 checks passed
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.

3 participants