Skip to content

Commit 849a4e3

Browse files
committed
Polish new Firestore GA jobs
1 parent 4ae8041 commit 849a4e3

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

.github/workflows/test-changed-firestore.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Archive build
4949
if: ${{ !cancelled() && steps.build.outcome != 'success' }}
5050
run: |
51-
tar -cf build.tar --exclude="\.git" .
51+
tar -cf build.tar --exclude=.git .
5252
gzip build.tar
5353
- name: Upload build archive
5454
if: ${{ !cancelled() && steps.build.outcome != 'success' }}
@@ -81,8 +81,7 @@ jobs:
8181
- name: Bump Node memory limit
8282
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
8383
- name: Test setup and yarn install
84-
run: |
85-
cp config/ci.config.json config/project.json
84+
run: cp config/ci.config.json config/project.json
8685
- name: Run compat tests
8786
run: cd packages/firestore-compat && yarn run test:ci
8887

@@ -112,11 +111,41 @@ jobs:
112111
- name: Bump Node memory limit
113112
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
114113
- name: Test setup and yarn install
115-
run: |
116-
cp config/ci.config.json config/project.json
114+
run: cp config/ci.config.json config/project.json
117115
- name: Run tests
118116
run: cd packages/firestore && yarn run ${{ matrix.test-name }}
119117

118+
compat-test-firefox:
119+
name: Test Firestore Compatible on Firefox
120+
# Whatever version of Firefox comes with 22.04 is causing Firefox
121+
# startup to hang when launched by karma. Need to look further into
122+
# why.
123+
runs-on: ubuntu-20.04
124+
needs: build
125+
if: ${{ needs.build.outputs.changed == 'true'}}
126+
steps:
127+
- name: install Firefox stable
128+
run: |
129+
sudo apt-get update
130+
sudo apt-get install firefox
131+
- name: Set up Node (14)
132+
uses: actions/setup-node@v3
133+
with:
134+
node-version: 14.x
135+
- name: Download build archive
136+
uses: actions/download-artifact@v3
137+
with:
138+
name: build.tar.gz
139+
- name: Unzip build artifact
140+
run: tar xf build.tar.gz
141+
- name: Bump Node memory limit
142+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
143+
- name: Test setup and yarn install
144+
run: cp config/ci.config.json config/project.json
145+
- name: Run compat tests
146+
run: cd packages/firestore-compat && yarn run test:ci
147+
env:
148+
BROWSERS: 'Firefox'
120149

121150
test-firefox:
122151
name: Test Firestore on Firefox
@@ -147,8 +176,7 @@ jobs:
147176
- name: Bump Node memory limit
148177
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
149178
- name: Test setup and yarn install
150-
run: |
151-
cp config/ci.config.json config/project.json
179+
run: cp config/ci.config.json config/project.json
152180
- name: Run tests
153181
run: cd packages/firestore && xvfb-run yarn run ${{ matrix.test-name }}
154182
env:

packages/firestore/test/integration/api/database.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ apiDescribe('Database', persistence => {
831831
expect(snap.data()).to.deep.equal(changedData);
832832
// This event could be a metadata change for fromCache as well.
833833
// We comment this line out to reduce flakiness.
834+
834835
// TODO(b/295872012): Figure out a way to check for all scenarios.
835836
// expect(snap.metadata.hasPendingWrites).to.be.false;
836837
});

0 commit comments

Comments
 (0)