Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rotate test distinct id to avoid lagging partition #1595

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ jobs:
run: pnpm testcafe ${{ matrix.browser }} --stop-on-first-fail

- name: Check ${{ matrix.name }} events
timeout-minutes: 10
timeout-minutes: 31
run: pnpm check-testcafe-results
5 changes: 4 additions & 1 deletion testcafe/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export const initPosthog = (testName, config) => {
api_host: POSTHOG_API_HOST,
api_key: POSTHOG_PROJECT_KEY,
bootstrap: {
distinctID: 'automated-tester', // We set this to get around the ingestion delay for new distinctIDs
// We set this to get around the ingestion delay for new distinctIDs. It's not ideal, as if we have a
// lagging partition on prod then we can be blocked from merging any PRs. Until we run these tests against
// a local posthog instance, you can change this ID to change the partition.
distinctID: 'automated-tester-3',
isIdentifiedID: true,
},
opt_out_useragent_filter: true,
Expand Down
Loading