Run CLI network smoke on pull requests

This commit is contained in:
vorotamoroz
2026-07-08 06:35:26 +00:00
parent ef655a2976
commit 18e8b239bf
+13 -6
View File
@@ -1,11 +1,18 @@
# Run the Compose-packaged CLI P2P smoke benchmark. # Run the Compose-packaged CLI P2P smoke benchmark.
# #
# This workflow is intentionally manual/non-required at first. It exercises the # This workflow is intentionally non-required at first. It exercises the local
# local Compose package for CouchDB + Nostr relay + CLI runner, and uploads the # Compose package for CouchDB + Nostr relay + CLI runner, and uploads the
# benchmark JSON results for inspection. # benchmark JSON results for inspection.
name: cli-p2p-compose-smoke name: cli-p2p-compose-smoke
on: on:
pull_request:
paths:
- '.github/workflows/cli-p2p-compose-smoke.yml'
- 'package.json'
- 'package-lock.json'
- 'src/apps/cli/**'
- 'test/bench-network/**'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
cases: cases:
@@ -45,13 +52,13 @@ jobs:
- name: Run Compose P2P smoke benchmark - name: Run Compose P2P smoke benchmark
env: env:
BENCH_CASES: ${{ inputs.cases }} BENCH_CASES: ${{ inputs.cases || 'couchdb-baseline,p2p-direct-local' }}
BENCH_MD_FILE_COUNT: ${{ inputs.md_files }} BENCH_MD_FILE_COUNT: ${{ inputs.md_files || '2' }}
BENCH_MD_MIN_SIZE_BYTES: '128' BENCH_MD_MIN_SIZE_BYTES: '128'
BENCH_MD_MAX_SIZE_BYTES: '256' BENCH_MD_MAX_SIZE_BYTES: '256'
BENCH_BIN_FILE_COUNT: ${{ inputs.bin_files }} BENCH_BIN_FILE_COUNT: ${{ inputs.bin_files || '1' }}
BENCH_BIN_SIZE_BYTES: '512' BENCH_BIN_SIZE_BYTES: '512'
BENCH_COUCHDB_RTT_MS: ${{ inputs.couchdb_rtt_ms }} BENCH_COUCHDB_RTT_MS: ${{ inputs.couchdb_rtt_ms || '20' }}
BENCH_SYNC_TIMEOUT: '180' BENCH_SYNC_TIMEOUT: '180'
BENCH_PEERS_TIMEOUT: '90' BENCH_PEERS_TIMEOUT: '90'
BENCH_LIVESYNC_TEST_TEE: '0' BENCH_LIVESYNC_TEST_TEE: '0'