Skip to content

[Backport] [A-1756] Apply request headers from streaming pings - #4275

Open
moskyb wants to merge 1 commit into
v3from
backport-4256-v3
Open

[Backport] [A-1756] Apply request headers from streaming pings#4275
moskyb wants to merge 1 commit into
v3from
backport-4256-v3

Conversation

@moskyb

@moskyb moskyb commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

Backport of #4256 to v3. It applies server-specified request header updates received from the ping stream and reconnects when the effective headers change.

Context

See #4256 for the full description and investigation context.

Changes

The behaviour matches the merged v4 change. The generated protobuf descriptor retains Agent v3's github.com/buildkite/agent/v3 package path.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

Prepared and validated with Amp as a v3 backport of the merged v4 change.

(cherry picked from commit c3ea8aa)
Amp-Thread-ID: https://ampcode.com/threads/T-01a0412b-4df3-77cf-bdee-5cc9de145470
Co-authored-by: Amp <amp@ampcode.com>
@moskyb
moskyb requested review from a team as code owners August 27, 2026 03:11
@moskyb moskyb added the bug label Aug 27, 2026

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't find a concrete issue in the backport. It matches the merged v4 patch apart from the expected v3 package paths. Because it changes the streaming agent protocol and shard-routing handoff, I'm leaving approval to a human reviewer.

The agent CI status is failing; its job details weren't accessible from this review environment.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 21730, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-5.6-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. Unless repository policy already allows L2 approval, grant it by mentioning @buildsworth-bk (see approval ceiling and L2 approval grant):

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). Approved only when repository policy or a verified grant allows it; otherwise comment-only.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical paths). Human review always required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant