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

Makefile: check for -race using -mod=vendor #3535

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Sep 23, 2021

What type of PR is this?

/kind other

What this PR does / why we need it:

When checking if go test supports -race on the current platform, use -mod=vendor if it's available, so that the compiler won't try to pull down our dependencies, and run it against a package that has fewer dependencies.

Run go tool dist list once, and filter its results to derive the cross-compile target lists, rather than running it three times.

How to verify it

Running make should be at least a bit faster.

Which issue(s) this PR fixes:

Fixes #3534

Special notes for your reviewer:

Does this PR introduce a user-facing change?


@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nalind

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

When checking if `go test` supports `-race` on the current platform, use
`-mod=vendor` if it's available, so that the compiler won't try to pull
down our dependencies, and run it against a package that has fewer
dependencies.

Run `go tool dist list` once, and filter its results to derive the
cross-compile target lists, rather than running it three times.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Sep 24, 2021

@flouthoc
Copy link
Collaborator

LGTM

@rhatdan
Copy link
Member

rhatdan commented Sep 24, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 24, 2021
@openshift-merge-robot openshift-merge-robot merged commit f463874 into containers:main Sep 24, 2021
@nalind nalind deleted the race-check branch September 24, 2021 15:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make runs very, very slowly
4 participants