Skip to content

Commit e8ba3c2

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

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

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

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

121151
test-firefox:
122152
name: Test Firestore on Firefox
@@ -147,8 +177,7 @@ jobs:
147177
- name: Bump Node memory limit
148178
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
149179
- name: Test setup and yarn install
150-
run: |
151-
cp config/ci.config.json config/project.json
180+
run: cp config/ci.config.json config/project.json
152181
- name: Run tests
153182
run: cd packages/firestore && xvfb-run yarn run ${{ matrix.test-name }}
154183
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)