-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/e2e-via-celery
- Loading branch information
Showing
2,280 changed files
with
79,831 additions
and
40,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ jobs: | |
changes: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
if: github.repository == 'PostHog/posthog' | ||
name: Determine need to run backend checks | ||
# Set job outputs to values from filter step | ||
outputs: | ||
|
@@ -234,7 +233,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
python-version: ['3.11.9'] | ||
clickhouse-server-image: ['clickhouse/clickhouse-server:23.12.5.81-alpine'] | ||
clickhouse-server-image: ['clickhouse/clickhouse-server:23.12.6.19-alpine'] | ||
segment: ['Core'] | ||
person-on-events: [false, true] | ||
# :NOTE: Keep concurrency and groups in sync | ||
|
@@ -243,7 +242,7 @@ jobs: | |
include: | ||
- segment: 'Temporal' | ||
person-on-events: false | ||
clickhouse-server-image: 'clickhouse/clickhouse-server:23.12.5.81-alpine' | ||
clickhouse-server-image: 'clickhouse/clickhouse-server:23.12.6.19-alpine' | ||
python-version: '3.11.9' | ||
concurrency: 1 | ||
group: 1 | ||
|
@@ -274,7 +273,7 @@ jobs: | |
- uses: EndBug/add-and-commit@v9 | ||
# Skip on forks | ||
# Also skip for persons-on-events runs, as we want to ignore snapshots diverging there | ||
if: ${{ github.repository == 'PostHog/posthog' && needs.changes.outputs.backend == 'true' && !matrix.person-on-events }} | ||
if: ${{ github.event.pull_request.head.repo.full_name == 'PostHog/posthog' && needs.changes.outputs.backend == 'true' && !matrix.person-on-events }} | ||
with: | ||
add: '["ee", "./**/*.ambr", "posthog/queries/", "posthog/migrations", "posthog/tasks", "posthog/hogql/"]' | ||
message: 'Update query snapshots' | ||
|
@@ -284,7 +283,7 @@ jobs: | |
|
||
- name: Check if any snapshot changes were left uncomitted | ||
id: changed-files | ||
if: ${{ github.repository == 'PostHog/posthog' && needs.changes.outputs.backend == 'true' && !matrix.person-on-events }} | ||
if: ${{ github.event.pull_request.head.repo.full_name == 'PostHog/posthog' && needs.changes.outputs.backend == 'true' && !matrix.person-on-events }} | ||
run: | | ||
if [[ -z $(git status -s | grep -v ".test_durations" | tr -d "\n") ]] | ||
then | ||
|
@@ -314,7 +313,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
clickhouse-server-image: ['clickhouse/clickhouse-server:23.12.5.81-alpine'] | ||
clickhouse-server-image: ['clickhouse/clickhouse-server:23.12.6.19-alpine'] | ||
if: needs.changes.outputs.backend == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -371,7 +370,11 @@ jobs: | |
name: Calculate running time | ||
needs: [django, async-migrations] | ||
runs-on: ubuntu-latest | ||
if: needs.changes.outputs.backend == 'true' | ||
if: # Run on pull requests to PostHog/posthog + on PostHog/posthog outside of PRs - but never on forks | ||
needs.changes.outputs.backend == 'true' && | ||
( | ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository | ||
) == 'PostHog/posthog' | ||
steps: | ||
- name: Calculate running time | ||
run: | | ||
|
@@ -396,7 +399,6 @@ jobs: | |
echo running_time_run_id=${run_id} >> $GITHUB_ENV | ||
echo running_time_run_started_at=${run_started_at} >> $GITHUB_ENV | ||
- name: Capture running time to PostHog | ||
if: github.repository == 'PostHog/posthog' | ||
uses: PostHog/[email protected] | ||
with: | ||
posthog-token: ${{secrets.POSTHOG_API_TOKEN}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ jobs: | |
changes: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
if: github.repository == 'PostHog/posthog' | ||
name: Determine need to run E2E checks | ||
# Set job outputs to values from filter step | ||
outputs: | ||
|
@@ -191,7 +190,7 @@ jobs: | |
OBJECT_STORAGE_SECRET_ACCESS_KEY=object_storage_root_password | ||
GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
CELERY_METRICS_PORT=8999 | ||
CLOUD_DEPLOYMENT=1 | ||
CLOUD_DEPLOYMENT=E2E | ||
EOT | ||
- name: Start PostHog | ||
|
@@ -278,7 +277,8 @@ jobs: | |
name: Calculate running time | ||
runs-on: ubuntu-latest | ||
needs: [cypress] | ||
if: needs.changes.outputs.shouldTriggerCypress == 'true' | ||
if: needs.changes.outputs.shouldTriggerCypress == 'true' && | ||
github.event.pull_request.head.repo.full_name == 'PostHog/posthog' | ||
steps: | ||
- name: Calculate running time | ||
run: | | ||
|
@@ -302,8 +302,9 @@ jobs: | |
echo running_time_run_attempt=${run_attempt} >> $GITHUB_ENV | ||
echo running_time_run_id=${run_id} >> $GITHUB_ENV | ||
echo running_time_run_started_at=${run_started_at} >> $GITHUB_ENV | ||
- name: Capture running time to PostHog | ||
if: github.repository == 'PostHog/posthog' | ||
if: github.event.pull_request.head.repo.full_name == 'PostHog/posthog' | ||
uses: PostHog/[email protected] | ||
with: | ||
posthog-token: ${{secrets.POSTHOG_API_TOKEN}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Go Test (for livestream service) | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'livestream/**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Run tests | ||
run: cd livestream && go test -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.