-
Notifications
You must be signed in to change notification settings - Fork 56
deps: bump protobuf-specs #1276
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Switching to betterproto's Pydantic models produces generally better-typed results, but it looks like enums are strictly worse:
I'll look into whether this can be fixed upstream. |
Signed-off-by: William Woodruff <[email protected]>
Any updates on this? Working around seems to not be awful: jku@7028110
I've tried to read through the protobuf-specs changes and I don't see anything obviously missing between 0.3.2 and 0.3.5. (it's possible though, the betterproto update manages to hide the actual changes in massive docstring changes...). There is of course newer protobufs already but maybe it's easier to handle this step by step? |
I can do the 0.4.1 bump separately: there is a bit of work to get the fancier SigningConfig to work but I have most of it in a branch already. |
Sorry, it's just been blocked on my time 😅 -- your change looks good, I'll cherry-pick that in! |
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
signature = base64.b64encode( | ||
result._inner.message_signature.signature | ||
).decode() |
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.
NB: This was previously just wrong for DSSE outputs, but we didn't notice since nothing really uses the --signature
flag anymore.
Local tests are now OK, but the conformance suite is failing for unclear reasons. My best guess however is that this is potentially a consequence of us mixing the |
sigstore/sigstore-conformance#187 should fix that issue |
Now merged: you should be able to test this by bumping the sigstore-conformance hash in this PR... EDIT: I tested bumping the conformance hash in https://github.com/jku/sigstore-python/actions/runs/14600225714/job/40956304385 : looks good. We could do a conformance release to get this fixed (there's nothing else in it though). |
This seems to work for now.. See also sigstore/sigstore-python#1276 Signed-off-by: Jussi Kukkonen <[email protected]>
Actually the install log still looks wrong:
|
Okay this finally does look good: https://github.com/jku/sigstore-python/actions/runs/14600769194/job/40958111997 -- need one more PR in sigstore-conformance: sigstore/sigstore-conformance#204 (to make sure the action also installs dependencies in a virtualenv and not in the main python environment) This PR is ready to merge from my POV as long as there's a conformance release or we start using a unreleased conformance |
Very WIP. This includes underlying changes to the proto models themselves, so I need to go through various internal usages and correct them.
On the plus side, this makes our typechecking of each proto model's internals much more correct.