Skip to content

Commit ecff1ed

Browse files
committed
api: Use batch-based narrow updates for marking messages as read.
Fixes #820.
1 parent 9960360 commit ecff1ed

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/zulip-ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ jobs:
4848
runs-on: ubuntu-latest
4949
name: ${{ matrix.name }} (Zulip ${{matrix.server_version}})
5050
container: ${{ matrix.docker_image }}
51+
services:
52+
rabbitmq:
53+
image: rabbitmq:3.13
54+
ports:
55+
- 5672:5672
56+
options: >-
57+
--health-cmd "rabbitmq-diagnostics -q ping"
58+
--health-interval 10s
59+
--health-timeout 5s
60+
--health-retries 10
5161
env:
5262
# GitHub Actions sets HOME to /github/home which causes
5363
# problem later in provison and frontend test that runs
@@ -56,6 +66,8 @@ jobs:
5666
# /home/github/.pgpass and setting home to `/home/github/`
5767
# ensures it written there because we write it to ~/.pgpass.
5868
HOME: /home/github/
69+
RABBITMQ_HOST: rabbitmq
70+
RABBITMQ_PORT: "5672"
5971

6072
steps:
6173
- name: "Check out python-zulip-api"
@@ -72,14 +84,13 @@ jobs:
7284

7385
- name: Install dependencies
7486
run: |
87+
sudo apt-get update
88+
sudo apt-get install -y rabbitmq-server
89+
sudo rabbitmq-server -detached
90+
sleep 10
7591
cd server
76-
# This is the main setup job for the test suite
7792
./tools/ci/setup-backend --skip-dev-db-build
7893
79-
# Cleaning caches is mostly unnecessary in GitHub Actions, because
80-
# most builds don't get to write to the cache.
81-
# scripts/lib/clean_unused_caches.py --verbose --threshold 0
82-
8394
- name: Replace dependency with the latest python-zulip-api
8495
run: |
8596
cd server

0 commit comments

Comments
 (0)