Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --"
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1025,15 +1025,15 @@ jobs:

cd "$GITHUB_WORKSPACE/sdks/unreal"
cargo --version
cargo test -- --test-threads=1
cargo test -vv -- --test-threads=1
'

cli_docs:
needs: [merge_queue_noop]
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/internal-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/bindings-typescript/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion crates/bindings-typescript/test-solid-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion templates/angular-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/astro-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/chat-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/hangman-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/money-exchange-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/nuxt-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/remix-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion templates/vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading
Loading