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(ci): stop the rust crate version checks from timing out (#127240)

Robbiea925ce7928ec
diff --git a/.github/workflows/build-deltalite.yml b/.github/workflows/build-deltalite.yml
index 18ac80d32fb0..41c5fb429439 100644
--- a/.github/workflows/build-deltalite.yml
+++ b/.github/workflows/build-deltalite.yml
@@ -34,19 +34,24 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
- fetch-depth: 0
- filter: blob:none
+ sparse-checkout: |
+ .github/actions/paths-filter
+ .github/scripts/post-reminder-section.mjs
+ frontend/bin/ci-report/update-ci-report.mjs
+ rust/deltalite/python/Cargo.toml
+ rust/deltalite/python/pyproject.toml
+ sparse-checkout-cone-mode: false
- name: Check if rust/deltalite/python/ or the workflow has changed
id: changed-files
if: github.event_name == 'pull_request'
- uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
+ uses: ./.github/actions/paths-filter
with:
- files_yaml: |
+ filters: |
deltalite:
- - rust/deltalite/python/**
+ - 'rust/deltalite/python/**'
workflow:
- - .github/workflows/build-deltalite.yml
+ - '.github/workflows/build-deltalite.yml'
- name: Check if version was bumped
shell: bash
@@ -54,8 +59,8 @@ jobs:
if: github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- DELTALITE_CHANGED: ${{ steps.changed-files.outputs.deltalite_any_changed }}
- WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow_any_changed }}
+ DELTALITE_CHANGED: ${{ steps.changed-files.outputs.deltalite }}
+ WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != 'PostHog/posthog' }}
run: |
deltalite_release_needed='false'
diff --git a/.github/workflows/build-hogql-parser-rs.yml b/.github/workflows/build-hogql-parser-rs.yml
index 7da9ffa0143b..9db26f52ef8d 100644
--- a/.github/workflows/build-hogql-parser-rs.yml
+++ b/.github/workflows/build-hogql-parser-rs.yml
@@ -27,19 +27,24 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
- fetch-depth: 0
- filter: blob:none
+ sparse-checkout: |
+ .github/actions/paths-filter
+ .github/scripts/post-reminder-section.mjs
+ frontend/bin/ci-report/update-ci-report.mjs
+ rust/hogql/parser/Cargo.toml
+ rust/hogql/parser/pyproject.toml
+ sparse-checkout-cone-mode: false
- name: Check if rust/hogql/parser/ or the workflow has changed
id: changed-files
if: github.event_name == 'pull_request'
- uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
+ uses: ./.github/actions/paths-filter
with:
- files_yaml: |
+ filters: |
parser:
- - rust/hogql/parser/**
+ - 'rust/hogql/parser/**'
workflow:
- - .github/workflows/build-hogql-parser-rs.yml
+ - '.github/workflows/build-hogql-parser-rs.yml'
- name: Check if version was bumped
shell: bash
@@ -48,8 +53,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# A manual dispatch is already a release decision, so it checks the version
# without asking which files changed.
- PARSER_CHANGED: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.changed-files.outputs.parser_any_changed }}
- WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow_any_changed }}
+ PARSER_CHANGED: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.changed-files.outputs.parser }}
+ WORKFLOW_CHANGED: ${{ steps.changed-files.outputs.workflow }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != 'PostHog/posthog' }}
run: |
parser_release_needed='false'
diff --git a/.github/workflows/publish-replay-anonymizer-crate.yml b/.github/workflows/publish-replay-anonymizer-crate.yml
index 57b29c30dd13..b14639d4059d 100644
--- a/.github/workflows/publish-replay-anonymizer-crate.yml
+++ b/.github/workflows/publish-replay-anonymizer-crate.yml
@@ -30,20 +30,27 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ sparse-checkout: |
+ .github/actions/paths-filter
+ .github/scripts/post-reminder-section.mjs
+ frontend/bin/ci-report/update-ci-report.mjs
+ rust/replay-anonymizer/Cargo.toml
+ sparse-checkout-cone-mode: false
- name: Check if crate code changed
id: changed-files
- uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5
+ uses: ./.github/actions/paths-filter
with:
- files_yaml: |
+ filters: |
crate:
- - rust/replay-anonymizer/**
+ - 'rust/replay-anonymizer/**'
- name: Compare crate version against crates.io
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- CRATE_CHANGED: ${{ steps.changed-files.outputs.crate_any_changed }}
+ CRATE_CHANGED: ${{ steps.changed-files.outputs.crate }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
if [[ "$CRATE_CHANGED" != 'true' ]]; then