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(db push): make sure to stop migrate engine when it errors #8149

Merged
merged 3 commits into from Jul 8, 2021

Conversation

Jolg42
Copy link
Member

@Jolg42 Jolg42 commented Jul 7, 2021

Related
#7795
#7990

Thanks @millsp for finding the test that uncovered this 👍🏼

@Jolg42 Jolg42 added this to the 2.27.0 milestone Jul 7, 2021
Copy link
Member

@millsp millsp left a comment

Choose a reason for hiding this comment

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

Awesome!

Copy link
Member

@janpio janpio left a comment

Choose a reason for hiding this comment

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

Nice, good catch!

Test not passing though yet.

@millsp
Copy link
Member

millsp commented Jul 7, 2021

If you can't reproduce this locally, let me know. Good catch @janpio, I got fooled by the grey cancel icon. I'll pay more attention next time 👍

@Jolg42
Copy link
Member Author

Jolg42 commented Jul 8, 2021

Ok I'll merge main later and see what this is about

@Jolg42 Jolg42 self-assigned this Jul 8, 2021
@janpio
Copy link
Member

janpio commented Jul 8, 2021

That's the danger of the timeouts I think - they cancel the job, and do not fail it by default.

@Jolg42 Jolg42 enabled auto-merge (squash) July 8, 2021 15:27
@Jolg42 Jolg42 disabled auto-merge July 8, 2021 15:41
@Jolg42 Jolg42 merged commit 8898470 into master Jul 8, 2021
@Jolg42 Jolg42 deleted the pr/migrate-fix-jest-force-exit branch July 8, 2021 15:42
@Jolg42
Copy link
Member Author

Jolg42 commented Jul 8, 2021

Yes... but better that it times out after 10 minutes than 6 hours by default 😄

Andrew-Colman pushed a commit to Andrew-Colman/prisma that referenced this pull request Aug 7, 2021
…#8149)

* fix(db push): make sure to stop migrate engine when it errors

Related
prisma#7795
prisma#7990

* Restore package.json
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.

None yet

3 participants