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

Cache yarn builds to speed up end to end testing #927

Merged
merged 40 commits into from
Jun 6, 2020
Merged

Cache yarn builds to speed up end to end testing #927

merged 40 commits into from
Jun 6, 2020

Conversation

fuziontech
Copy link
Member

🤞 This will speed things up for end to end tests

@timgl timgl temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 4, 2020 23:19 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 4, 2020 23:29 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 4, 2020 23:34 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 4, 2020 23:39 Inactive
@fuziontech fuziontech requested review from EDsCODE and timgl June 5, 2020 03:51
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 03:53 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 03:57 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 17:37 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 17:50 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 18:11 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 18:29 Inactive
@fuziontech fuziontech had a problem deploying to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 19:05 Failure
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 19:41 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:01 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:06 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:13 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:26 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:40 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 5, 2020 20:50 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 02:31 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 02:34 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 02:43 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 02:50 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 03:19 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 03:31 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 03:42 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 03:50 Inactive
@fuziontech
Copy link
Member Author

First successful run:

e2e / Cypress end to end tests
succeeded 42 seconds ago in 8m 49s

Second run:

e2e / Cypress end to end tests
succeeded 44 seconds ago in 5m 44s

Copy link
Member

@EDsCODE EDsCODE left a comment

Choose a reason for hiding this comment

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

This looks awesome. Forgoing the docker setup is probably the better way to go about it as there's too much overhead and because our system is still small enough to spin up nicely within an action. I have a few questions below but otherwise it lgtm

*One thing to note is that I'm not able to test if updating dependencies/tests will update the cache accordingly without committing changes but if you're able to confirm the cache works as expected I'm good with this

DATABASE_URL: 'postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres'
DISABLE_SECURE_SSL_REDIRECT: 1
OPT_OUT_CAPTURE: 1
DEBUG: 1
Copy link
Member

Choose a reason for hiding this comment

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

What was the difference that warranted continue to use DEBUG deployment rather than a prod as marius had originally replaced?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was having a hard time getting the demo environment to run.

Let me check that again real quick

uses: actions/upload-artifact@v1
with:
name: screenshots
path: cypress/screenshots
Copy link
Member

Choose a reason for hiding this comment

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

Where do we access these screenshots?

Copy link
Member Author

Choose a reason for hiding this comment

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

They only are captured if cypress tests fails, but you can grab them at the top right of the log page:
image

@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 16:30 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 16:57 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 16:59 Inactive
@fuziontech fuziontech temporarily deployed to posthog-e2e-usqrs9br2rha8lugr4 June 6, 2020 17:04 Inactive
@fuziontech fuziontech merged commit f37adf3 into master Jun 6, 2020
@fuziontech fuziontech deleted the e2e branch June 6, 2020 17:13
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.

3 participants