Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(rust): rebuild the node addons when their path dependencies change (#82412)

Robbiee0ca107ab9bd
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index 7305eaa29899..c747307c7181 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -62,6 +62,11 @@ jobs:
# its Rust tests; a rust-side change (incl. the shared fixtures) must run it.
- 'rust/replay-anonymizer/**'
- 'rust/replay-anonymizer-node/**'
+ # These native addons are built by Turbo before Node.js tests. Their Rust
+ # dependencies are not part of the ingestion consumer's targeted e2e set.
+ - 'rust/cyclotron-core/**'
+ - 'rust/cyclotron-node/**'
+ - 'rust/common/hogvm/**'
- '**/crosslang/**'
# The clientwarnings consumer e2e replays capture's warning envelope from
# this shared fixture. Without it the rust filter below decides, and it only
diff --git a/rust/common/hogvm/node/turbo.json b/rust/common/hogvm/node/turbo.json
new file mode 100644
index 000000000000..21718312a8db
--- /dev/null
+++ b/rust/common/hogvm/node/turbo.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://turbo.build/schema.json",
+ "extends": ["//"],
+ "tasks": {
+ "build": {
+ "inputs": [
+ "src",
+ "build.rs",
+ "Cargo.toml",
+ "Cargo.lock",
+ "$TURBO_ROOT$/rust/common/hogvm/src/**",
+ "$TURBO_ROOT$/rust/common/hogvm/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.toml"
+ ]
+ },
+ "test": {
+ "inputs": [
+ "src",
+ "build.rs",
+ "Cargo.toml",
+ "Cargo.lock",
+ "$TURBO_ROOT$/rust/common/hogvm/src/**",
+ "$TURBO_ROOT$/rust/common/hogvm/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.toml"
+ ]
+ }
+ }
+}
diff --git a/rust/cyclotron-node/turbo.json b/rust/cyclotron-node/turbo.json
new file mode 100644
index 000000000000..e839edff2b19
--- /dev/null
+++ b/rust/cyclotron-node/turbo.json
@@ -0,0 +1,36 @@
+{
+ "$schema": "https://turbo.build/schema.json",
+ "extends": ["//"],
+ "tasks": {
+ "build": {
+ "inputs": [
+ "src",
+ "Cargo.toml",
+ "$TURBO_ROOT$/rust/cyclotron-core/src/**",
+ "$TURBO_ROOT$/rust/cyclotron-core/.sqlx/**",
+ "$TURBO_ROOT$/rust/cyclotron-core/Cargo.toml",
+ "$TURBO_ROOT$/rust/common/compression/src/**",
+ "$TURBO_ROOT$/rust/common/compression/Cargo.toml",
+ "$TURBO_ROOT$/rust/common/metrics/src/**",
+ "$TURBO_ROOT$/rust/common/metrics/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.lock"
+ ]
+ },
+ "test": {
+ "inputs": [
+ "src",
+ "Cargo.toml",
+ "$TURBO_ROOT$/rust/cyclotron-core/src/**",
+ "$TURBO_ROOT$/rust/cyclotron-core/.sqlx/**",
+ "$TURBO_ROOT$/rust/cyclotron-core/Cargo.toml",
+ "$TURBO_ROOT$/rust/common/compression/src/**",
+ "$TURBO_ROOT$/rust/common/compression/Cargo.toml",
+ "$TURBO_ROOT$/rust/common/metrics/src/**",
+ "$TURBO_ROOT$/rust/common/metrics/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.toml",
+ "$TURBO_ROOT$/rust/Cargo.lock"
+ ]
+ }
+ }
+}