fix(sidecar): keep multi-VM hosts fair — flush queued events, round-robin the stdio loop, rotate the emit round, report control EOF honestly #679
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: bench | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 9 * * *" | |
| jobs: | |
| bench-gate: | |
| name: Runtime benchmark gate | |
| if: github.event_name != 'pull_request' || github.base_ref == 'main' || contains(github.event.pull_request.labels.*.name, 'aggregate-ci') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-wasip1 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| targets: wasm32-wasip1 | |
| - run: pnpm install --frozen-lockfile --filter '@rivet-dev/agentos-runtime-benchmarks...' --filter '@rivet-dev/agentos-runtime-core...' --filter '@rivet-dev/agentos-build-tools' | |
| - run: cargo build --release -p agentos-native-sidecar | |
| - run: cargo build --release -p agentos-native-baseline | |
| - run: cargo build --release --target wasm32-wasip1 -p agentos-native-baseline | |
| - run: make -C toolchain pr-commands | |
| - run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require-coreutils | |
| - run: pnpm --dir packages/runtime-core build | |
| - run: pnpm --dir packages/runtime-benchmarks bench:check | |
| - run: pnpm --dir packages/runtime-benchmarks bench:gate | |
| env: | |
| AGENTOS_SIDECAR_BIN: ${{ github.workspace }}/target/release/agentos-native-sidecar | |
| NATIVE_BASELINE_BIN: ${{ github.workspace }}/target/release/agentos-native-baseline | |
| NATIVE_BASELINE_WASM: ${{ github.workspace }}/target/wasm32-wasip1/release/agentos-native-baseline.wasm |