Skip to content

[WIP] make smoke test a test and an app - #3006

Closed
neozwu wants to merge 1 commit into
googleapis:masterfrom
neozwu:smoke-test-demo
Closed

[WIP] make smoke test a test and an app#3006
neozwu wants to merge 1 commit into
googleapis:masterfrom
neozwu:smoke-test-demo

Conversation

@neozwu

Copy link
Copy Markdown
Contributor

Redesign autogenerated smoke test so that it has a "test entry point" and an "app entry point". Therefore, each smoke test can be run separately as a sample app (say, for debugging purpose). Or, all smoke tests can be run using mvn. ("mvn verify -P smoke-test"). For clients that require project-id, project-id can be detected through system property or environment variable. If app entry point is used, one can also pass project id through command line.

@neozwuneozwu added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 7, 2018
@neozwu
neozwu requested a review from pongad as a code ownerMarch 7, 2018 00:04
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 7, 2018

@garrettjonesgooglegarrettjonesgoogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

@@ -0,0 +1,21 @@
/*
* Copyright 2016 Google LLC

This comment was marked as spam.

@neozwu

Copy link
Copy Markdown
ContributorAuthor

Close this PR since the function is implemented in separate PRs.

@neozwuneozwu closed this Mar 26, 2018
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
Co-authored-by: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
suztomo pushed a commit that referenced this pull request Mar 9, 2026
* feat: Add Routine DataGovernanceType
This also:
- fix an issue where RoutineInfo unit test was being skipped
- fix an issue where ImportLibaries were not being exported in the toPb method
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: Add DataGovernanceType to clirr ignored difference
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
Co-authored-by: Phong Chuong <147636638+PhongChuong@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
…ing HTTP Transport (#3006)
If a generation is present in the provided BlobInfo ensure it is sent to GCS. This is
a hard requirement when using versioned buckets and trying to update a non-current
object version.
Effects all version 2.42.0 through 2.50.0
Regression introduced in #2664Fixes#2980
lqiu96 added a commit that referenced this pull request Aug 3, 2026
…ble writes and read channels
When upgrading gRPC to v1.83.0 (and Gson to 2.14.0), Gson PR #3006 added strict duplicate key detection in MapTypeAdapterFactory.Adapter.read ('if (map.containsKey(key)) throw ...').
Because com.google.api.services.storage.model.StorageObject extends com.google.api.client.util.GenericData (which implements java.util.Map), raw Gson selects MapTypeAdapterFactory when serializing and deserializing StorageObject. However, GenericData.containsKey returns true for all @key annotated fields even before they are set, causing raw Gson.fromJson to throw JsonSyntaxException ('duplicate key') when deserializing StorageObject.
This replaces raw Gson serialization and deserialization of StorageObject in ApiaryReadRequest and JsonResumableWrite with Google API Client's official JSON parser/serializer via JsonUtils (backed by JsonObjectParser / GsonFactory), resolving the duplicate key deserialization failure in SerializationTest.
lqiu96 added a commit that referenced this pull request Aug 6, 2026
…ble writes and read channels (#13976)
Found when upgradeing gRPC to v1.83.0 (as consequently Gson to v2.14.0)
from #13967
Error:
```
18:19:21:843 [ERROR] Errors: 18:19:21:843 [ERROR] SerializationTest>BaseSerializationTest.testRestorableObjects:67->BaseSerializationTest.serializeAndDeserialize:82 » JsonSyntax duplicate key: bucket
```
Seems to stem from Gson PR
[#3006](google/gson#3006) which added strict
duplicate key detection in MapTypeAdapterFactory.Adapter.read ('if
(map.containsKey(key)) throw ...').
Possible Fix:
Since com.google.api.services.storage.model.StorageObject extends
com.google.api.client.util.GenericData (which implements java.util.Map),
raw Gson selects MapTypeAdapterFactory when serializing and
deserializing StorageObject. However, GenericData.containsKey returns
true for all @key annotated fields even before they are set, causing raw
Gson.fromJson to throw JsonSyntaxException ('duplicate key') when
deserializing StorageObject.
PR to replaces raw Gson serialization and deserialization of
StorageObject in ApiaryReadRequest and JsonResumableWrite with Google
API Client's official JSON parser/serializer via JsonUtils (backed by
JsonObjectParser / GsonFactory), resolving the duplicate key
deserialization failure in SerializationTest.
Co-authored-by: Dhriti07 <56169283+Dhriti07@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.do not mergeIndicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@neozwu@garrettjonesgoogle@googlebot