Skip to content

Changing conditional etag parsing from recursive to iterative + other improvements#6469

Merged
jasnell merged 1 commit intomainfrom
jasnell/improve-r2-conditional-etag-handling
Mar 31, 2026
Merged

Changing conditional etag parsing from recursive to iterative + other improvements#6469
jasnell merged 1 commit intomainfrom
jasnell/improve-r2-conditional-etag-handling

Conversation

@jasnell
Copy link
Copy Markdown
Collaborator

@jasnell jasnell commented Mar 31, 2026

Update the etag handling in R2 to avoid recursion and better handle edge cases. Handful of other drive by cleanups while I was there.

@jasnell jasnell requested review from guybedford and npaun March 31, 2026 19:13
@jasnell jasnell requested review from a team as code owners March 31, 2026 19:13
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Mar 31, 2026

UnknownError: "Overloaded"

github run

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Mar 31, 2026

@jasnell Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@danlapid
Copy link
Copy Markdown
Collaborator

/bonk review this pr

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Mar 31, 2026

UnknownError: Your AI Gateway has authentication active, but you didn't provide a valid apiKey

github run

@npaun
Copy link
Copy Markdown
Member

npaun commented Mar 31, 2026

This is a way better design for a lexer.

@npaun
Copy link
Copy Markdown
Member

npaun commented Mar 31, 2026

I couldn't find any tests for ETag lexing though. Am I missing something? I think it would be easy to add a bunch of sample inputs to test.

@jasnell
Copy link
Copy Markdown
Collaborator Author

jasnell commented Mar 31, 2026

@npaun ... There are a handful of tests in the internal repo

Copy link
Copy Markdown
Member

@npaun npaun left a comment

Choose a reason for hiding this comment

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

Looks great. Still think it needs tests ;-)

@jasnell
Copy link
Copy Markdown
Collaborator Author

jasnell commented Mar 31, 2026

/bigbonk can haz review?

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Mar 31, 2026

UnknownError: Your AI Gateway has authentication active, but you didn't provide a valid apiKey

github run

@jasnell jasnell merged commit 8007f84 into main Mar 31, 2026
24 of 26 checks passed
@jasnell jasnell deleted the jasnell/improve-r2-conditional-etag-handling branch March 31, 2026 22:00
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