Skip to content

pass the job_id to the proxy too - #663

Merged
jakecoffman merged 1 commit into
mainfrom
jakecoffman/proxy-metrics-job-id
Sep 23, 2026
Merged

jakecoffman merged 1 commit into
mainfrom
jakecoffman/proxy-metrics-job-id

Conversation

@jakecoffman

@jakecoffman jakecoffman commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

The Updater gets the Dependabot Job ID in this same way, pass it to the Proxy as well to match.

fmt.Sprintf("DEPENDABOT_JOB_ID=%v", firstNonEmpty(os.Getenv("DEPENDABOT_JOB_ID"), jobID)),

This fixes issues where the Proxy doesn't know where to send some API requests.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused change is adequately tested, with no unresolved issues.

Review effort: Balanced
Findings: None

What changed in this PR

Passes DEPENDABOT_JOB_ID to the proxy to improve API request routing.

Changes:

  • Uses the host job ID with a cli fallback.
  • Adds coverage for configured, empty, and unset values.
File Description
internal/​infra/​proxy.go Forwards the job ID to the proxy.
internal/​infra/​proxy_test.go Tests job ID propagation and fallback behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jakecoffman
jakecoffman marked this pull request as ready for review September 23, 2026 16:10
@jakecoffman
jakecoffman requested review from a team as code owners September 23, 2026 16:10
@jakecoffman
jakecoffman added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 15c211e Sep 23, 2026
107 of 108 checks passed
@jakecoffman
jakecoffman deleted the jakecoffman/proxy-metrics-job-id branch September 23, 2026 16:23
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