From c89e587c489a7de478dd94bf168bce09c3b55975 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Sun, 30 Aug 2026 13:19:36 -0700 Subject: [PATCH] [bfops/runner-cache-debug]: CI - Runner cache debugging --- .cargo/config.toml | 2 +- .github/workflows/ci.yml | 46 +++++++++---------- .github/workflows/internal-tests.yml | 3 +- .../bindings-typescript/test-app/package.json | 2 +- .../test-react-router-app/package.json | 2 +- .../test-solid-router/package.json | 2 +- templates/angular-ts/package.json | 2 +- templates/astro-ts/package.json | 2 +- templates/chat-react-ts/package.json | 2 +- templates/hangman-react-ts/package.json | 2 +- .../money-exchange-react-ts/package.json | 2 +- templates/nextjs-ts/package.json | 2 +- templates/nuxt-ts/package.json | 2 +- templates/react-ts/package.json | 2 +- templates/remix-ts/package.json | 2 +- templates/solid-ts/package.json | 2 +- templates/svelte-ts/package.json | 2 +- templates/vue-ts/package.json | 2 +- tools/ci/commands/lint/src/main.rs | 8 ++-- .../commands/module-latest-deps/src/main.rs | 4 +- tools/ci/commands/run-spacetime/src/main.rs | 2 +- tools/ci/commands/smoketests/src/main.rs | 4 +- tools/ci/commands/test/src/main.rs | 7 +++ tools/ci/commands/update-flow/src/main.rs | 4 +- tools/ci/src/main.rs | 2 +- tools/gen-bindings/src/main.rs | 1 + tools/generate-client-api/src/main.rs | 4 +- 27 files changed, 65 insertions(+), 52 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index e0b12c98bca..80bc08b5671 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,7 +3,7 @@ rustflags = ["--cfg", "tokio_unstable"] [alias] llm = "run --package xtask-llm-benchmark --bin llm_benchmark --" -ci = "run -p ci --" +ci = "run -vv -p ci --" spacetime = "ci other-workflows run-spacetime" regen = "run -p regen --" smoketest = "ci smoketests --" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58490f3131b..51335b9ed15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: needs: [merge_queue_noop, lints] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Upload build artifacts (Linux) - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging timeout-minutes: 15 env: CARGO_TARGET_DIR: ${{ github.workspace }}/target @@ -201,7 +201,7 @@ jobs: - name: Build CLI and standalone shell: bash run: | - cargo build --timings --release \ + cargo build -vv --timings --release \ -p spacetimedb-cli \ -p spacetimedb-standalone \ --features spacetimedb-standalone/allow_loopback_http_for_tests @@ -289,7 +289,7 @@ jobs: upload-build-artifacts-windows: needs: [merge_queue_noop, lints] - if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} + if: false name: Upload build artifacts (Windows) runs-on: spacetimedb-windows-runner timeout-minutes: 15 @@ -304,7 +304,7 @@ jobs: smoketest_build_linux: needs: [upload-build-artifacts-linux] name: Build smoketests (Linux) - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging timeout-minutes: 15 env: CARGO_TARGET_DIR: ${{ github.workspace }}/target @@ -334,7 +334,7 @@ jobs: - name: Build smoketest dependencies and archive test binaries shell: bash run: | - cargo run --timings --package ci-smoketests -- --suite "${SMOKETEST_SUITE}" archive --archive-file smoketest-nextest.tar.zst + cargo run -vv --timings --package ci-smoketests -- --suite "${SMOKETEST_SUITE}" archive --archive-file smoketest-nextest.tar.zst shopt -s nullglob precompiled_modules=(target/wasm32-unknown-unknown/release/smoketest_module_*.wasm) @@ -389,7 +389,7 @@ jobs: fail-fast: false matrix: partition: [1] - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging timeout-minutes: 30 env: CARGO_TARGET_DIR: ${{ github.workspace }}/target @@ -573,7 +573,7 @@ jobs: needs: [merge_queue_noop, lints, upload-build-artifacts-linux] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Test Suite - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target @@ -674,7 +674,7 @@ jobs: INSTALLED_WASM_BINDGEN_VERSION="$(wasm-bindgen --version 2>/dev/null | awk '{print $2}' || true)" if [ "${INSTALLED_WASM_BINDGEN_VERSION}" != "${REQUIRED_WASM_BINDGEN_VERSION}" ]; then - cargo install --locked --force wasm-bindgen-cli --version "${REQUIRED_WASM_BINDGEN_VERSION}" + cargo install -vv --locked --force wasm-bindgen-cli --version "${REQUIRED_WASM_BINDGEN_VERSION}" fi wasm-bindgen --version @@ -695,7 +695,7 @@ jobs: index_scan_bench: needs: [merge_queue_noop, lints] - if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} + if: false name: Index Scan Bench runs-on: spacetimedb-benchmark-runner concurrency: @@ -737,13 +737,13 @@ jobs: - *configure-cached-openssl - name: Run index scan benchmark regression check - run: cargo run --release -p spacetimedb-index-scan-gate + run: cargo run -vv --release -p spacetimedb-index-scan-gate lints: needs: [merge_queue_noop] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Lints - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target RUST_BACKTRACE: full @@ -794,7 +794,7 @@ jobs: codeowners_check: if: ${{ github.event_name == 'pull_request' }} name: CODEOWNERS check - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging permissions: contents: read pull-requests: read @@ -829,7 +829,7 @@ jobs: needs: [merge_queue_noop, upload-build-artifacts-linux] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Build and test wasm bindings - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target RUST_BACKTRACE: full @@ -853,7 +853,7 @@ jobs: needs: [merge_queue_noop] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Check that packages are publishable - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging permissions: read-all env: RUST_BACKTRACE: full @@ -881,7 +881,7 @@ jobs: strategy: matrix: include: - - { target: x86_64-unknown-linux-gnu, runner: spacetimedb-new-runner-2 } + - { target: x86_64-unknown-linux-gnu, runner: spacetimedb-new-runner-2-staging } - { target: aarch64-apple-darwin, runner: macos-latest } - { target: x86_64-pc-windows-msvc, runner: windows-latest } runs-on: ${{ matrix.runner }} @@ -939,7 +939,7 @@ jobs: name: Unreal Engine Tests # This can't go on e.g. ubuntu-latest because that runner runs out of disk space. ChatGPT suggested that the general solution tends to be to use # a custom runner. - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging # Disable the tests because they are very flaky at the moment. # TODO: Remove this line and re-enable the `if` line just below here. if: false @@ -1025,7 +1025,7 @@ jobs: cd "$GITHUB_WORKSPACE/sdks/unreal" cargo --version - cargo test -- --test-threads=1 + cargo test -vv -- --test-threads=1 ' cli_docs: @@ -1033,7 +1033,7 @@ jobs: if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Check CLI docs permissions: read-all - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target RUST_BACKTRACE: full @@ -1093,7 +1093,7 @@ jobs: needs: [merge_queue_noop, lints, upload-build-artifacts-linux] # Skip if this is an external contribution. # The license secrets will be empty, so the step would fail anyway. - if: ${{ needs.merge_queue_noop.outputs.skip != 'true' && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) }} + if: false permissions: contents: read checks: write @@ -1239,7 +1239,7 @@ jobs: if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} permissions: contents: read - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target ARTIFACT_SUFFIX: linux @@ -1346,7 +1346,7 @@ jobs: csharp-testsuite: needs: [merge_queue_noop, lints, upload-build-artifacts-linux] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging timeout-minutes: 30 env: CARGO_TARGET_DIR: ${{ github.workspace }}/target @@ -1544,7 +1544,7 @@ jobs: needs: [merge_queue_noop] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: Docs build - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: RUST_BACKTRACE: full steps: @@ -1579,7 +1579,7 @@ jobs: needs: [merge_queue_noop, upload-build-artifacts-linux] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} name: TypeScript - Tests - runs-on: spacetimedb-new-runner-2 + runs-on: spacetimedb-new-runner-2-staging env: CARGO_TARGET_DIR: ${{ github.workspace }}/target RUST_BACKTRACE: full diff --git a/.github/workflows/internal-tests.yml b/.github/workflows/internal-tests.yml index e2301d3da96..57198e22011 100644 --- a/.github/workflows/internal-tests.yml +++ b/.github/workflows/internal-tests.yml @@ -25,8 +25,7 @@ jobs: name: Internal Tests # Skip if not a PR or a push to master # Skip if this is an external contribution. GitHub secrets will be empty, so the step would fail anyway. - if: ${{ (github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master')) - && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) }} + if: false runs-on: ubuntu-latest env: TARGET_OWNER: clockworklabs diff --git a/crates/bindings-typescript/test-app/package.json b/crates/bindings-typescript/test-app/package.json index 8ba058dad9d..7c431dd7a54 100644 --- a/crates/bindings-typescript/test-app/package.json +++ b/crates/bindings-typescript/test-app/package.json @@ -12,7 +12,7 @@ "format": "prettier . --write --ignore-path ../../../.prettierignore", "lint": "eslint . && prettier . --check --ignore-path ../../../.prettierignore", "preview": "vite preview", - "generate": "cargo run -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --project-path server", "spacetime:start": "spacetime start", "spacetime:publish:local": "spacetime publish game --project-path server --server local", diff --git a/crates/bindings-typescript/test-react-router-app/package.json b/crates/bindings-typescript/test-react-router-app/package.json index db0f2d504d2..4b165faa9c2 100644 --- a/crates/bindings-typescript/test-react-router-app/package.json +++ b/crates/bindings-typescript/test-react-router-app/package.json @@ -12,7 +12,7 @@ "format": "prettier . --write --ignore-path ../../../.prettierignore", "lint": "eslint . && prettier . --check --ignore-path ../../../.prettierignore", "preview": "vite preview", - "generate": "cargo run -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path server", "spacetime:start": "spacetime start", "spacetime:publish:local": "spacetime publish game --module-path server --server local", diff --git a/crates/bindings-typescript/test-solid-router/package.json b/crates/bindings-typescript/test-solid-router/package.json index f5dc7bb5842..01a0af04b3a 100644 --- a/crates/bindings-typescript/test-solid-router/package.json +++ b/crates/bindings-typescript/test-solid-router/package.json @@ -9,7 +9,7 @@ "dev": "vite", "build": "vite build", "serve": "vite preview", - "generate": "cargo run -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --replacement ../../../src/index && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path server", "spacetime:start": "spacetime start", "spacetime:publish:local": "spacetime publish game --module-path server --server local", diff --git a/templates/angular-ts/package.json b/templates/angular-ts/package.json index b0cd069cf89..ccda26c5120 100644 --- a/templates/angular-ts/package.json +++ b/templates/angular-ts/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "node scripts/dev.mjs", "build": "ng build", - "generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/astro-ts/package.json b/templates/astro-ts/package.json index 1e194115bb8..0888e22265a 100644 --- a/templates/astro-ts/package.json +++ b/templates/astro-ts/package.json @@ -9,7 +9,7 @@ "preview": "astro preview", "start": "node ./dist/server/entry.mjs", "astro": "astro", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/chat-react-ts/package.json b/templates/chat-react-ts/package.json index a5a081caed2..b4177a49475 100644 --- a/templates/chat-react-ts/package.json +++ b/templates/chat-react-ts/package.json @@ -10,7 +10,7 @@ "lint": "eslint . && prettier . --check --ignore-path ../../.prettierignore", "preview": "vite preview", "test": "vitest run", - "generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path server --server local", "spacetime:publish": "spacetime publish --module-path server --server maincloud" diff --git a/templates/hangman-react-ts/package.json b/templates/hangman-react-ts/package.json index 4076ae402cf..ccb5f1c5ad0 100644 --- a/templates/hangman-react-ts/package.json +++ b/templates/hangman-react-ts/package.json @@ -9,7 +9,7 @@ "format": "prettier . --write --ignore-path ../../.prettierignore", "lint": "eslint . && prettier . --check --ignore-path ../../.prettierignore", "preview": "vite preview", - "generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/money-exchange-react-ts/package.json b/templates/money-exchange-react-ts/package.json index c42682d1744..86e199644b9 100644 --- a/templates/money-exchange-react-ts/package.json +++ b/templates/money-exchange-react-ts/package.json @@ -10,7 +10,7 @@ "lint": "eslint . && prettier . --check --ignore-path ../../.prettierignore", "preview": "vite preview", "test": "vitest run", - "generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/nextjs-ts/package.json b/templates/nextjs-ts/package.json index 9ec40873f49..92ee1799d47 100644 --- a/templates/nextjs-ts/package.json +++ b/templates/nextjs-ts/package.json @@ -8,7 +8,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/nuxt-ts/package.json b/templates/nuxt-ts/package.json index 5c220f3bcc8..6034481ec97 100644 --- a/templates/nuxt-ts/package.json +++ b/templates/nuxt-ts/package.json @@ -7,7 +7,7 @@ "dev": "nuxt dev", "build": "nuxt build", "preview": "nuxt preview", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir module_bindings --module-path spacetimedb && prettier --write module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir module_bindings --module-path spacetimedb && prettier --write module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/react-ts/package.json b/templates/react-ts/package.json index 00765c9e27a..b847cda21ac 100644 --- a/templates/react-ts/package.json +++ b/templates/react-ts/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "tsc -b && vite build", "preview": "vite preview", - "generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path server --server local", "spacetime:publish": "spacetime publish --module-path server --server maincloud" diff --git a/templates/remix-ts/package.json b/templates/remix-ts/package.json index 155dd879d04..4d9f0ee1f0d 100644 --- a/templates/remix-ts/package.json +++ b/templates/remix-ts/package.json @@ -7,7 +7,7 @@ "dev": "npx remix vite:dev", "build": "npx remix vite:build", "start": "npx remix-serve ./build/server/index.js", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/solid-ts/package.json b/templates/solid-ts/package.json index ed5cf238373..973486cce1c 100644 --- a/templates/solid-ts/package.json +++ b/templates/solid-ts/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/svelte-ts/package.json b/templates/svelte-ts/package.json index fb909102b0e..9e0a32f9b07 100644 --- a/templates/svelte-ts/package.json +++ b/templates/svelte-ts/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/templates/vue-ts/package.json b/templates/vue-ts/package.json index 8a41c1f0ef3..5621895c30b 100644 --- a/templates/vue-ts/package.json +++ b/templates/vue-ts/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview", - "generate": "pnpm --dir spacetimedb install && cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", + "generate": "pnpm --dir spacetimedb install && cargo run -vv -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings", "spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --module-path spacetimedb", "spacetime:publish:local": "spacetime publish --module-path spacetimedb --server local", "spacetime:publish": "spacetime publish --module-path spacetimedb --server maincloud" diff --git a/tools/ci/commands/lint/src/main.rs b/tools/ci/commands/lint/src/main.rs index 956d4f44ce4..10bb7c61125 100644 --- a/tools/ci/commands/lint/src/main.rs +++ b/tools/ci/commands/lint/src/main.rs @@ -308,6 +308,7 @@ fn main() -> Result<()> { cmd!( "cargo", "clippy", + "-vv", "--timings", "--all", "--tests", @@ -320,6 +321,7 @@ fn main() -> Result<()> { cmd!( "cargo", "clippy", + "-vv", "--timings", "--no-default-features", "--features=browser", @@ -336,16 +338,16 @@ fn main() -> Result<()> { .dir("crates/bindings-csharp") .run()?; pnpm(["lint"]).run()?; - cmd!("cargo", "test", "--doc", "--target", "wasm32-unknown-unknown") + cmd!("cargo", "test", "-vv", "--doc", "--target", "wasm32-unknown-unknown") .dir("crates/bindings") .run()?; - cmd!("cargo", "test", "--doc").dir("crates/bindings").run()?; + cmd!("cargo", "test", "-vv", "--doc").dir("crates/bindings").run()?; // `bindings` is the only crate we care strongly about documenting, // since we link to its docs.rs from our website. // We won't pass `--no-deps`, though, // since we want everything reachable through it to also work. // This includes `sats` and `lib`. - cmd!("cargo", "doc") + cmd!("cargo", "doc", "-vv") .dir("crates/bindings") // Make `cargo doc` exit with error on warnings, most notably broken links .env("RUSTDOCFLAGS", "--deny warnings") diff --git a/tools/ci/commands/module-latest-deps/src/main.rs b/tools/ci/commands/module-latest-deps/src/main.rs index a9ea0d32d2b..81f4a7fb85b 100644 --- a/tools/ci/commands/module-latest-deps/src/main.rs +++ b/tools/ci/commands/module-latest-deps/src/main.rs @@ -25,7 +25,7 @@ fn main() -> Result<()> { let cli_path = if env::var_os("SPACETIME_BIN").is_some() { ci_common::require_spacetime_bin()? } else { - cmd!("cargo", "build", "-p", "spacetimedb-cli").run()?; + cmd!("cargo", "build", "-vv", "-p", "spacetimedb-cli").run()?; target_dir() .join("debug/spacetimedb-cli") .with_extension(env::consts::EXE_EXTENSION) @@ -33,7 +33,7 @@ fn main() -> Result<()> { // A fresh module gets the latest versions permitted by its dependency constraints rather // than the exact versions pinned in this repository's committed lockfile. - cmd!("cargo", "update").run()?; + cmd!("cargo", "update", "-vv").run()?; cmd!(cli_path, "build", "--module-path", "modules/module-test").run()?; Ok(()) diff --git a/tools/ci/commands/run-spacetime/src/main.rs b/tools/ci/commands/run-spacetime/src/main.rs index 8a387c18fb7..183ba415b78 100644 --- a/tools/ci/commands/run-spacetime/src/main.rs +++ b/tools/ci/commands/run-spacetime/src/main.rs @@ -45,7 +45,7 @@ fn repo_root() -> PathBuf { } fn local_cli() -> Result { - cmd!("cargo", "build", "-p", CLI_NAME, "-p", STANDALONE_NAME).run()?; + cmd!("cargo", "build", "-vv", "-p", CLI_NAME, "-p", STANDALONE_NAME).run()?; let target_dir = env::var_os("CARGO_TARGET_DIR") .map(PathBuf::from) diff --git a/tools/ci/commands/smoketests/src/main.rs b/tools/ci/commands/smoketests/src/main.rs index 3dbf2087fe7..67909ca2de8 100644 --- a/tools/ci/commands/smoketests/src/main.rs +++ b/tools/ci/commands/smoketests/src/main.rs @@ -120,7 +120,7 @@ fn main() -> Result<()> { fn build_cli() -> Result<()> { let mut cmd = Command::new("cargo"); - cmd.args(["build", "--timings", "--release", "-p", "spacetimedb-cli"]); + cmd.args(["build", "-vv", "--timings", "--release", "-p", "spacetimedb-cli"]); run_binary_build(cmd, "Failed to build CLI") } @@ -128,6 +128,7 @@ fn build_standalone() -> Result<()> { let mut cmd = Command::new("cargo"); cmd.args([ "build", + "-vv", "--timings", "--release", "-p", @@ -176,6 +177,7 @@ fn build_precompiled_modules() -> Result<()> { let status = Command::new("cargo") .args([ "build", + "-vv", "--timings", "--workspace", "--release", diff --git a/tools/ci/commands/test/src/main.rs b/tools/ci/commands/test/src/main.rs index 1c57d2b8ab7..c500750a433 100644 --- a/tools/ci/commands/test/src/main.rs +++ b/tools/ci/commands/test/src/main.rs @@ -28,6 +28,7 @@ fn main() -> Result<()> { cmd!( "cargo", "test", + "-vv", "--all", "--exclude", "spacetimedb-smoketests", @@ -47,6 +48,7 @@ fn main() -> Result<()> { cmd!( "cargo", "test", + "-vv", "-p", "spacetimedb", "--features", @@ -61,6 +63,7 @@ fn main() -> Result<()> { cmd!( "cargo", "build", + "-vv", "--release", "-p", "spacetimedb-cli", @@ -75,6 +78,7 @@ fn main() -> Result<()> { cmd!( "cargo", "test", + "-vv", "-p", "spacetimedb-sdk", "--features", @@ -89,6 +93,7 @@ fn main() -> Result<()> { cmd!( "cargo", "test", + "-vv", "-p", "spacetimedb-sdk", "--features", @@ -107,6 +112,7 @@ fn main() -> Result<()> { cmd!( "cargo", "test", + "-vv", "-p", "spacetimedb-durability", "--features", @@ -119,6 +125,7 @@ fn main() -> Result<()> { cmd!( "cargo", "run", + "-vv", "-p", "spacetimedb-codegen", "--example", diff --git a/tools/ci/commands/update-flow/src/main.rs b/tools/ci/commands/update-flow/src/main.rs index 273e5f26efc..d861b3ce20f 100644 --- a/tools/ci/commands/update-flow/src/main.rs +++ b/tools/ci/commands/update-flow/src/main.rs @@ -40,7 +40,7 @@ fn main() -> Result<()> { cmd( "cargo", - ["build", "-p", "spacetimedb-update"] + ["build", "-vv", "-p", "spacetimedb-update"] .into_iter() .chain(common_args.clone()), ) @@ -53,7 +53,7 @@ fn main() -> Result<()> { let root_arg = format!("--root-dir={}", root_dir_string); cmd( "cargo", - ["run", "-p", "spacetimedb-update"] + ["run", "-vv", "-p", "spacetimedb-update"] .into_iter() .chain(common_args.clone()) .chain(["--", "self-install", &root_arg, "--yes"].into_iter()), diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index a6592c4a6cd..e75a539619c 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -116,7 +116,7 @@ fn is_skipped(command: &Command, skips: &[String]) -> bool { } fn run_package(package: &str, args: &[String]) -> Result<()> { - let mut cargo_args = vec!["run", "--timings", "--package", package, "--"]; + let mut cargo_args = vec!["run", "-vv", "--timings", "--package", package, "--"]; cargo_args.extend(args.iter().map(String::as_str)); cmd("cargo", cargo_args).run()?; Ok(()) diff --git a/tools/gen-bindings/src/main.rs b/tools/gen-bindings/src/main.rs index c5cbcf665d2..2c36792470b 100644 --- a/tools/gen-bindings/src/main.rs +++ b/tools/gen-bindings/src/main.rs @@ -55,6 +55,7 @@ fn main() -> Result<()> { run_inherit( "cargo", &[ + "-vv", "spacetime", "generate", "-y", diff --git a/tools/generate-client-api/src/main.rs b/tools/generate-client-api/src/main.rs index e9b794f93a2..bee894f6b3d 100644 --- a/tools/generate-client-api/src/main.rs +++ b/tools/generate-client-api/src/main.rs @@ -30,6 +30,7 @@ fn run_capture(cmd: &str, args: &[&str]) -> Result { let out = Command::new(cmd) .args(args) .stdin(Stdio::null()) + .stderr(Stdio::inherit()) .output() .with_context(|| format!("Failed to start {cmd}"))?; if !out.status.success() { @@ -50,7 +51,7 @@ fn main() -> Result<()> { .unwrap(); // 1) Build prerequisite - run_inherit("cargo", &["build"], Some(workspace_dir))?; + run_inherit("cargo", &["build", "-vv"], Some(workspace_dir))?; // 2) Get schema to a temp file (auto-cleaned) let mut tmp_schema = NamedTempFile::new().context("create temp schema file")?; @@ -58,6 +59,7 @@ fn main() -> Result<()> { "cargo", &[ "run", + "-vv", "-p", "spacetimedb-client-api-messages", "--example",