Skip to content

Pure python request pipeline #429

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

Open
wants to merge 2 commits into
base: replace-generated-request-pipeline
Choose a base branch
from

Conversation

JordonPhillips
Copy link
Contributor

@JordonPhillips JordonPhillips commented Mar 12, 2025

This replaces the generated request pipeline with one that is hand-written. Look at all those removed lines!

Note that CI won't pass because we need quite a few fixes. I'm splitting those off so that this isn't too big, and I've changed the target branch to a feature branch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch from bb29685 to 3a6df83 Compare March 12, 2025 17:16
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch 2 times, most recently from ec58e87 to 1890159 Compare April 11, 2025 13:39
@JordonPhillips JordonPhillips changed the base branch from develop to no-http-auth April 11, 2025 13:40
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch from 1890159 to 0e83eeb Compare April 11, 2025 13:43
Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

I think this looks fine conceptually.

@JordonPhillips JordonPhillips force-pushed the no-http-auth branch 2 times, most recently from dbae11e to 6dbca91 Compare May 2, 2025 15:06
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch from 0e83eeb to 5d189d2 Compare May 2, 2025 15:10
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch 2 times, most recently from aa96919 to 31a635c Compare May 9, 2025 14:35
Base automatically changed from no-http-auth to develop May 26, 2025 16:02
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch from 31a635c to 6aa97b3 Compare May 26, 2025 16:36
@JordonPhillips JordonPhillips marked this pull request as ready for review May 27, 2025 09:50
@JordonPhillips JordonPhillips requested a review from a team as a code owner May 27, 2025 09:50
@JordonPhillips
Copy link
Contributor Author

This is good to look at now. I'm working on the codegen changeover, which will bloat the pr size since so much is going to be deleted. I would prefer that to be a separate PR though.

@JordonPhillips JordonPhillips changed the title [DRAFT] Pure python request pipeline Pure python request pipeline May 28, 2025
nateprewitt
nateprewitt previously approved these changes Jun 2, 2025
Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Minor comment but otherwise I think looks alright.

Comment on lines +381 to +384
_LOGGER.debug("Calling endpoint resolver.")
endpoint: Endpoint = await call.endpoint_resolver.resolve_endpoint(
endpoint_params
)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should potentially be recording the endpoint_params here to inform how we got the result. I don't believe we have anything sensitive in those.

This replaces the code generated request pipeline with the
hand-written one.
@JordonPhillips JordonPhillips force-pushed the pure-python-request-pipeline branch from 6aa97b3 to 588c3f2 Compare June 3, 2025 09:15
@JordonPhillips JordonPhillips changed the base branch from develop to replace-generated-request-pipeline June 3, 2025 09:16
)

_LOGGER.debug("Request to sign: %s", request_context.transport_request)
_LOGGER.debug("Signer properties: %s", option.signer_properties)
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to merge signer properties with the properties from the option here. Something like this:

option.signer_properties = option.signer_properties scheme.signer_properties(context=request_context.properties)

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