Skip to content

Commit 9cb98ac

Browse files
authored
Upgrade Firestore emulator to 1.10.4 (#4845)
* Upgrade Firestore emulator to 1.10.4 The emulator now sends resume tokens, which exercises more of the system. In particular, this means that resuming queries now uses the index-free query engine. * Ensure CI runs on script changes
1 parent d4ebc4c commit 9cb98ac

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.github/workflows/firestore.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ on:
2727
- 'CMakeLists.txt'
2828
- 'cmake/**'
2929

30+
# Build scripts
31+
# Note that this doesn't include check scripts because changing those will
32+
# already trigger the check workflow.
33+
- 'scripts/binary_to_array.py'
34+
- 'scripts/build.sh'
35+
- 'scripts/install_prereqs.sh'
36+
- 'scripts/localize_podfile.swift'
37+
- 'scripts/pod_lib_lint.rb'
38+
- 'scripts/run_firestore_emulator.sh'
39+
- 'scripts/setup_*'
40+
- 'scripts/sync_project.rb'
41+
- 'scripts/test_quickstart.sh'
42+
3043
# This workflow
3144
- '.github/workflows/firestore.yml'
3245

scripts/if_changed.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@ else
115115

116116
Firestore-xcodebuild|Firestore-pod-lib-lint)
117117
check_changes '^(Firestore|FirebaseFirestore.podspec|FirebaseFirestoreSwift.podspec|'\
118-
'GoogleUtilities)'
118+
'GoogleUtilities|scripts/run_firestore_emulator.sh)'
119119
;;
120120

121121
Firestore-cmake)
122-
check_changes '^(Firestore/(core|third_party)|cmake|FirebaseCore|GoogleUtilities)'
122+
check_changes '^(Firestore/(core|third_party)|cmake|FirebaseCore|GoogleUtilities|)'\
123+
'scripts/run_firestore_emulator.sh)'
123124
;;
124125

125126
GoogleDataTransport-*)

scripts/run_firestore_emulator.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
set -euo pipefail
2222

23-
VERSION='1.10.2'
23+
VERSION='1.10.4'
2424
FILENAME="cloud-firestore-emulator-v${VERSION}.jar"
2525
URL="https://storage.googleapis.com/firebase-preview-drop/emulator/${FILENAME}"
2626

@@ -84,8 +84,11 @@ function stop() {
8484
fi
8585
}
8686

87-
command="${1:-run}"
88-
shift
87+
command=run
88+
if [[ $# -gt 0 ]]; then
89+
command="$1"
90+
shift
91+
fi
8992

9093
case "${command}" in
9194
run)

0 commit comments

Comments
 (0)