Skip to content
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

ci: enable new CI for eventarc/audit-storage #3969

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions .github/config/nodejs-dev.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"secrets": { }
},
"ignore": [
".github/config/", // prevent changes to exclusions from running all tests
".eslintignore",
".eslintrc.json",
".github/.OwlBot.lock.yaml",
Expand Down Expand Up @@ -106,6 +107,7 @@
"endpoints/getting-started",
"endpoints/getting-started-grpc",
"error-reporting",
"eventarc/audit-storage",
"eventarc/generic",
"functions/concepts/afterResponse",
"functions/concepts/afterTimeout",
Expand Down
2 changes: 1 addition & 1 deletion .github/config/nodejs-prod.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"secrets": { }
},
"ignore": [
".github/config/", // prevent changes to exclusions from running all tests
".eslintignore",
".eslintrc.json",
".github/.OwlBot.lock.yaml",
Expand Down Expand Up @@ -82,7 +83,6 @@
"dialogflow-cx", // NOT_FOUND: com.google.apps.framework.request.NotFoundException: Agent 'undefined' does not exist
"dlp", // [ERR_REQUIRE_ESM]: require() of ES Module
"document-ai", // [ERR_REQUIRE_ESM]: require() of ES Module
"eventarc/audit-storage", // (untested) Environment Variable 'SERVICE_NAME' not found
"eventarc/pubsub", // (untested) Environment Variable 'SERVICE_NAME' not found
"functions/billing", // Error: Request failed with status code 500
"functions/http/uploadFile", // npm error Missing script: "test"
Expand Down
6 changes: 6 additions & 0 deletions eventarc/audit-storage/ci-setup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"env" : {
"SERVICE_NAME" : "eventarc-audit-storage",
"CONTAINER_IMAGE" : "gcr.io/${PROJECT_ID}/run-${SERVICE_NAME}-${RUN_ID}"
}
}
11 changes: 11 additions & 0 deletions eventarc/audit-storage/test/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ function cleanup {
}
trap cleanup EXIT

# temp debugging
echo '#### CI DEBUG ####'
echo "GOOGLE_APPLICATION_CREDENTIALS: ${GOOGLE_APPLICATION_CREDENTIALS}"
echo 'gcloud auth print-access-token'
gcloud auth print-access-token | head -c 42
echo 'gcloud auth print-access-token w/account'
gcloud auth print-access-token [email protected] | head -c 42
echo 'gcloud auth print-identity-token w/account'
gcloud auth print-identity-token [email protected] | head -c 42
echo '#### end CI DEBUG ####'

# TODO: Perform authentication inside the test.
export ID_TOKEN=$(gcloud auth print-identity-token)
export BASE_URL=$(test/url.sh)
Expand Down
Loading