Repository navigation
Expand file tree
/
Copy pathdocker-compose-ci.yml
More file actions
30 lines (30 loc) · 1.92 KB
/
Copy pathdocker-compose-ci.yml
File metadata and controls
30 lines (30 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
services:
trex:
environment:
TREX_DX_ENABLED: "false"
# trex's general API limiter is 5000 requests per 15 minutes, keyed per
# client address. A whole e2e run comes from one address, so the suite
# shares a single bucket: one demosetup shard makes 10,502 gateway
# requests, and once the bucket empties the throttling lands on whatever
# is asking next. It showed up as filtering-barchart timing out on a
# dataset tile that never arrived, because system-portal/dataset/list had
# been answered 429 and the portal rendered "No dataset available" --
# nothing that names a rate limit.
#
# Set here rather than in docker-compose.yml on purpose: the limit is
# doing its job for real traffic, and trex's own note says as much. CI is
# a single trusted caller with no one to protect, so the number only has
# to be high enough never to be the reason a run fails -- roughly five
# times a shard's whole-job total, so no distribution of it can trip.
TREX_API_RATE_LIMIT_MAX: "${TREX__API_RATE_LIMIT_MAX:-50000}"
volumes:
- ./plugins/ui-built:/usr/src/plugins/d2e-ui-pr
# Overlay the e2e-patched MRI/PA seed config onto the image-bundled
# mri-pg-config, whose init seeds the PA config. patch-seed-for-e2e.js sets
# the attrition chart's default attribute to monthOfBirth (Age categories
# shift yearly and break the cohort-builder screenshot baseline). It patches
# the checkout source, but on the trex stack the init runs from the bundled
# copy at /usr/src/bundled-plugins/... (the `-d ./plugins/functions` checkout
# mount is not what gets seeded), so without this overlay the unpatched
# (Age-default) config is used. Single-file bind mount over the bundled seed.
- ./plugins/functions/mri-pg-config/src/db/seeds/03_Config.ts:/usr/src/bundled-plugins/d2e-functions/mri-pg-config/src/db/seeds/03_Config.ts