Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
473 lines (374 loc) · 19.7 KB
/
Copy pathMakefile
File metadata and controls
473 lines (374 loc) · 19.7 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
## Examples:
# make start - runs against main development `.env` file
# make PROD start - runs against `prod.env` config file
# make TEST e2e - runs tests
# make ENV_FILE=custom.env start - runs against parameters in `custom.env` config file
# make build-web-assets - build and extract web assets
SHELL=/bin/bash
E2E_RUN = cd e2e;
define parse_env_value
$(shell grep -e ^$(1) ${ENV_FILE} | awk -F'[=]' '{gsub(/ /,"");print $$2}')
endef
define parse_env_bool
$(if $(filter false,$(1)),false,true)
endef
# Default environment and settings (dev)
export ENV_FILE = .env
# Serialize configuration selectors and destructive operations, even with make -j.
.NOTPARALLEL:
export CONFIRM_DATA_LOSS DUMP
# Lazy evaluation of expensive environment parsing - only when needed
define get_env_vars
$(eval export TAG = $(call parse_env_value,TAG))
$(eval export GIT_HASH = $(shell git rev-parse HEAD))
$(eval POLIS_BUILD_IDENTITY := $(shell python3 scripts/build_identity.py --format env))
$(eval export POLIS_BUILD_DISTANCE = $(patsubst distance=%,%,$(filter distance=%,$(POLIS_BUILD_IDENTITY))))
$(eval export POLIS_BUILD_SOURCE = $(patsubst source=%,%,$(filter source=%,$(POLIS_BUILD_IDENTITY))))
$(eval export POLIS_BUILD_TAG = $(if $(filter channel=stable,$(POLIS_BUILD_IDENTITY)),v$(patsubst version_base=%,%,$(filter version_base=%,$(POLIS_BUILD_IDENTITY))),))
$(eval POSTGRES_DOCKER_RAW = $(shell echo $(call parse_env_value,POSTGRES_DOCKER) | tr '[:upper:]' '[:lower:]'))
$(eval export POSTGRES_DOCKER = $(call parse_env_bool,$(POSTGRES_DOCKER_RAW)))
$(eval LOCAL_SERVICES_DOCKER_RAW = $(shell echo $(call parse_env_value,LOCAL_SERVICES_DOCKER) | tr '[:upper:]' '[:lower:]'))
$(eval export LOCAL_SERVICES_DOCKER = $(call parse_env_bool,$(LOCAL_SERVICES_DOCKER_RAW)))
$(eval USE_PRODCLONE_RAW = $(shell echo $(call parse_env_value,USE_PRODCLONE) | tr '[:upper:]' '[:lower:]'))
$(eval USE_PRODCLONE = $(call parse_env_bool,$(USE_PRODCLONE_RAW)))
$(eval export DB_INIT_MODE = $(if $(filter true,$(USE_PRODCLONE)),pdb,db))
$(eval export POSTGRES_VOLUME = $(or $(POSTGRES_VOLUME),$(call parse_env_value,POSTGRES_VOLUME),$(if $(filter true,$(USE_PRODCLONE)),prodclone_data,postgres_data)))
# Only set COMPOSE_FILE_ARGS if not already set by environment-specific targets
$(eval COMPOSE_FILE_ARGS ?= -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.self-hosted.yml)
$(eval COMPOSE_FILE_ARGS += $(if $(filter true,$(POSTGRES_DOCKER)),--profile postgres,))
$(eval COMPOSE_FILE_ARGS += $(if $(filter true,$(LOCAL_SERVICES_DOCKER)),--profile local-services,))
endef
# Support for detached mode
DETACH ?= false
DETACH_ARG = $(if $(filter true,$(DETACH)),-d,)
# Default compose file args - will be set lazily when needed
# Set up environment-specific values
define setup_env
$(eval ENV_FILE = $(1))
$(eval TAG = $(call parse_env_value,TAG))
$(eval POSTGRES_DOCKER_RAW = $(shell echo $(call parse_env_value,POSTGRES_DOCKER) | tr '[:upper:]' '[:lower:]'))
$(eval POSTGRES_DOCKER = $(call parse_env_bool,$(POSTGRES_DOCKER_RAW)))
$(eval LOCAL_SERVICES_DOCKER_RAW = $(shell echo $(call parse_env_value,LOCAL_SERVICES_DOCKER) | tr '[:upper:]' '[:lower:]'))
$(eval LOCAL_SERVICES_DOCKER = $(call parse_env_bool,$(LOCAL_SERVICES_DOCKER_RAW)))
$(eval USE_PRODCLONE_RAW = $(shell echo $(call parse_env_value,USE_PRODCLONE) | tr '[:upper:]' '[:lower:]'))
$(eval USE_PRODCLONE = $(call parse_env_bool,$(USE_PRODCLONE_RAW)))
$(eval DB_INIT_MODE = $(if $(filter true,$(USE_PRODCLONE)),pdb,db))
$(eval POSTGRES_VOLUME = $(or $(POSTGRES_VOLUME),$(call parse_env_value,POSTGRES_VOLUME),$(if $(filter true,$(USE_PRODCLONE)),prodclone_data,postgres_data)))
$(eval COMPOSE_FILE_ARGS = $(2))
$(eval COMPOSE_FILE_ARGS += $(if $(filter true,$(POSTGRES_DOCKER)),--profile postgres,))
$(eval COMPOSE_FILE_ARGS += $(if $(filter true,$(LOCAL_SERVICES_DOCKER)),--profile local-services,))
endef
# Function to open psql shell
define psql_shell
@docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} exec postgres \
psql -U $(call parse_env_value,POSTGRES_USER) \
-d $(call parse_env_value,POSTGRES_DB)
endef
PROD:
$(call setup_env,prod.env,-f docker-compose.yml)
TEST:
$(call setup_env,test.env,-f docker-compose.test.yml)
echo_vars:
$(call get_env_vars)
@echo ENV_FILE=${ENV_FILE}
@echo POSTGRES_DOCKER=${POSTGRES_DOCKER}
@echo LOCAL_SERVICES_DOCKER=${LOCAL_SERVICES_DOCKER}
@echo USE_PRODCLONE=${USE_PRODCLONE}
@echo DB_INIT_MODE=${DB_INIT_MODE}
@echo POSTGRES_VOLUME=${POSTGRES_VOLUME}
@echo TAG=${TAG}
pull: echo_vars ## Pull most recent Docker container builds (nightlies)
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} pull
start: echo_vars ## Start all Docker containers
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG}
stop: echo_vars ## Stop all Docker containers
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} down
rm-containers: echo_vars ## Remove Docker containers where (polis_tag="${TAG}")
@echo 'removing filtered containers (polis_tag="${TAG}")'
@-docker rm -f $(shell docker ps -aq --filter "label=polis_tag=${TAG}")
# The helper resolves the same Compose project/volume as the stack. It performs
# inspection and backup before stopping/removing anything in these targets.
SELFHOST_DB = bash scripts/selfhost-db.sh
SELFHOST_COMPOSE = ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE}
rm-volumes: echo_vars ## Remove this project's volumes after a database safety check; keep backups
@$(SELFHOST_DB) remove $(SELFHOST_COMPOSE)
rm-images: echo_vars ## Remove Docker images where (polis_tag="${TAG}")
@echo 'removing filtered images (polis_tag="${TAG}")'
@-docker rmi -f $(shell docker images -q --filter "label=polis_tag=${TAG}")
rm-ALL: echo_vars ## Remove this project's containers and data volumes after a database safety check
@$(SELFHOST_DB) remove-all $(SELFHOST_COMPOSE)
hash: ## Show current short hash
@echo Git hash: ${GIT_HASH}
build: echo_vars ## [Re]Build all Docker containers
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} build
build-no-cache: echo_vars ## Build all Docker containers without cache
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} build --no-cache
start-recreate: echo_vars ## Start all Docker containers with recreated environments
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG} --force-recreate
start-rebuild: echo_vars ## Start all Docker containers, [re]building as needed
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG} --build
start-FULL-REBUILD: rm-ALL ## Back up and remove this project, then rebuild and start
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} build --no-cache
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG}
rebuild-web: echo_vars ## Rebuild and restart just the file-server container and its static assets, and client-participation-alpha
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG} --build --force-recreate file-server client-participation-alpha
rebuild-server: echo_vars ## Rebuild and restart just the server container
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG} --build --force-recreate server
rebuild-delphi: echo_vars ## Rebuild and restart just the delphi container
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG} --build --force-recreate delphi
build-web-assets: ## Build and extract static web assets for cloud deployment to `build` dir
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} create --build --force-recreate file-server
$(MAKE) extract-web-assets
extract-web-assets: ## Extract static web assets from file-server to `build` dir
/bin/rm -rf build
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} cp file-server:/app/build/ build
generate-jwt-keys: ## Generate JWT keys for participant authentication
@echo "Generating JWT keys for participant authentication..."
@if [ -f server/keys/jwt-private.pem ]; then \
echo "JWT keys already exist. Use 'make regenerate-jwt-keys' to overwrite."; \
else \
node server/scripts/generate-jwt-keys.js; \
fi
regenerate-jwt-keys: ## Regenerate JWT keys (overwrites existing)
@echo "Regenerating JWT keys for participant authentication..."
@rm -f server/keys/jwt-private.pem server/keys/jwt-public.pem
@node server/scripts/generate-jwt-keys.js
# Database refresh helpers
refresh-db: echo_vars ## Back up and replace the selected database volume, then restart
@$(SELFHOST_DB) refresh $(SELFHOST_COMPOSE)
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} build --no-cache postgres
docker compose ${COMPOSE_FILE_ARGS} --env-file ${ENV_FILE} up ${DETACH_ARG}
db-dump: echo_vars ## Write a verified cluster dump to ./backups outside Docker
@$(SELFHOST_DB) dump $(SELFHOST_COMPOSE)
db-restore: echo_vars ## Restore DUMP=file.sql.gz into an empty database volume
@$(SELFHOST_DB) restore $(SELFHOST_COMPOSE)
db-backups: echo_vars ## List the nightly dumps retained in the backups volume
@$(SELFHOST_DB) list $(SELFHOST_COMPOSE)
refresh-prodclone: ## Force prodclone mode, drop prodclone volume, and restart from prodclone.dump
$(MAKE) USE_PRODCLONE=true refresh-db
refresh-devdb: ## Force dev DB mode (migrations), drop postgres_data volume, and restart
$(MAKE) USE_PRODCLONE=false refresh-db
# ---------------------------------------------------------------------------- #
# P-022 §C — poller recovery matrix (R01-R12) on a REAL Postgres
# ---------------------------------------------------------------------------- #
# Reuses docker-compose.test.yml's postgres service (built from
# server/Dockerfile-db, which runs polis-migrate during fresh initialization) with docker-compose.recovery.yml overriding the
# host port and making the data directory a tmpfs, so every `up` re-runs initdb
# with the real migrations and nothing survives teardown.
#
# The suite FAILS rather than skips without a Postgres (P-022 §C Acceptance:
# "Missing Postgres is a failing required job, not pytest skip"), so this is the
# supported way to run it.
RECOVERY_PG_PORT ?= 25432
RECOVERY_COMPOSE = POLIS_RECOVERY_PG_PORT=$(RECOVERY_PG_PORT) docker compose \
-f docker-compose.test.yml -f docker-compose.recovery.yml --env-file test.env
RECOVERY_PG_PASSWORD = $(shell grep -e ^POSTGRES_PASSWORD test.env | cut -d= -f2)
RECOVERY_PG_URL = postgresql://postgres:$(RECOVERY_PG_PASSWORD)@127.0.0.1:$(RECOVERY_PG_PORT)/polis-test
# Runs in a SUBSHELL so the `cd` cannot leak into the cleanup trap (which must
# still find this Makefile in the repository root).
RECOVERY_PYTEST = cd $(CURDIR)/delphi && POLIS_TEST_POSTGRES_URL="$(RECOVERY_PG_URL)" uv run --no-sync pytest
test-recovery-up: ## Start the recovery suite's Postgres (real migrations, ephemeral)
python3 ci/host_ports.py database-ports "$(RECOVERY_PG_PORT)"
$(RECOVERY_COMPOSE) up -d --force-recreate postgres
@echo "waiting for postgres to become healthy on port $(RECOVERY_PG_PORT)..."
@cid=$$($(RECOVERY_COMPOSE) ps -q postgres); \
for i in $$(seq 1 60); do \
s=$$(docker inspect -f '{{.State.Health.Status}}' $$cid 2>/dev/null); \
if [ "$$s" = "healthy" ]; then echo "postgres healthy"; exit 0; fi; \
sleep 1; \
done; \
echo "postgres did not become healthy"; exit 1
test-recovery-down: ## Stop and remove the recovery suite's Postgres
$(RECOVERY_COMPOSE) down -v --remove-orphans
test-recovery: ## Run the P-022 recovery matrix (R01-R12) on a real Postgres
@$(MAKE) test-recovery-up
@set -e; trap '$(MAKE) test-recovery-down' EXIT; \
( $(RECOVERY_PYTEST) tests/poller -q -rxX )
test-recovery-races: ## Re-run the deterministic race schedules 20x (P-022 acceptance)
@$(MAKE) test-recovery-up
@set -e; trap '$(MAKE) test-recovery-down' EXIT; \
for i in $$(seq 1 20); do \
echo "=== race iteration $$i/20 ==="; \
( $(RECOVERY_PYTEST) \
tests/poller/recovery/test_r02_newer_revote_during_retry.py \
tests/poller/recovery/test_r04_park_unpark_races.py \
tests/poller/recovery/test_r06_lru_in_flight.py \
tests/poller/recovery/test_r09_partial_tables_readers.py \
tests/poller/recovery/test_atomic_publish.py::test_blocked_zid_does_not_block_other_zid_transactions \
tests/poller/recovery/test_r12_publication_cursor.py \
tests/poller/test_park_rebuild_recovery.py \
-q ) || exit 1; \
done; \
echo "20/20 race iterations passed"
vote-convention-gate: ## P-078: load the vote fixtures at both storage signs and compare every vote suite (PYTHON=, VOTE_GATE_STRICT=1)
ci/vote_convention/run.sh
vote-sign-lint: ## P-078: fail on a new vote-sign literal outside the chokepoint modules
python3 ci/vote_convention/sign_lint.py
e2e-install: e2e/node_modules ## Install Cypress E2E testing tools
$(E2E_RUN) npm ci --ignore-scripts
$(E2E_RUN) npm run install:browser
e2e-run: ## Run E2E tests except those which require 3rd party services
$(E2E_RUN) npm run test
e2e-run-all: ## Run E2E tests: all
$(E2E_RUN) npm run test:all
e2e-run-interactive: ## Run E2E tests: interactively
$(E2E_RUN) npx cypress open
psql-shell: echo_vars ## Open psql shell for the default environment
@if [ "${POSTGRES_DOCKER}" != "true" ]; then \
echo "PostgreSQL is not running in Docker. Exiting."; \
exit 1; \
fi
$(call psql_shell)
start-prodclone: ## Start with production clone database (USE_PRODCLONE=true)
$(MAKE) USE_PRODCLONE=true start
# Helpful CLI shortcuts
rbs: start-rebuild
%:
@true
.PHONY: help start stop db-dump db-restore db-backups \
build-no-cache build-web-assets \
e2e-install e2e-run e2e-run-all e2e-run-interactive \
extract-web-assets generate-jwt-keys hash psql-shell pull \
rebuild-delphi rebuild-server rebuild-web \
refresh-db refresh-devdb refresh-prodclone regenerate-jwt-keys \
rm-ALL rm-containers rm-images rm-volumes \
start-FULL-REBUILD start-prodclone start-rebuild start-recreate \
test-recovery test-recovery-up test-recovery-down test-recovery-races \
vote-convention-gate vote-sign-lint
help: ## Show this help message
@echo 'Usage: make <command>'
@echo
@echo 'where <command> can be one or more of the following:'
@echo
@grep -E '^[a-zA-Z0-9_-]+:.*##' $(MAKEFILE_LIST) | \
sed 's/:.*##/|/' | \
awk -F'|' '{printf "\033[36m%-24s\033[0m %s\n", $$1, $$2}'
@echo
@echo 'By default, runs against the configuration specified in `.env` file (see `example.env` for a template).'
@echo
@echo 'As specified above, the config file can be overridden using `PROD` or `TEST` commands, and a custom config file'
@echo 'can also be specified by explicitly setting the `ENV_FILE` variable, like: `make ENV_FILE=custom.env <command>`.'
@echo
@echo 'To run docker compose in detached mode, set DETACH=true, like: `make DETACH=true start`.'
@echo
@echo 'Note that different values of `TAG` specified in your config file will result in different container and asset'
@echo 'builds, which can be useful for (e.g.) testing out features while preserving mainline branch builds.'
.DEFAULT_GOAL := help
# Hosted verification commands with local entry points.
.PHONY: check-client-alpha
check-client-alpha: ## Run the client-alpha verification commands
@bash ci/local/client-alpha.sh
.PHONY: check-client-admin
check-client-admin: ## Run the client-admin verification commands
@bash ci/local/client-admin.sh
.PHONY: check-client-report
check-client-report: ## Run the client-report verification commands
@bash ci/local/client-report.sh
.PHONY: check-client-topic-map
check-client-topic-map: ## Run the topic map package's tests
@bash ci/local/client-topic-map.sh
.PHONY: check-client-topic-map-embed
check-client-topic-map-embed: ## Run the topic map page's tests and build
@bash ci/local/client-topic-map-embed.sh
.PHONY: check-lint
check-lint: ## Run the lint verification commands
@bash ci/local/lint.sh
.PHONY: check-job-provenance
check-job-provenance: ## Run the job-provenance verification commands
@bash ci/local/job-provenance.sh
.PHONY: check-vote-sign-lint
check-vote-sign-lint: ## Run the vote-sign-lint verification commands
@bash ci/local/vote-sign-lint.sh
.PHONY: check-coordinator
check-coordinator: ## Run the coordinator verification commands
@bash ci/local/coordinator.sh
.PHONY: check-job-views
check-job-views: ## Run job-views checks
@bash ci/local/job-views.sh
.PHONY: check-route-census
check-route-census: ## Compare the committed route census with source and runtime
bash ci/local/route-census.sh
.PHONY: check-routing-recordings
check-routing-recordings: ## Run routing-recordings checks
@bash ci/local/routing-recordings.sh
.PHONY: check-queue-rs
check-queue-rs: ## Run queue-rs checks
@bash ci/local/queue-rs.sh
.PHONY: check-polis-migrate
check-polis-migrate: ## Run polis-migrate checks
@bash ci/local/polis-migrate.sh
.PHONY: check-polis-topic-map
check-polis-topic-map: ## Run the topic map generator's checks
@bash ci/local/polis-topic-map.sh
.PHONY: check-job-graphs
check-job-graphs: ## Run job-graphs checks
@bash ci/local/job-graphs.sh
.PHONY: check-vote-conventions
check-vote-conventions: ## Run vote-conventions checks
@bash ci/local/vote-conventions.sh
.PHONY: check-mixed-identity
check-mixed-identity: ## Run mixed-identity checks
@bash ci/local/mixed-identity.sh
.PHONY: check-dynamo-removal
check-dynamo-removal: ## Run dynamo-removal checks
@bash ci/local/dynamo-removal.sh
.PHONY: check-embeddings-table
check-embeddings-table: ## Run embeddings-table checks
@bash ci/local/embeddings-table.sh
.PHONY: check-tls-trust
check-tls-trust: ## Run tls-trust checks
@bash ci/local/tls-trust.sh
.PHONY: check-identity-recordings
check-identity-recordings: ## Run identity-recordings checks
@bash ci/local/identity-recordings.sh
.PHONY: check-treevite-recordings
check-treevite-recordings: ## Run treevite-recordings checks
@bash ci/local/treevite-recordings.sh
.PHONY: check-post-comments-recordings
check-post-comments-recordings: ## Run post-comments-recordings checks
@bash ci/local/post-comments-recordings.sh
.PHONY: check-polis-cli-differential
check-polis-cli-differential: ## Run polis-cli-differential checks
@bash ci/local/polis-cli-differential.sh
.PHONY: check-polis-api
check-polis-api: ## Run polis-api checks
@bash ci/local/polis-api.sh
.PHONY: check-collective-statement-recordings
check-collective-statement-recordings: ## Run collective-statement-recordings checks
@bash ci/local/collective-statement-recordings.sh
.PHONY: check-delphi-characterization
check-delphi-characterization: ## Run delphi-characterization checks
@bash ci/local/delphi-characterization.sh
.PHONY: check-server-integration
check-server-integration: ## Run server-integration checks
@bash ci/local/server-integration.sh
.PHONY: check-delphi-python-tests
check-delphi-python-tests: ## Run delphi-python-tests checks
@bash ci/local/delphi-python-tests.sh
.PHONY: check-polis-cli
check-polis-cli: ## Run polis-cli checks
@bash ci/local/polis-cli.sh
.PHONY: check-dynamo-writers
check-dynamo-writers: ## Run dynamo-writers checks
@bash ci/local/dynamo-writers.sh
.PHONY: check-delphi-result-reads
check-delphi-result-reads: ## Run delphi-result-reads checks
@bash ci/local/delphi-result-reads.sh
.PHONY: check-production-import
check-production-import: ## Run production-import checks
@bash ci/local/production-import.sh
.PHONY: check-delphi-shadow-cpu-priority
check-delphi-shadow-cpu-priority: ## Run the Delphi shadow's CPU priority load test (a quiet host)
@bash ci/local/delphi-shadow-cpu-priority.sh
.PHONY: check-shadow-graph-recovery
check-shadow-graph-recovery: ## Run the Delphi shadow's job graph recovery proofs in Docker
@bash ci/local/shadow-graph-recovery.sh
.PHONY: check-client-errors
check-client-errors: ## Run client error reporting behaviour and path checks
@bash ci/local/client-errors.sh
.PHONY: check-nginx-upstreams
check-nginx-upstreams: ## Check that production starts every nginx upstream
@python3 file-server/nginx/test-production-upstreams.py
.PHONY: check-host-ports
check-host-ports:
bash ci/local/host-ports.sh