Skip to content
Open
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
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# MARK: Docker-specific
.git/
.gitignore
.gitattributes
.dockerignore
**/Dockerfile*
**/docker-compose*.yml

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml
.circleci/

# Documentation
*.md
!README.md
docs/
LICENSE*

# Editor configs
.vscode/
.idea/
*.swp
*.swo
*~

# MARK: Copied from .gitignore
**/.DS_Store
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,25 @@ jobs:
target: x86_64-unknown-linux-musl
binary_ext: ""
arch: x86_64
# TODO: Add back when working
# - platform: linux
# runner: depot-ubuntu-24.04-arm-4
# target: aarch64-unknown-linux-musl
# binary_ext: ""
# arch: aarch64
- platform: windows
runner: depot-ubuntu-24.04-4
target: x86_64-pc-windows-gnu
binary_ext: ".exe"
arch: x86_64
- platform: macos
# Use Linux instead of macOS builders since macOS does not support Docker
runner: depot-ubuntu-24.04-4
target: x86_64-apple-darwin
binary_ext: ""
arch: x86_64
- platform: macos
# Use Linux instead of macOS builders since macOS does not support Docker
runner: depot-ubuntu-24.04-4
target: aarch64-apple-darwin
binary_ext: ""
Expand All @@ -111,9 +119,9 @@ jobs:
run: |
# Use Docker BuildKit
export DOCKER_BUILDKIT=1

# Build the binary using our Dockerfile
docker/engine/build.sh ${{ matrix.target }}
engine/docker/engine/build.sh ${{ matrix.target }}

# Make sure dist directory exists and binary is there
ls -la dist/
Expand Down Expand Up @@ -153,15 +161,12 @@ jobs:
strategy:
matrix:
include:
# TODO(RVT-4479): Add back ARM builder once manifest generation fixed
# - platform: linux/arm64
# runner: depot-ubuntu-24.04-4
# arch_suffix: -arm64
- platform: linux/arm64
runner: depot-ubuntu-24.04-arm-4
arch_suffix: -arm64
- platform: linux/x86_64
runner: depot-ubuntu-24.04-4
# TODO: Replace with appropriate arch_suffix when needed
# arch_suffix: -amd64
arch_suffix: ''
arch_suffix: -amd64
runs-on: ${{ matrix.runner }}
steps:
- name: Setup Docker on macOS
Expand All @@ -188,7 +193,7 @@ jobs:
context: .
push: true
tags: rivetkit/engine:full-${{ steps.vars.outputs.sha_short }}${{ matrix.arch_suffix }}
file: docker/universal/Dockerfile
file: engine/docker/universal/Dockerfile
target: engine-full
platforms: ${{ matrix.platform }}
build-args: |
Expand All @@ -205,7 +210,7 @@ jobs:
context: .
push: true
tags: rivetkit/engine:slim-${{ steps.vars.outputs.sha_short }}${{ matrix.arch_suffix }}
file: docker/universal/Dockerfile
file: engine/docker/universal/Dockerfile
target: engine-slim
platforms: ${{ matrix.platform }}
build-args: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

Expand All @@ -62,11 +62,11 @@ jobs:
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- name: Check
Expand All @@ -80,11 +80,11 @@ jobs:
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- name: Run tests
Expand Down
59 changes: 55 additions & 4 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"!engine/artifacts",
"!engine/sdks",
"!engine/sdks/typescript/api-full",
"!engine/sdks/typescript/runner-protocol"
"!examples/snippets",
"!engine/sdks/typescript/runner-protocol",
"!frontend",
"!rivetkit-openapi/openapi.json",
"!scripts",
Expand All @@ -32,7 +31,8 @@
"rules": {
"recommended": true,
"style": {
"noUselessElse": "off"
"noUselessElse": "off",
"useNodejsImportProtocol": "error"
},
"correctness": {
"noUnusedImports": "warn"
Expand All @@ -41,5 +41,56 @@
"noExplicitAny": "off"
}
}
}
},
"overrides": [
{
"includes": [
"rivetkit-typescript/packages/rivetkit/src/**/*",
"!rivetkit-typescript/packages/rivetkit/src/test/**/*"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"node:crypto": "Use '@/utils/node' getNodeCrypto() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:fs": "Use '@/utils/node' getNodeFsSync() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:fs/promises": "Use '@/utils/node' getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:path": "Use '@/utils/node' getNodePath() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:os": "Use '@/utils/node' getNodeOs() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:child_process": "Use '@/utils/node' getNodeChildProcess() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:stream": "Use '@/utils/node' getNodeStream() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:net": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"node:url": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"crypto": "Use '@/utils/node' getNodeCrypto() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"fs": "Use '@/utils/node' getNodeFsSync() or getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"fs/promises": "Use '@/utils/node' getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"path": "Use '@/utils/node' getNodePath() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"os": "Use '@/utils/node' getNodeOs() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"child_process": "Use '@/utils/node' getNodeChildProcess() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"stream": "Use '@/utils/node' getNodeStream() instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"net": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts",
"url": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts"
}
}
}
}
}
}
},
{
"includes": [
"rivetkit-typescript/packages/rivetkit/src/utils/node.ts"
],
"linter": {
"rules": {
"style": {
"noRestrictedImports": "off"
}
}
}
}
]
}
8 changes: 4 additions & 4 deletions engine/artifacts/errors/api.rate_limited.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/namespace.invalid_name.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.input_too_large.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.key_too_large.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.meta_error.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.not_found.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.simple_error.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.test_error.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading