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.

fix(stamphog): freeze the clock in the moved engine test (#86383)

Julian Bez667031134288
diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yaml
index b880453cca9b..f628294a7f18 100644
--- a/.github/workflows/ci-security.yaml
+++ b/.github/workflows/ci-security.yaml
@@ -69,6 +69,7 @@ jobs:
- '!products/desktop/**'
- 'services/llm-gateway/**'
- 'services/stripe-mock/**'
+ - 'tools/**'
- '.semgrep/rules/security/**'
- '.github/workflows/ci-security.yaml'
go:
@@ -173,6 +174,7 @@ jobs:
--include /products
--include /services/llm-gateway
--include /services/stripe-mock
+ --include /tools
--exclude products/desktop
--jobs 4
diff --git a/products/stamphog/packages/pr-approval-agent/test_review_local.py b/products/stamphog/packages/pr-approval-agent/test_review_local.py
index 843fd0cafee9..9a0fd4b4e8ec 100644
--- a/products/stamphog/packages/pr-approval-agent/test_review_local.py
+++ b/products/stamphog/packages/pr-approval-agent/test_review_local.py
@@ -5,6 +5,7 @@ from datetime import UTC, datetime
from typing import Any
import pytest
+from freezegun import freeze_time
from unittest.mock import MagicMock
# review_local pulls in review_pr, whose reviewer.py imports claude_agent_sdk (installed by
@@ -342,6 +343,7 @@ def test_absent_review_threads_key_is_a_clean_no_op(monkeypatch) -> None:
assert pr.review_comments == []
+@freeze_time("2026-01-01T12:00:00Z")
def test_fresh_trusted_bot_eyes_reach_pr_data_and_flag_in_flight(monkeypatch) -> None:
# The hosted context now carries raw PR reactions; a fresh 👀 from an allowlisted reviewer bot
# must reach PRData so the offline WAIT check can fire — hard-coding pr_reactions=[] meant