Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
7ca6eee
deploy: the health validation accepts the testConnection switch exact…
colinmegill Nov 3, 2026
645c9a7
ci: every verification job runs through a local make target, so the s…
colinmegill Nov 3, 2026
f6dbde6
tests: the mixed admission run waits for PostgreSQL over TCP, so crea…
colinmegill Nov 3, 2026
9e96c80
recordings: cases name their route by method and path, and the census…
colinmegill Nov 4, 2026
4e7b21c
ci: the committed route census is checked against the source and the …
colinmegill Nov 4, 2026
b05a922
cdk: the server log group keeps a year, as production already does (#…
colinmegill Nov 4, 2026
4a44a8b
polis-api: Treevite waves lock tests wait for what they test, not for…
colinmegill Nov 4, 2026
eff30a8
polis-api: the next-statement isolation test checks slot occupancy an…
colinmegill Nov 4, 2026
e26f4ca
polis-api: the math membership cache test observes the cache's clock …
colinmegill Nov 4, 2026
e10f504
polis-api: the startup line names every route it serves and each swit…
colinmegill Nov 4, 2026
8d8a6c1
polis-api: a test over the real startup wiring proves the next-statem…
colinmegill Nov 4, 2026
992ed77
ci: local make targets for the five hosted suites that had none (#3330)
colinmegill Nov 4, 2026
8916d72
tests: the server integration harness reaches PostgreSQL by 127.0.0.1…
colinmegill Nov 4, 2026
38de7ae
clients report what paints red in the browser console to one server r…
colinmegill Nov 4, 2026
ee47730
ci: every nginx upstream must be a container the production web role …
colinmegill Nov 4, 2026
c3dadc8
Prepare Polis 2.43.1 (#3341)
github-actions[bot] Nov 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/client-errors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Client error reporting
permissions:
contents: read
on:
pull_request:
paths:
- 'client-admin/**'
- 'client-report/**'
- 'client-participation/**'
- 'client-participation-alpha/**'
- 'server/**'
- 'scripts/client-error-prelude.cjs'
- 'file-server/nginx/ROUTING.md'
- 'ci/local/**'
- 'Makefile'
- '.github/workflows/client-errors.yml'
push:
branches: [edge]
concurrency:
group: client-errors-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24.22.1'
- run: make check-client-errors
25 changes: 6 additions & 19 deletions .github/workflows/client-participation-alpha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:
push:
branches: [edge]
paths:
- 'ci/local/**'
- 'Makefile'
- "client-participation-alpha/**"
pull_request:
paths:
- 'ci/local/**'
- 'Makefile'
- "client-participation-alpha/**"

jobs:
Expand All @@ -28,25 +32,8 @@ jobs:
cache: "npm"
cache-dependency-path: client-participation-alpha/package-lock.json

- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: client-participation-alpha

- name: Check formatting
run: npm run format -- --check
working-directory: client-participation-alpha

- name: Run linter
run: npm run lint
working-directory: client-participation-alpha

- name: Run tests with coverage
run: npm run test:coverage
working-directory: client-participation-alpha

- name: Build
run: npm run build
working-directory: client-participation-alpha
- name: Run client-alpha checks
run: make check-client-alpha

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
39 changes: 5 additions & 34 deletions .github/workflows/collective-statement-recordings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ jobs:

# Started by hand rather than as a service: -sharedDb needs a command
# argument, and without it DynamoDB Local keys its data by access key.
- name: Start DynamoDB Local
run: docker run -d --name csrec-dynamodb -p 127.0.0.1:8481:8000 amazon/dynamodb-local:3.3.1@sha256:ff89bd48ff32cd8d9be5fee8873b65b8854dc408f1afe881be6eb00247bc0dab -jar DynamoDBLocal.jar -sharedDb -inMemory

- uses: actions/setup-node@v4
with:
# The recordings were made on this Node; V8's error wording can
Expand All @@ -72,35 +69,9 @@ jobs:
with:
python-version: "3.12"

- name: Install server dependencies and the reset routine's boto3 (delphi's locked versions)
run: |
npm ci --ignore-scripts --prefix server --no-audit --no-fund
python -m pip install --quiet certifi==2026.10.19 boto3==1.34.70 botocore==1.34.162 s3transfer==0.10.4

- name: The harness's own rules (expected differences, refusal of foreign stores, the schema pin against the real migrations)
working-directory: server
env:
CSREC_PG_ADMIN_URL: postgres://postgres:generatedlocal@127.0.0.1:5481/postgres
run: node --test characterization/collective-statement/expected.test.cjs characterization/collective-statement/safety.test.cjs characterization/collective-statement/schema.test.cjs

- name: Replay every recorded case against the current routes
working-directory: server
- name: Run collective-statement-recordings checks
run: make check-collective-statement-recordings
working-directory: .
env:
CSREC_PG_ADMIN_URL: postgres://postgres:generatedlocal@127.0.0.1:5481/postgres
DYNAMODB_ENDPOINT: http://127.0.0.1:8481
CSREC_PYTHON: python
TZ: UTC
run: node characterization/collective-statement/main.cjs replay

- name: Every listed mutation of the route fails exactly its named cases
working-directory: server
env:
CSREC_PG_ADMIN_URL: postgres://postgres:generatedlocal@127.0.0.1:5481/postgres
DYNAMODB_ENDPOINT: http://127.0.0.1:8481
CSREC_PYTHON: python
TZ: UTC
run: node characterization/collective-statement/mutations.cjs

- name: Remove DynamoDB Local
if: always()
run: docker rm -f csrec-dynamodb
GITHUB_EVENT_NAME: ${{ github.event_name }}
CHECK_BASE_REF: origin/${{ github.base_ref }}
46 changes: 5 additions & 41 deletions .github/workflows/delphi-characterization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:

# Started by hand rather than as a service: -sharedDb needs a command
# argument, and without it DynamoDB Local keys its data by access key.
- name: Start DynamoDB Local
run: docker run -d --name p2zero-dynamodb -p 127.0.0.1:8472:8000 amazon/dynamodb-local:3.3.1@sha256:ff89bd48ff32cd8d9be5fee8873b65b8854dc408f1afe881be6eb00247bc0dab -jar DynamoDBLocal.jar -sharedDb -inMemory

- uses: actions/setup-node@v4
with:
node-version: "22.23.4"
Expand All @@ -55,42 +52,9 @@ jobs:
with:
python-version: "3.12"

- name: Install server dependencies
working-directory: server
run: npm ci --ignore-scripts --no-audit --no-fund

- name: Codec golden test (Python writes, reads the file Node wrote)
working-directory: delphi
run: |
python -m pip install --quiet pyyaml
python -m unittest tests.test_delphi_storage_codec -v
python -m unittest tests.test_delphi_postgres_results -v
python -m unittest tests.test_delphi_result_resource -v

- name: Codec golden test (Node reads the files Python wrote, writes the cross file)
working-directory: server
run: npx jest --config characterization/delphi/jest.codec.config.json

- name: Fixtures regenerate byte for byte
run: python3 server/characterization/delphi/generate.py --check

- name: Replay every recorded case against the current routes
working-directory: server
env:
P2ZERO_PG_ADMIN_URL: postgres://postgres:generatedlocal@127.0.0.1:5472/postgres
DYNAMODB_ENDPOINT: http://127.0.0.1:8472
TZ: UTC
run: node characterization/delphi/main.cjs replay

- name: Replay the PostgreSQL baseline
working-directory: server
- name: Run delphi-characterization checks
run: make check-delphi-characterization
working-directory: .
env:
P2ZERO_PG_ADMIN_URL: postgres://postgres:generatedlocal@127.0.0.1:5472/postgres
DYNAMODB_ENDPOINT: http://127.0.0.1:8472
DELPHI_RESULT_BACKEND: postgres
TZ: UTC
run: node characterization/delphi/main.cjs replay

- name: Remove DynamoDB Local
if: always()
run: docker rm -f p2zero-dynamodb
GITHUB_EVENT_NAME: ${{ github.event_name }}
CHECK_BASE_REF: origin/${{ github.base_ref }}
15 changes: 8 additions & 7 deletions .github/workflows/dynamo-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Dynamo removal
on:
pull_request:
paths:
- 'ci/local/**'
- 'Makefile'
- 'delphi/**'
- 'queue-rs/**'
- 'server/**'
Expand Down Expand Up @@ -38,13 +40,12 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22.23.4"
- name: Queue toolchain
working-directory: queue-rs
run: rustup show active-toolchain
- name: Install uv
run: python -m pip install uv==0.13.4
- name: Queue, Postgres results, importer and report with DynamoDB stopped
run: bash scripts/test-dynamo-removal.sh
- name: Run dynamo-removal checks
run: make check-dynamo-removal
working-directory: .
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
CHECK_BASE_REF: origin/${{ github.base_ref }}
- name: Retain proof logs and report screenshots
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/embeddings-table.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Embeddings table
on:
pull_request:
paths:
- 'ci/local/**'
- 'Makefile'
- 'delphi/**'
- 'queue-rs/**'
- 'server/postgres/migrations/**'
Expand Down Expand Up @@ -32,11 +34,12 @@ jobs:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- name: Queue toolchain
working-directory: queue-rs
run: rustup show active-toolchain
- name: Real-model embeddings-table graph, write/read-back, re-run and switch-off parity
run: bash scripts/test-embeddings-table.sh
- name: Run embeddings-table checks
run: make check-embeddings-table
working-directory: .
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
CHECK_BASE_REF: origin/${{ github.base_ref }}
- name: Retain proof logs
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/identity-recordings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
branches: [edge, stable]
paths:
- 'ci/local/**'
- 'Makefile'
- 'server/characterization/**'
- 'queue-rs/polis-api/conformance/identity-run.sh'
- 'server/__tests__/fixtures/identity/**'
Expand Down Expand Up @@ -34,6 +36,8 @@ on:
push:
branches: [edge]
paths:
- 'ci/local/**'
- 'Makefile'
- 'server/characterization/**'
- 'queue-rs/polis-api/conformance/identity-run.sh'
- 'server/__tests__/fixtures/identity/**'
Expand Down Expand Up @@ -88,15 +92,12 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build dependencies before starting the sealed network
run: |
docker pull amazon/dynamodb-local:latest
docker build --target prod --build-arg NODE_ENV=production -t "$P027_SERVER_IMAGE" -f server/Dockerfile .
docker build --build-context queue-rs=queue-rs -t "$P027_POSTGRES_IMAGE" -f server/Dockerfile-db server
docker build -t "$P027_OIDC_IMAGE" oidc-simulator
docker build -t "$P027_FILE_SERVER_IMAGE" --build-arg NODE_ENV=production --build-arg AUTH_AUDIENCE=users --build-arg AUTH_CLIENT_ID=dev-client-id --build-arg AUTH_ISSUER=https://localhost:3000/ --build-arg AUTH_NAMESPACE=https://pol.is/ --build-arg EMBED_SERVICE_HOSTNAME=localhost --build-arg GIT_HASH=characterization -f file-server/Dockerfile .
- name: Record, replay twice, and compare live Node with the committed fixture
run: bash queue-rs/polis-api/conformance/identity-run.sh
- name: Run identity-recordings checks
run: make check-identity-recordings
working-directory: .
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
CHECK_BASE_REF: origin/${{ github.base_ref }}
- name: Preserve all outcomes, including failed oracles
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand All @@ -105,8 +106,3 @@ jobs:
path: |
server/characterization/artifacts/identity-*
!server/characterization/artifacts/identity-provider-tokens.json
- name: Remove the owned stack and temporary simulator tokens
if: always()
run: |
rm -f server/characterization/artifacts/identity-provider-tokens.json
docker compose -f server/characterization/compose.yml -f server/characterization/identity/compose.yml down -v --remove-orphans
11 changes: 4 additions & 7 deletions .github/workflows/jest-client-admin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ concurrency:
on:
pull_request:
paths:
- 'ci/local/**'
- 'Makefile'
- 'client-admin/**'

jobs:
Expand All @@ -24,13 +26,8 @@ jobs:
cache: 'npm'
cache-dependency-path: client-admin/package-lock.json

- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: client-admin

- name: Run Jest tests with coverage
run: npm run test:coverage
working-directory: client-admin
- name: Run client-admin checks
run: make check-client-admin

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/jest-client-report-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ concurrency:
on:
pull_request:
paths:
- 'ci/local/**'
- 'Makefile'
- 'client-report/**'

jobs:
Expand All @@ -22,10 +24,6 @@ jobs:
with:
node-version: "24.22.1"

- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: client-report
- name: Run client-report checks
run: make check-client-report

- name: Run Jest tests
run: npm test
working-directory: client-report
Loading
Loading