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: set GOCACHE=off in tests #391

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

runcom
Copy link
Member

@runcom runcom commented Feb 7, 2019

Since Go 1.10, test results get cached. This leads to the tests not being run
sometimes because Go has cached the results and just assumes it will get the
same results because the Go code hasn't changed.
Set GOCACHE=off to get clean results everytime (this is especially good
for us since we can poke at the cluster and rerun the test w/o having to
change go code).

Signed-off-by: Antonio Murdaca runcom@linux.com

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 7, 2019
@cgwalters
Copy link
Member

Ah, I'd seen other projects doing this.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2019
jlebon added a commit to jlebon/pivot that referenced this pull request Feb 7, 2019
Follow in the footsteps of the MCO here:
openshift/machine-config-operator#391

I definitely hit this in the past and couldn't understand why it wasn't
rerunning the tests, but didn't bother to look deeper into it.
ashcrow pushed a commit to openshift/pivot that referenced this pull request Feb 7, 2019
Follow in the footsteps of the MCO here:
openshift/machine-config-operator#391

I definitely hit this in the past and couldn't understand why it wasn't
rerunning the tests, but didn't bother to look deeper into it.
Since Go 1.10, test results get cached. This leads to the tests not being run
sometimes because Go has cached the results and just assumes it will get the
same results because the Go code hasn't changed.
Set GOCACHE=off to get clean results everytime (this is especially good
for us since we can poke at the cluster and rerun the test w/o having to
change go code).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

removed GOCACHE=off from unit tests as we're not relying on external services there anyway so it's ok to cache

ptal

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2019
@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

/retest

1 similar comment
@runcom
Copy link
Member Author

runcom commented Feb 8, 2019

/retest

@runcom
Copy link
Member Author

runcom commented Feb 8, 2019

good to go

@cgwalters
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@ashcrow
Copy link
Member

ashcrow commented Feb 8, 2019

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters, runcom

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:
  • OWNERS [ashcrow,cgwalters,runcom]

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

@runcom
Copy link
Member Author

runcom commented Feb 8, 2019

/retest

@runcom
Copy link
Member Author

runcom commented Feb 8, 2019

flakes flakes flakes

/retest

@runcom
Copy link
Member Author

runcom commented Feb 8, 2019

/retest

@openshift-merge-robot openshift-merge-robot merged commit 0684945 into openshift:master Feb 8, 2019
@runcom runcom deleted the disable-go-cache branch February 8, 2019 18:20
@openshift-ci-robot
Copy link
Contributor

@runcom: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-op cc16c57 link /test e2e-aws-op

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants