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(ci): Show docker compose logs only when tests don't run #21613

Merged
merged 26 commits into from
Apr 17, 2024
Merged

Conversation

neilkakkar
Copy link
Contributor

@neilkakkar neilkakkar commented Apr 17, 2024

Problem

.... and store duration artifacts again so we can split tests accurately.

Edit: There seems to be something wonky going on with the splits using the durations file I generated. Will fix this in a follow up by generating it using the ci action (this is chugging along: https://github.com/PostHog/posthog/actions/runs/8726006257/job/23940293619 ) . One test hangs, others finish faster. And sadly, the faster split algo can't be used because of test interdependencies / snapshot interdependencies. Will take a look at this too.

I want to get the first part in anyway because that is getting very annoying.

Max time before:

image

Max time after: 14 minutes, ... assuming it doesn't hang (some temporal stuff https://github.com/PostHog/posthog/actions/runs/8725338203/job/23938741307 )

and 11 minutes, if I can get tests to be independent.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@neilkakkar neilkakkar changed the title fix(ci): Show docker compose logs only when fix(ci): Show docker compose logs only when tests don't run Apr 17, 2024
@neilkakkar neilkakkar requested review from pauldambra and mariusandra and removed request for pauldambra April 17, 2024 17:43
@neilkakkar neilkakkar requested a review from pauldambra April 17, 2024 17:43
@neilkakkar neilkakkar marked this pull request as ready for review April 17, 2024 17:44
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

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

🙌

@neilkakkar neilkakkar merged commit b7c2d36 into master Apr 17, 2024
99 checks passed
@neilkakkar neilkakkar deleted the fix-ci branch April 17, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants