-
Notifications
You must be signed in to change notification settings - Fork 84
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
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 |
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.
Thanks @lqiu96!
@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. |
@@ -23,4 +23,4 @@ commandTests: | |||
expectedError: ["google-java-format: Version 1.7"] | |||
- name: "python" | |||
command: ["python", "--version"] | |||
expectedOutput: ["Python 3.6.1"] | |||
expectedOutput: ["Python 3.9.13"] |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can add that validation in
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.
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
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.
Thank you.
@blakeli0 sorry I missed your comment earlier! Yup, according to the document |
@@ -23,4 +23,4 @@ commandTests: | |||
expectedError: ["google-java-format: Version 1.7"] | |||
- name: "python" | |||
command: ["python", "--version"] | |||
expectedOutput: ["Python 3.6.1"] | |||
expectedOutput: ["Python 3.9.13"] |
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.
Thank you.
Removing the |
Update to use the latest version of gcp-uploader package and unpin the dependencies.