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

build: adding missing bin/.bootstrap order-only dependency #38857

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

petermattis
Copy link
Collaborator

Any rule which uses gofmt or goimports needs to have an order-only
dependency on bin/.bootstrap, otherwise the bin/.bootstrap rule can
run in parallel causing a race between bin/gofmt getting created and
it being used by the rule. This would result in rare "text file busy"
errors when running a partially written bin/gofmt.

Release note: None

Any rule which uses `gofmt` or `goimports` needs to have an order-only
dependency on `bin/.bootstrap`, otherwise the `bin/.bootstrap` rule can
run in parallel causing a race between `bin/gofmt` getting created and
it being used by the rule. This would result in rare "text file busy"
errors when running a partially written `bin/gofmt`.

Release note: None
@petermattis petermattis requested a review from a team July 12, 2019 22:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis
Copy link
Collaborator Author

Cc @andreimatei, @tbg

@petermattis petermattis requested a review from bobvawter July 12, 2019 22:11
@petermattis
Copy link
Collaborator Author

@bobvawter Do you know make well enough to review this?

Copy link
Contributor

@bobvawter bobvawter left a comment

Choose a reason for hiding this comment

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

I'll pretend that I know more about make than I ought to :-) . I assume that you've grepped for all rules that invoke gofmt and tweaked them?

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Collaborator Author

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

I assume that you've grepped for all rules that invoke gofmt and tweaked them?

Yep. And goimports as well.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@petermattis
Copy link
Collaborator Author

TFTR! Unrelated roachtest failure.

bors r=bobvawter

craig bot pushed a commit that referenced this pull request Jul 15, 2019
38857: build: adding missing bin/.bootstrap order-only dependency r=bobvawter a=petermattis

Any rule which uses `gofmt` or `goimports` needs to have an order-only
dependency on `bin/.bootstrap`, otherwise the `bin/.bootstrap` rule can
run in parallel causing a race between `bin/gofmt` getting created and
it being used by the rule. This would result in rare "text file busy"
errors when running a partially written `bin/gofmt`.

Release note: None

Co-authored-by: Peter Mattis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jul 15, 2019

Build succeeded

@craig craig bot merged commit 37f2e7f into cockroachdb:master Jul 15, 2019
@petermattis petermattis deleted the pmattis/missing-deps branch July 15, 2019 14:35
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