Repository navigation
ci: stop updating the deleted llm-gateway service in the PostHog upgrade workflow - #1316
Conversation
PR overviewNo security issues were found in this pull request. Reviews
|
There was a problem hiding this comment.
Not approved — this change needs a human reviewer.
Adding the stamphog label gives the same result unless the changed files change.
stamphog can't approve this pull request because it touches .github/workflows/posthog-upgrade.yml, which matches the deny-list's infra_cicd category. Changes to CI/CD workflows are never eligible for automated approval, and that match also put the PR in the "never" tier. The other gates passed, including size (5 lines in 1 file), but they don't override the deny-list. The author should ask a human reviewer, such as a maintainer who owns the CI workflows, to review and merge it.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✗ | matches: infra_cicd in .github/workflows/posthog-upgrade.yml |
| every_file_attested | ✓ | not a bot PR |
| size | ✓ | 5L, 1F substantive — within ceiling |
| tier | ✗ | T2-never because the deny-list matched infra_cicd |
| stamphog 2.9.1 | .stamphog/policy.yml @ unknown · reviewed head 8bfb566 |
SDK performance: posthog-pythonBenchmarks completed. No changes flagged for review. Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate. View all results
Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals. Each shard uses its own runner; compare Before PR against With PR within a row, not across shards. Compared 102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in |
ioannisj
left a comment
There was a problem hiding this comment.
🤖 An AI agent wrote this on behalf of @ioannisj.
No findings. I checked the trimmed retry loop and expected_files against current PostHog/posthog master: services/llm-gateway is gone, and the four remaining files are all there and still pin 8.4.0, so each one changes for 8.4.1.
💡 Motivation and Context
The PostHog Upgrade workflow failed when it tried to open the upgrade PR for
posthoganalytics8.4.1 (run).PostHog/posthog#141580 deleted the
services/llm-gatewaydirectory on 2026-11-27. The workflow still rancd services/llm-gateway && uv add ...after updating the root project. Thecdfailed every time, and the retry loop treated that as PyPI not having the new release yet. It retried 20 times and then failed.This PR removes the
services/llm-gatewayupdate from the retry loop. It also removesservices/llm-gateway/pyproject.tomlandservices/llm-gateway/uv.lockfrom the list of files the workflow expects to change. Without that second change, the next check would fail because those files no longer exist.💚 How did you test it?
I extracted the
runscripts from the updated workflow and ran them against a fresh clone of PostHog/posthog. I used uv 0.13.4 (the version CI uses), GNUsed, andbash -e -o pipefail.pyproject.toml,uv.lock,common/ingestion/acceptance_tests/requirements.txt, andtools/infra-scripts/clitools/requirements.txt.gh, it reuses the existing branch for an older open PR. It skips when the requested version is older than the open PR. It falls back to a version-specific branch when the open PR is in the merge queue.posthogorposthoganalytics.I did not run the steps that need the upgrader app token, since those would open a real PR.
📝 Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Pi (Claude Opus 5.5) found the failure in the job logs, made the change, and checked the workflow steps locally as described above. No changeset is included because this only changes CI and does not affect the published package. After this merges, the workflow needs a manual re-run for
posthoganalytics8.4.1.