-
Notifications
You must be signed in to change notification settings - Fork 711
ci: installing google-play-services artifact for Windows #1706
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
Conversation
92a180b failed:
|
Codecov Report
@@ Coverage Diff @@
## master #1706 +/- ##
==============================
==============================
Continue to review full report at Codecov.
|
4af8b2c fails:
|
"shell: bash" seems working for windows-latest. |
000d56d failed with checkstyle violation.
The file has long lines in Why does this fail only in Windows? |
The multi-line with bash (10a5b9a) works. Working on fixing the checkstyle problem. |
|
5d112be failed with
https://checkstyle.sourceforge.io/version/4.4/5.x/config_javadoc.html Other errors on properties that no longer exist
The configuration file structure also changed:
https://checkstyle.org/config_sizes.html#LineLength_Parent_Module says the parent is "Check" module. |
43d9e56 failed with checkstyle error:
My IntelliJ shows the file uses LF. It seems that there's some process that converts LF to CRLF for windows. |
- name: git configuration to avoid automatic CRLF conversion | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf |
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.
This avoids the error below:
[INFO] --- maven-checkstyle-plugin:3.1.2:check (default) @ google-api-client ---
[INFO] Starting audit...
Error: D:\a\google-api-java-client\google-api-java-client\google-api-client\src\main\java\com\google\api
\client\googleapis\apache\GoogleApacheHttpTransport.java:1: Expected line ending for file
is LF(\n), but CRLF(\r\n) is detected. [NewlineAtEndOfFile]
Error: D:\a\google-api-java-client\google-api-java-client\google-api-client\src\main\java\com\google\api
\client\googleapis\apache\package-info.java:1: Expected line ending for file is LF(\n), but
CRLF(\r\n) is detected. [NewlineAtEndOfFile]
Error: D:\a\google-api-java-client\google-api-java-client\google-api-client\src\main\java\com\google\api
\client\googleapis\apache\v2\GoogleApacheHttpTransport.java:1: Expected line ending for file is LF(\n), but CRLF(\r\n) is detected. [NewlineAtEndOfFile]
shell: bash | ||
run: | | ||
mkdir play-services | ||
cd play-services | ||
curl --output play-services-basement-8.3.0.aar https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/8.3.0/play-services-basement-8.3.0.aar | ||
unzip play-services-basement-8.3.0.aar | ||
mvn install:install-file \ | ||
-Dfile=classes.jar \ | ||
-DgroupId=com.google.android.google-play-services \ | ||
-DartifactId=google-play-services \ | ||
-Dversion=1 \ | ||
-Dpackaging=jar | ||
- run: .kokoro/build.sh | ||
shell: bash |
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.
Windows has bash.
<suppress checks="LineLength" files="com/google/api/client/googleapis/apache/GoogleApacheHttpTransport.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/appengine/notifications/AppEngineNotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/appengine/subscriptions/package-info.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/javanet/GoogleNetHttpTransport.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/subscriptions/NotificationHeaders.java"/> |
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.
Files that no longer violates the line length have been removed.
<suppress checks="LineLength" files="com[/\\]google[/\\]api[/\\]client[/\\]googleapis[/\\]extensions[/\\]appengine[/\\]notifications[/\\]AppEngineNotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com[/\\]google[/\\]api[/\\]client[/\\]googleapis[/\\]extensions[/\\]servlet[/\\]notifications[/\\]NotificationServlet.java"/> |
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.
I had to add forward slash and back slash to make it work for both Windows and Unix filesystem.
<property name="allowMissingJavadoc" value="true"/> | ||
<property name="allowMissingParamTags" value="true"/> | ||
<property name="allowMissingReturnTag" value="true"/> | ||
<property name="allowMissingThrowsTags" value="true"/> | ||
<property name="allowThrowsTagsForSubclasses" value="true"/> | ||
<property name="allowUndeclaredRTE" value="true"/> | ||
</module> |
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.
The removed properties are no longer supported in newer version of checkstyle.
@@ -183,22 +179,6 @@ page at http://checkstyle.sourceforge.net/config.html --> | |||
|
|||
--> | |||
|
|||
<module name="LineLength"> |
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.
The LineLength's parent has to be "Check" element in the newer checkstyle.
@@ -561,7 +561,7 @@ | |||
<dependency> | |||
<groupId>com.puppycrawl.tools</groupId> | |||
<artifactId>checkstyle</artifactId> | |||
<version>8.23</version> | |||
<version>8.39</version> |
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.
This is the version google-cloud-shared-config 0.10.0 uses.
* chore(java): pom generation to look at root versions.txt * not to include irrelevant modules in monorepo Co-authored-by: Burke Davison <[email protected]> Co-authored-by: Burke Davison <[email protected]> Source-Link: googleapis/synthtool@909f3c8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066
* chore(java): pom generation to look at root versions.txt * not to include irrelevant modules in monorepo Co-authored-by: Burke Davison <[email protected]> Co-authored-by: Burke Davison <[email protected]> Source-Link: googleapis/synthtool@909f3c8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Burke Davison <[email protected]>
* chore(java): pom generation to look at root versions.txt * not to include irrelevant modules in monorepo Co-authored-by: Burke Davison <[email protected]> Co-authored-by: Burke Davison <[email protected]> Source-Link: googleapis/synthtool@909f3c8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Burke Davison <[email protected]>
* chore(java): pom generation to look at root versions.txt * not to include irrelevant modules in monorepo Co-authored-by: Burke Davison <[email protected]> Co-authored-by: Burke Davison <[email protected]> Source-Link: googleapis/synthtool@909f3c8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Burke Davison <[email protected]>
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #1705 ☕️