Skip to content

Commit 29a55bc

Browse files
committed
refactor(integration_tests): remove references to v1 functions
1 parent 5d4a514 commit 29a55bc

File tree

3 files changed

+15
-167
lines changed

3 files changed

+15
-167
lines changed

integration_test/cloudbuild-v2.yaml

Lines changed: 0 additions & 146 deletions
This file was deleted.

integration_test/cloudbuild-v1.yaml renamed to integration_test/cloudbuild.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Cloud Build configuration for Firebase Functions V1 Integration Tests (Python)
2-
# Runs V1 test suites on functions-integration-tests project
3-
# Following the same pattern as JS SDK for reliability
1+
# Cloud Build configuration for Firebase Functions Integration Tests (Python)
2+
# Python SDK only supports 2nd gen functions
3+
# Runs test suites on functions-integration-tests-v2 project
44

55
options:
66
machineType: 'E2_HIGHCPU_8'
@@ -9,7 +9,7 @@ options:
99
timeout: '3600s'
1010

1111
substitutions:
12-
_PROJECT_ID: 'functions-integration-tests' # V1 project
12+
_PROJECT_ID: 'functions-integration-tests-v2'
1313

1414
steps:
1515
# Create storage bucket for test results if it doesn't exist
@@ -67,9 +67,9 @@ steps:
6767
6868
echo "Python SDK built and packaged successfully"
6969
70-
# Step 2: Run V1 integration tests using unified test runner
70+
# Step 2: Run integration tests using unified test runner
7171
- name: 'node:20'
72-
id: 'run-v1-tests'
72+
id: 'run-tests'
7373
entrypoint: 'bash'
7474
args:
7575
- '-c'
@@ -113,9 +113,9 @@ steps:
113113
# Create logs directory
114114
mkdir -p logs
115115
116-
# Set project ID for V1 tests
116+
# Set project ID for tests
117117
export PROJECT_ID=${_PROJECT_ID}
118-
echo "Running V1 tests on project: ${PROJECT_ID}"
118+
echo "Running tests on project: ${PROJECT_ID}"
119119
120120
# Debug: Check if wheel file exists in /workspace
121121
echo "Checking for wheel file..."

integration_test/package.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,13 @@
99
"generate:v2": "node scripts/generate.js 'v2_*'",
1010
"test": "jest --forceExit",
1111
"run-tests": "node scripts/run-tests.js",
12-
"deploy:v1": "cd generated/functions && firebase deploy --only functions --project functions-integration-tests",
13-
"deploy:v2": "cd generated/functions && firebase deploy --only functions --project functions-integration-tests-v2",
14-
"cloudbuild:v1": "cd .. && gcloud builds submit --config=integration_test/cloudbuild-v1.yaml --project=functions-integration-tests .",
15-
"cloudbuild:v2": "cd .. && gcloud builds submit --config=integration_test/cloudbuild-v2.yaml --project=functions-integration-tests-v2 .",
16-
"test:v1:firestore": "PROJECT_ID=functions-integration-tests node scripts/run-tests.js v1_firestore",
17-
"test:v1:all": "PROJECT_ID=functions-integration-tests node scripts/run-tests.js --sequential 'v1_*'",
18-
"test:v1:all:sequential": "PROJECT_ID=functions-integration-tests node scripts/run-tests.js --sequential 'v1_*'",
19-
"test:v1:all:parallel": "PROJECT_ID=functions-integration-tests node scripts/run-tests.js 'v1_*'",
20-
"test:v2:all": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js --sequential 'v2_*'",
21-
"test:v2:all:sequential": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js --sequential 'v2_*'",
22-
"test:v2:all:parallel": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js 'v2_*'",
23-
"cleanup:v1": "./scripts/cleanup-suite.sh --project functions-integration-tests",
24-
"cleanup:v2": "./scripts/cleanup-suite.sh --project functions-integration-tests-v2",
12+
"deploy": "cd generated/functions && firebase deploy --only functions --project functions-integration-tests-v2",
13+
"cloudbuild": "cd .. && gcloud builds submit --config=integration_test/cloudbuild.yaml --project=functions-integration-tests-v2 .",
14+
"test:firestore": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js v1_firestore",
15+
"test:all": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js --sequential 'v1_*'",
16+
"test:all:sequential": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js --sequential 'v1_*'",
17+
"test:all:parallel": "PROJECT_ID=functions-integration-tests-v2 node scripts/run-tests.js 'v1_*'",
18+
"cleanup": "./scripts/cleanup-suite.sh --project functions-integration-tests-v2",
2519
"cleanup:list": "./scripts/cleanup-suite.sh --list-artifacts",
2620
"clean": "rm -rf generated/*",
2721
"hard-reset": "./scripts/hard-reset.sh"

0 commit comments

Comments
 (0)