PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.59k stars 1.29k forks source link

How to test PostHog feature branches, using self-hosted version #25262

Open MannyAdumbire opened 3 weeks ago

MannyAdumbire commented 3 weeks ago

Is there a guide for on how to test PRs, using the self-hosted/"hobby" docker version of PostHog? How can I update my local copy/container of PostHog to the changes from a branch.

The question came up in relation to https://github.com/PostHog/posthog/pull/25174

In attempting to test the PR, I added the hls-src attribute on a <video> element and used an .m3u8 HLS video for its value.

Then did the following:

  1. pulled the latest changes from master branch which contains this merged PR.
  2. ran docker-compose up --build -d
  3. "recorded" a couple sessions for replay

The fix didn't seem to be present still in my local PostHog. I searched(greped) inside the web, caddy, plugins, worker docker containers, but can't find any reference to hls-src. None of this worked.

I asked on PostHog Community as well https://posthog.com/questions/how-to-use-latest-version-of-posthog-docker. The AI answer was not helpful.

What am I missing?

pauldambra commented 3 weeks ago

Hey Manny,

I don't actually know the answer here...

My guess is that you need to actually build the front end. However, it's not something we support, so we don't have instructions for this.

However, your title says feature branch and your body says master

If you only want to update to the latest version on trunk, just use the update script https://posthog.com/docs/self-host#upgrading