chore(ci): smoke the sandbox agent inside the image build - #106654
trunk-io[bot] merged 2 commits into
Conversation
🤖 CI report🚨 Trunk lane — universal laneThis PR is assigned to the universal lane. It cannot merge in parallel with other PRs, so it can take longer to merge. Ask dev-ex if you think this is wrong.
|
| First copy | Second copy | Lines | Tokens |
|---|---|---|---|
products/experiments/backend/hogql_queries/breakdown_injector.py:252 |
products/experiments/backend/hogql_queries/breakdown_injector.py:336 |
31 | 213 |
posthog/api/test/test_signup.py:1046 |
posthog/api/test/test_signup.py:1091 |
21 | 165 |
products/experiments/backend/hogql_queries/experiment_funnel_query_builder.py:223 |
products/experiments/backend/hogql_queries/experiment_funnel_query_builder.py:341 |
29 | 161 |
products/experiments/backend/hogql_queries/utils.py:513 |
products/experiments/backend/hogql_queries/utils.py:608 |
37 | 161 |
products/experiments/backend/hogql_queries/breakdown_injector.py:131 |
products/experiments/backend/hogql_queries/breakdown_injector.py:382 |
15 | 125 |
products/experiments/backend/hogql_queries/breakdown_injector.py:213 |
products/experiments/backend/hogql_queries/breakdown_injector.py:298 |
15 | 121 |
products/experiments/backend/hogql_queries/breakdown_injector.py:88 |
products/experiments/backend/hogql_queries/experiment_breakdown_attribution_query_builder.py:271 |
12 | 120 |
products/experiments/backend/hogql_queries/breakdown_injector.py:152 |
products/experiments/backend/hogql_queries/experiment_breakdown_attribution_query_builder.py:297 |
13 | 120 |
products/experiments/backend/hogql_queries/breakdown_injector.py:227 |
products/experiments/backend/hogql_queries/breakdown_injector.py:312 |
13 | 120 |
products/experiments/backend/hogql_queries/breakdown_injector.py:89 |
products/experiments/backend/hogql_queries/breakdown_injector.py:205 |
11 | 109 |
products/experiments/backend/hogql_queries/breakdown_injector.py:239 |
products/experiments/backend/hogql_queries/breakdown_injector.py:325 |
14 | 101 |
products/experiments/backend/hogql_queries/experiment_funnels_query_runner.py:204 |
products/experiments/backend/hogql_queries/experiment_trends_query_runner.py:401 |
11 | 88 |
products/experiments/backend/hogql_queries/breakdown_injector.py:134 |
products/experiments/backend/hogql_queries/breakdown_injector.py:181 |
14 | 85 |
products/experiments/backend/hogql_queries/breakdown_injector.py:159 |
products/experiments/backend/hogql_queries/breakdown_injector.py:211 |
11 | 85 |
products/experiments/backend/hogql_queries/trends_statistics_v2_continuous.py:92 |
products/experiments/backend/hogql_queries/trends_statistics_v2_count.py:66 |
15 | 79 |
products/experiments/backend/hogql_queries/utils.py:322 |
products/experiments/backend/hogql_queries/utils.py:339 |
17 | 78 |
✅ Duplication (TypeScript) — clean
New TypeScript code duplication introduced by this branch. Fails at 70+ tokens in app code, or 150+ tokens when both copies live in test files. Advisory while the gate proves itself: extract a shared helper instead of copying.
|
[High risk] Moves agent validation from CI workflow into the container image build. The PR appears safe to merge; no new actionable issue was established. Reviews (2) · Last reviewed commit: "chore(ci): smoke the sandbox agent insid..." |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository: PostHog/posthog/.coderabbit.yaml Review profile: QUIET Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: PostHog/posthog/.coderabbit.yaml Review profile: QUIET Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe Dockerfile checks that the installed Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No concrete issue requiring a fix before merge was established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ❌ 1❌ Failed checks (1 warning)
Full details: Description checkExplanation The description clearly explains the problem and implementation, but it omits required template sections for testing, release status, automatic notifications, and docs updates. Because the change modifies CI wiring, it also uses a text table instead of the required before-and-after Mermaid flowcharts. Agent context is missing if an agent authored or assisted with the PR. Resolution Add a completed “How did you test this code?” section with executed tests and limitations, select exactly one release-status option, complete the automatic notifications and docs-update sections, and include the required before-and-after Mermaid flowcharts for the CI change. Add the Agent context section if applicable. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
8bbeea7 to
62f3642
Compare
👀 Auto-assigned reviewersThese soft owners were skipped because they only have minor changes here. Nothing blocks merge, so self-assign if you'd like a look:
Soft owners come from each directory's |
62f3642 to
34ad507
Compare
|
Stacked PR 106658 failed testing in the merge queue. Please investigate the failure and re-submit the stack. |
34ad507 to
9d90965
Compare
9d90965 to
4e75682
Compare
|
This pull request was merged into |

Problem
Every sandbox image build spends about a minute re-pulling the image it just pushed, to run two one-second checks (run 36044984574, step "Smoke the installed agent on both architectures": 66 s).
RUNin the Dockerfile execute natively during the build.Changes
@posthog/agentversion against the pin and runsagent-server --helpin the last layer of the image, after the skills and the shims, on both platforms, natively.linux/amd64andlinux/arm64, so a half-pushed image still fails the smoke check.