-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chore(librarian): temporarily switch protobuf backend from upb to python #15006
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -794,15 +794,15 @@ def test_run_nox_sessions_success( | |
| mock_run_individual_session = mocker.patch("cli._run_individual_session") | ||
|
|
||
| sessions_to_run = [ | ||
| f"unit-{nox_session_python_runtime}(protobuf_implementation='upb')", | ||
| f"unit-{nox_session_python_runtime}(protobuf_implementation='python')", | ||
| ] | ||
| _run_nox_sessions("mock-library", "repo", is_mono_repo) | ||
|
|
||
| assert mock_run_individual_session.call_count == len(sessions_to_run) | ||
| mock_run_individual_session.assert_has_calls( | ||
| [ | ||
| mocker.call( | ||
| f"unit-{nox_session_python_runtime}(protobuf_implementation='upb')", | ||
| f"unit-{nox_session_python_runtime}(protobuf_implementation='python')", | ||
|
Comment on lines
+797
to
+805
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The session string For example: session_name = f"unit-{nox_session_python_runtime}(protobuf_implementation='python')"
sessions_to_run = [session_name]
# ...
mocker.call(session_name, ...)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ack. I'm going to skip this for now as I want to minimize changes while debugging #14992 |
||
| "mock-library", | ||
| "repo", | ||
| is_mono_repo, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make this temporary change more explicit and easier to revert, consider extracting the
protobuf_implementationvalue into a variable. This isolates the temporary value and makes the code's intent clearer.