chore: Upgrade to later version of gcp-uploader and protobuf#1741
chore: Upgrade to later version of gcp-uploader and protobuf#1741
Conversation
|
Seeing this error: |
@mpeddada1 Any objections if I include that change in this PR? I think the change would be becomes Is that right? |
Making the change in this PR sounds good! And yup, it would become |
@mpeddada1 What did you mean by update? Should I just unpin the dependencies or pin the current latest versions or something else? |
I think we can now update the dependencies in the associated requirement.txt to the latest version now that we're using Python 3.9. It'll help us resolve these open PRs: #1480, #1731. And for |
Sounds good. I'll unpin the versions |
|
Adding |
@mpeddada1 Did you validate this approach with other languages lead or rennie, based on his "Pip install vulnerability" doc, I think we may still need it. |
| - name: "python" | ||
| command: ["python", "--version"] | ||
| expectedOutput: ["Python 3.6.1"] | ||
| expectedOutput: ["Python 3.9.13"] |
There was a problem hiding this comment.
@lqiu96 Would you add an assertion that this python module synthtool.languages.java is available? I think it would look like this:
python3 -c 'import synthtool.languages.java; print("import successs")'
An example failure would look like this:
suztomo@suztomo:~/java-storage$ docker run --user "$(id -u):$(id -g)" --entrypoint /bin/bash --rm -it a8e0ab6765a4
I have no name!@752c3d65c2dd:/workspace$ python3 -c 'import synthtool.languages.java; print("import successs")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'synthtool.languages'
I have no name!@752c3d65c2dd:/workspace$
It gives more confidence that a change for OwlBot Postprocessor works fine in owlbot.py (example location)
There was a problem hiding this comment.
Sure, I can add that validation in
There was a problem hiding this comment.
Added the new validation in as java synthtool validation which runs the commands above.
FYI, couldn't find the docs for schemaVersion 1.0.0 and the docs on https://github.com/GoogleContainerTools/container-structure-test were showing docs for 2.0.0, so I used that for local testing
@blakeli0 sorry I missed your comment earlier! Yup, according to the document |
| - name: "python" | ||
| command: ["python", "--version"] | ||
| expectedOutput: ["Python 3.6.1"] | ||
| expectedOutput: ["Python 3.9.13"] |
|
Removing the |
Update to use the latest version of gcp-uploader package and unpin the dependencies.