Skip to content

Run pre-commit checks before other validation checks #13224

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

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

mads-hartmann
Copy link
Contributor

@mads-hartmann mads-hartmann commented Sep 23, 2022

Description

Run pre-commit checks before other validation checks. Since running the validation steps in parallel we've seen issues with multiple processes trying to modify .git. We think this might be a conflict between the pre-commit checks and the other validations; specifically that both pre-commit checks and leeyway vet run Leeway. This PR runs the pre-commit checks first, and then runs the rest in parallel.

This is mainly based on a hunch - as this is breaking builds now I decided to try a quick-fix rather than do a deep investigation.

Related Issue(s)

Fixes https://github.com/gitpod-io/ops/issues/5345

How to test

Run without job protection to see the changes - job here

 werft job run github

Release Notes

NONE

Documentation

N/A

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@mads-hartmann
Copy link
Contributor Author

mads-hartmann commented Sep 23, 2022

/hold
/werft run

👍 started the job as gitpod-build-mads-run-pre-commit-before-other-validations.3
(with .werft/ from main)

@roboquat roboquat merged commit a24944a into main Sep 23, 2022
@roboquat roboquat deleted the mads/run-pre-commit-before-other-validations branch September 23, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants