Skip to content

chore(flags): bump posthog-analytics to 7.10.2#53740

Merged
patricio-posthog merged 5 commits into
masterfrom
patricio/bump-posthoganalytics-7.10.2
Apr 9, 2026
Merged

chore(flags): bump posthog-analytics to 7.10.2#53740
patricio-posthog merged 5 commits into
masterfrom
patricio/bump-posthoganalytics-7.10.2

Conversation

@patricio-posthog
Copy link
Copy Markdown
Contributor

Summary

Bumps posthoganalytics from 7.9.12 to 7.10.2 to pick up the configurable local evaluation endpoint feature. This is the final step to route PostHog's internal SDK polling from Django to the Rust /flags/definitions endpoint.

Context

This is part of the migration to the new Rust endpoint for local eval. Three PRs work together:

  1. Python SDK: chore: configurabel endpoint for flags local evaluation posthog-python#483 adds POSTHOG_LOCAL_EVALUATION_ENDPOINT env var support with fallback to Django
  2. Charts: https://github.com/PostHog/charts/pull/9713 sets POSTHOG_LOCAL_EVALUATION_ENDPOINT=/flags/definitions on all Django pods
  3. This PR bumps the SDK version so production picks up the new endpoint logic

Changes

  • pyproject.toml: posthoganalytics==7.9.12 to posthoganalytics==7.10.2, added posthoganalytics to exclude-newer-package (release is <7 days old)
  • uv.lock: updated lockfile

What happens after merge

PostHog's Django pods will start polling /flags/definitions on the Rust definitions fleet instead of /api/feature_flag/local_evaluation on Django. If the Rust endpoint fails, the SDK falls back to Django transparently.

What to monitor

  • flags_flag_definitions_requests_total on the definitions fleet — should go from 0 to active
  • flags_flag_definitions_cache_hit_total — should see hits
  • No increase in 5xx rates
  • Dashboard: "Feature Flags - Rust Local Evaluation"

Rollback

Remove POSTHOG_LOCAL_EVALUATION_ENDPOINT from charts common.yaml. The SDK falls back to Django automatically, no need to revert this version bump.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 8, 2026

Vulnerabilities

No security concerns identified. The lockfile hashes and PyPI URLs are consistent with a legitimate version bump of the first-party posthoganalytics package.

Reviews (1): Last reviewed commit: "chore(flags): bump posthog-analytics to ..." | Re-trigger Greptile

Comment thread pyproject.toml
required-version = "~=0.10.2"
exclude-newer = "7 days"
exclude-newer-package = { hogql-parser = false }
exclude-newer-package = { hogql-parser = false, posthoganalytics = false }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense since it's an internal package 👍🏼

@github-project-automation github-project-automation Bot moved this from In Review to Approved in Feature Flags Apr 8, 2026
@posthog-project-board-bot posthog-project-board-bot Bot moved this from Approved to In Review in Feature Flags Apr 8, 2026
@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Apr 8, 2026

⏭️ Skipped snapshot commit because branch advanced to 1ce24c3 while workflow was testing 0a12b46.

The new commit will trigger its own snapshot update workflow.

If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:

  • Merge master into your branch, or
  • Push an empty commit: git commit --allow-empty -m 'trigger CI' && git push

@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Apr 8, 2026

⏭️ Skipped snapshot commit because branch advanced to af44e4d while workflow was testing 1ce24c3.

The new commit will trigger its own snapshot update workflow.

If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:

  • Merge master into your branch, or
  • Push an empty commit: git commit --allow-empty -m 'trigger CI' && git push

@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Apr 8, 2026

Query snapshots: Backend query snapshots updated

Changes: 1 snapshots (1 modified, 0 added, 0 deleted)

What this means:

  • Query snapshots have been automatically updated to match current output
  • These changes reflect modifications to database queries or schema

Next steps:

  • Review the query changes to ensure they're intentional
  • If unexpected, investigate what caused the query to change

Review snapshot changes →

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

✅ Hobby deploy smoke test: PASSED

Hobby deployment smoke test passed successfully.


Run 24158149078

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

🎭 Playwright report · View test results →

⚠️ 2 flaky tests:

  • Save view (chromium)
  • Materialize view pane (chromium)

These issues are not necessarily caused by your changes.
Annoyed by this comment? Help fix flakies and failures and it'll disappear!

@patricio-posthog patricio-posthog force-pushed the patricio/bump-posthoganalytics-7.10.2 branch from f55362e to 32f075b Compare April 8, 2026 17:45
@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Apr 8, 2026

⏭️ Skipped snapshot commit because branch advanced to f83a9f4 while workflow was testing 32f075b.

The new commit will trigger its own snapshot update workflow.

If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:

  • Merge master into your branch, or
  • Push an empty commit: git commit --allow-empty -m 'trigger CI' && git push

@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Apr 8, 2026

⏭️ Skipped snapshot commit because branch advanced to 32a8708 while workflow was testing f83a9f4.

The new commit will trigger its own snapshot update workflow.

If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:

  • Merge master into your branch, or
  • Push an empty commit: git commit --allow-empty -m 'trigger CI' && git push

@patricio-posthog patricio-posthog merged commit 22600a0 into master Apr 9, 2026
197 checks passed
@patricio-posthog patricio-posthog deleted the patricio/bump-posthoganalytics-7.10.2 branch April 9, 2026 11:28
@github-project-automation github-project-automation Bot moved this from In Review to Done in Feature Flags Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants