Skip to content

ci: Add integration test runner scripts for GAPIC Showcase - #997

Merged
robertvoinescu-work merged 1 commit into
googleapis:mainfrom
robertvoinescu-work:chore/integration-tests-ci
Aug 25, 2026
Merged

ci: Add integration test runner scripts for GAPIC Showcase#997
robertvoinescu-work merged 1 commit into
googleapis:mainfrom
robertvoinescu-work:chore/integration-tests-ci

Conversation

@robertvoinescu-work

Copy link
Copy Markdown
Contributor

b/522438834

@robertvoinescu-work
robertvoinescu-work requested a review from a team as a code owner August 25, 2026 18:26

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces integration testing scripts (runintegrationtests.sh and startshowcase.sh) that download, run, and clean up the GAPIC Showcase server to test the Generator solution, alongside updates to .gitignore to ignore the generated showcase files. The review feedback highlights several critical improvements: resolving a compatibility issue on macOS where setsid is unavailable, fixing a bug where set -eo pipefail prevents the version fallback from executing if curl fails, avoiding the deletion of downloaded binaries during cleanup to preserve caching, and ensuring proper quoting of paths and variables to prevent word-splitting issues.

Comment thread startshowcase.sh Outdated
Comment thread runintegrationtests.sh Outdated
Comment thread runintegrationtests.sh
Comment thread startshowcase.sh Outdated
Comment thread startshowcase.sh
Comment thread runintegrationtests.sh
@robertvoinescu-work
robertvoinescu-work merged commit d81ba1f into googleapis:main Aug 25, 2026
11 checks passed
Comment thread runintegrationtests.sh
Comment on lines +32 to +42
echo "Setup GAPIC Showcase for standard integration tests"
./startshowcase.sh --port :7469

export SHOWCASE_ENDPOINT=http://localhost:7469
dotnet test $DOTNET_TEST_ARGS Google.Api.Generator.IntegrationTests

echo "Setup GAPIC Showcase with TLS for PQC integration tests"
./startshowcase.sh --port :7469 --tls

export SHOWCASE_ENDPOINT=https://localhost:7469
dotnet test $DOTNET_TEST_ARGS Google.Api.Generator.IntegrationTests --filter "FullyQualifiedName~Pqc"

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.

Everything should run now under TLS, that's closer to real life.

Suggested change
echo "Setup GAPIC Showcase for standard integration tests"
./startshowcase.sh --port :7469
export SHOWCASE_ENDPOINT=http://localhost:7469
dotnet test $DOTNET_TEST_ARGS Google.Api.Generator.IntegrationTests
echo "Setup GAPIC Showcase with TLS for PQC integration tests"
./startshowcase.sh --port :7469 --tls
export SHOWCASE_ENDPOINT=https://localhost:7469
dotnet test $DOTNET_TEST_ARGS Google.Api.Generator.IntegrationTests --filter "FullyQualifiedName~Pqc"
echo "Setup GAPIC Showcase"
./startshowcase.sh --port :7469 --tls
export SHOWCASE_ENDPOINT=https://localhost:7469
dotnet test $DOTNET_TEST_ARGS Google.Api.Generator.IntegrationTests

Comment thread .gitignore
Comment on lines +14 to +17
/gapic-showcase
/gapic-showcase.exe
/showcase.pid
/showcase.log

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.

Can't we clean up after ourselves instead?

Comment thread startshowcase.sh
pkill -f "gapic-showcase run" 2>/dev/null || true
sleep 1

if [ ! -f gapic-showcase ] && [ ! -f gapic-showcase.exe ]; then

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.

We probably want to always run with the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants