Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix builder API headers #7009

Merged
merged 9 commits into from
Feb 24, 2025
Merged

Fix builder API headers #7009

merged 9 commits into from
Feb 24, 2025

Conversation

pawanjay176
Copy link
Member

Issue Addressed

Resolves #7000

Proposed Changes

Set the accept header on builder to the correct value when requesting ssz.

This PR also adds a flag to disable ssz over the builder api altogether. In the case that builders/relays have an ssz bug, we can react quickly by asking clients to restart their nodes with the --disable-ssz-builder flag to force json. I'm not fully convinced if this is useful so open to removing it or opening another PR for it.

Testing this currently.

@pawanjay176 pawanjay176 added do-not-merge builder API electra Required for the Electra/Prague fork labels Feb 19, 2025
@michaelsproul
Copy link
Member

let's target this at the release-v7.0.0-beta.0 branch, which we'll use for future releases too (I should rename the branch most likely)

@michaelsproul michaelsproul added the v7.0.0 New release c. Q1 2025 label Feb 19, 2025
@pawanjay176 pawanjay176 force-pushed the fix-builder-api branch 2 times, most recently from 1e2593b to d131e1d Compare February 19, 2025 03:07
@pawanjay176 pawanjay176 added ready-for-review The code is ready for review and removed do-not-merge labels Feb 20, 2025
@pawanjay176
Copy link
Member Author

Tested this with lighthouse and other CL clients with the mock builder and ssz support works as expected.
the --builder-disable-ssz flag also leads to all requests made with json.

@michaelsproul michaelsproul changed the base branch from unstable to release-v7.0.0-beta.0 February 20, 2025 05:29
@michaelsproul michaelsproul requested a review from jxs as a code owner February 20, 2025 05:29
@michaelsproul michaelsproul changed the title Fix builder api headers Fix builder API headers Feb 20, 2025
@michaelsproul michaelsproul changed the base branch from release-v7.0.0-beta.0 to release-v7.0.0 February 20, 2025 05:48
@michaelsproul
Copy link
Member

Nice, ty. Rebased on a new branch called release-v7.0.0 which descends from v7.0.0-beta.0 (not unstable)

Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Nice, substance looks good, just a few formatting nits

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Feb 20, 2025
pawanjay176 and others added 2 commits February 20, 2025 10:59
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Feb 24, 2025
@mergify mergify bot merged commit 522b3cb into release-v7.0.0 Feb 24, 2025
32 checks passed
@mergify mergify bot deleted the fix-builder-api branch February 24, 2025 03:39
mergify bot pushed a commit that referenced this pull request Feb 24, 2025
I keep being notified for PR's like #7009 where it doesn't touch the specified directories in the `CODEOWNERS` file.
After reading the [docs](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) not having a forward slash in beginning of the path means:
>  In this example, @octocat owns any file in an apps directory
> anywhere in your repository.

whereas with the slashes:
> In this example, @doctocat owns any file in the `/docs`
> directory in the root of your repository and any of its
> subdirectories.

this update makes it more rigid for the files in the jxs ownership
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder API electra Required for the Electra/Prague fork ready-for-merge This PR is ready to merge. v7.0.0 New release c. Q1 2025
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants