Repository navigation
fix(artifacts): stringify GcsArtifactService customMetadata values - #935
Merged
AmaadMartin merged 2 commits intoSep 24, 2026
Merged
AmaadMartin merged 2 commits into
AmaadMartin merged 2 commits into
Conversation
added 2 commits
September 23, 2026 14:11
Google Cloud Storage object custom metadata is a map<string, string>, so a number or a boolean value is not storable. adk-python coerces every value with str() before the upload; adk-js passed the caller's map through verbatim. The GCS test double stored any value, so the shared suite passed on a permissive fake. The fake now rejects a non-string value the way real GCS does, and the shared suite expects stringified values for that backend.
The options interface and its module-level helper were 33 lines of scaffolding for one boolean. A boolean parameter and a local closure keep the identity-when-false semantics and return the assertion sites to one line.
Collaborator
|
Merging in about 6h unless someone objects. Close this PR, add |
Collaborator
|
Merging in about 1h unless someone objects. Close this PR, add |
adk-foundry-approver
approved these changes
Sep 24, 2026
adk-foundry-approver
left a comment
Collaborator
There was a problem hiding this comment.
Approved automatically by ADK Foundry. No human has read this change.
This approval attests only that the change passed the gates below, all
enforced in code:
- the merge critic read the diff and approved it (93.9% precision measured
against 107 upstream pull requests with known maintainer outcomes) - ? changed lines across ? file(s), inside the 200/5 ceiling
- no auth, credential, security, release or dependency-manifest path touched
- required checks green, re-verified immediately before this approval
- opened 25h ago and visible as
automerge: scheduledthroughout,
with no objection from anyone
To stop this merging, close the pull request or add status/on-hold. To stop
the mechanism entirely, revoke this account's access; delivery continues and
nothing merges.
Merged
prasanna8585
pushed a commit
to prasanna8585/adk-js
that referenced
this pull request
Nov 10, 2026
…oogle#935) * fix(artifacts): stringify GcsArtifactService customMetadata values Google Cloud Storage object custom metadata is a map<string, string>, so a number or a boolean value is not storable. adk-python coerces every value with str() before the upload; adk-js passed the caller's map through verbatim. The GCS test double stored any value, so the shared suite passed on a permissive fake. The fake now rejects a non-string value the way real GCS does, and the shared suite expects stringified values for that backend. * test(artifacts): fold the metadata expectation into a boolean parameter The options interface and its module-level helper were 33 lines of scaffolding for one boolean. A boolean parameter and a local closure keep the identity-when-false semantics and return the assertion sites to one line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to Issue or Description of Change
Problem: Google Cloud Storage custom metadata accepts only string values, so
GcsArtifactService.saveArtifactfails whencustomMetadatacontains numbers or booleans.Solution: Convert every
customMetadatavalue to a string withString(value)before saving the object to Google Cloud Storage, matchingadk-python.Testing Plan
Checklist