Skip to content

Fix roar get: populate git fields on job records#127

Merged
TrevorBasinger merged 1 commit into
mainfrom
cg/fix-get-git-fields
May 22, 2026
Merged

Fix roar get: populate git fields on job records#127
TrevorBasinger merged 1 commit into
mainfrom
cg/fix-get-git-fields

Conversation

@christophergeyer
Copy link
Copy Markdown
Member

Summary

roar get created job records without git_commit, git_branch, or git_repo, causing GLaaS registration to fail with HTTP 400 (request validation failed).

The git commit was resolved but only stored in the nested metadata JSON, not on the job record itself. The GLaaS API requires the top-level git fields.

Changes

  • Resolve git branch and remote URL alongside commit in get_artifacts
  • Add git_commit, git_branch, git_repo, step_name params to LocalJobRecorder.record()
  • Pass all git fields and step_name through to db.jobs.create()

Test plan

  • roar get <url> followed by roar register @N succeeds
  • roar show @N shows git info on get jobs
  • Works with and without -n step name

@TrevorBasinger TrevorBasinger force-pushed the cg/fix-get-git-fields branch from de9ddb8 to 9c8b47d Compare May 22, 2026 13:49
roar get created job records without git_commit, git_branch, or
git_repo, causing GLaaS registration to fail with HTTP 400.

- Resolve git commit, branch, and remote URL in get_artifacts
- Add git_commit, git_branch, git_repo, step_name params to
  LocalJobRecorder.record() and pass them to db.jobs.create()
- Also pass step_name to db.jobs.create() (was missing)
- Thread step_name from GetRequest through to the recorder

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TrevorBasinger TrevorBasinger force-pushed the cg/fix-get-git-fields branch from 9c8b47d to 7f738bf Compare May 22, 2026 13:54
@TrevorBasinger TrevorBasinger merged commit 24ec881 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