mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2025-08-06 03:46:57 +02:00
fix(infra): configure gcp utils before upload (#1698)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
- Move authentication setup for GCP into upload command - Update name to be more descriptive for gcs upload - Update references to use new name and remove redundant GCP authentication setup Closes STOR-255
This commit is contained in:
parent
6f15ad546d
commit
5dcfefe2b6
@ -158,7 +158,7 @@ commands:
|
||||
environment:
|
||||
SYNCSTORAGE_RS_IMAGE: app:build
|
||||
|
||||
upload-to-gcs:
|
||||
gcs-configure-and-upload:
|
||||
parameters:
|
||||
source:
|
||||
type: string
|
||||
@ -168,6 +168,10 @@ commands:
|
||||
type: enum
|
||||
enum: ["xml", "json"]
|
||||
steps:
|
||||
- gcp-cli/setup:
|
||||
google_project_id: ETE_GOOGLE_PROJECT_ID
|
||||
gcloud_service_key: ETE_GCLOUD_SERVICE_KEY
|
||||
google_project_number: ETE_GOOGLE_PROJECT_NUMBER
|
||||
- run:
|
||||
name: Upload << parameters.source >> << parameters.extension >> Files to GCS
|
||||
when: always # Ensure the step runs even if previous steps, like test runs, fail
|
||||
@ -247,10 +251,6 @@ jobs:
|
||||
MYSQL_DATABASE: syncstorage
|
||||
resource_class: large
|
||||
steps:
|
||||
- gcp-cli/setup:
|
||||
google_project_id: ETE_GOOGLE_PROJECT_ID
|
||||
gcloud_service_key: ETE_GCLOUD_SERVICE_KEY
|
||||
google_project_number: ETE_GOOGLE_PROJECT_NUMBER
|
||||
- checkout
|
||||
- display-versions
|
||||
- setup-python
|
||||
@ -268,11 +268,11 @@ jobs:
|
||||
# then run-tokenserver-scripts-tests will fail. These tests expect the db to be
|
||||
# configured already, and it appears unit-tests modify the db to the expected state
|
||||
- store-test-results
|
||||
- upload-to-gcs:
|
||||
- gcs-configure-and-upload:
|
||||
source: workflow/test-results
|
||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||
extension: xml
|
||||
- upload-to-gcs:
|
||||
- gcs-configure-and-upload:
|
||||
source: workflow/test-results
|
||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/coverage
|
||||
extension: json
|
||||
@ -432,7 +432,7 @@ jobs:
|
||||
- run-e2e-tests:
|
||||
db: mysql
|
||||
- store-test-results
|
||||
- upload-to-gcs:
|
||||
- gcs-configure-and-upload:
|
||||
source: workflow/test-results
|
||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||
extension: xml
|
||||
@ -461,7 +461,7 @@ jobs:
|
||||
- run-e2e-tests:
|
||||
db: spanner
|
||||
- store-test-results
|
||||
- upload-to-gcs:
|
||||
- gcs-configure-and-upload:
|
||||
source: workflow/test-results
|
||||
destination: gs://ecosystem-test-eng-metrics/syncstorage-rs/junit
|
||||
extension: xml
|
||||
|
Loading…
Reference in New Issue
Block a user