This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
[SampleGen] 🚀 Enable Google Cloud client library repo support #2954
Labels
Core: Sample-gen
type: process
A process-related concern. May include testing, release, or the like.
🚀 Enable SampleGen functionality for client library repos
» Tracking issue 🐞
Now that
gapic-generator
supports generating code samples in C#, Go, Java, Node.js, PHP, Python, and Ruby, each of the respective client library repositories should enable support for generated code samples so thatautosynth
distributes generated samples for publication.🖋 Sample Authoring [Journey] – (same journey as making library config changes)
googleapis
is updated – (with new sample and/or test configs)autosynth
triggerssynthtool
– (results in new/updated sample/test files being generated)autosynth
creates a Pull Request – (b/c generator output changed including sample/test files)$ sample-tester
)📝 Two changes are required in client library repos to enable support for generated samples:
Update the CI / test scripts to run sample tests (
*.test.yaml
) using$
sample-tester
On a per-API per-Library basis, each
synth.py
needs to be updated to generate samples(intentionally manual process to enable; enabling requires setting
include_samples=True
)This issue tracks
#1
– Enable CI / test scripts to run sample tests (for each language / API)Status / Blocking Issues
In Review
Upcoming (issues not yet filed against library repos)
@googleapis/samplegen
The text was updated successfully, but these errors were encountered: