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 tests to cope with future changes to testing.quick.Check - see #5854 #5855

Merged

Conversation

jonseymour
Copy link
Contributor

This test case demonstrates that go master breaks the influxdb build, but go 1.6 doesn't. See #5854

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

@jonseymour
Copy link
Contributor Author

Submitted a zero-change PR which shows that origin/master tests failed when compiled with go/master but not with go/go1.6. This build should fail.

@jonseymour jonseymour changed the title Jss 5854 go master breaks build demonstration that go master breaks build - reproduces #5844 Feb 28, 2016
@jonseymour jonseymour changed the title demonstration that go master breaks build - reproduces #5844 demonstration that go master breaks build - reproduces #5854 Feb 28, 2016
@jonseymour jonseymour force-pushed the jss-5854-go-master-breaks-build branch from c0104cb to 8dc4018 Compare February 29, 2016 00:50
@jonseymour
Copy link
Contributor Author

Output of build @ 8dc4018:

https://circleci.com/gh/influxdata/influxdb/9923

@jonseymour
Copy link
Contributor Author

The issue is that a nil []bool slice when round tripped through encoding and decoding becomes []bool{}.

@jonseymour jonseymour force-pushed the jss-5854-go-master-breaks-build branch 3 times, most recently from e0e8ce4 to 90bfc13 Compare February 29, 2016 02:50
@jonseymour
Copy link
Contributor Author

90bfc13 passed with this test run - https://circleci.com/gh/influxdata/influxdb/9927

@jonseymour jonseymour force-pushed the jss-5854-go-master-breaks-build branch from 90bfc13 to ecf8ad7 Compare February 29, 2016 03:11
@jonseymour jonseymour changed the title demonstration that go master breaks build - reproduces #5854 workaround for change in testing.quick.Check (go compiler) that breaks current build - see #5854 Feb 29, 2016
@jonseymour
Copy link
Contributor Author

Thanks to David Cheney and @marcosnils for the analysis that pin-pointed the issue.

@jonseymour jonseymour force-pushed the jss-5854-go-master-breaks-build branch from ecf8ad7 to babb27e Compare February 29, 2016 03:30
@marcosnils
Copy link
Contributor

glad to help!.

@jonseymour
Copy link
Contributor Author

Rebased onto v0.10.0 because the same commit would be useful if/when there is a 0.10.2 release.

…ing.quick.Check in go master

The current go compiler at the tip of the go master (1d5001af) has a modified implementation of
testing.quick.Check that now generates nil slices as test data. (See: https://gophers.slack.com/archives/general/p14567053570110). The existing tests expect round tripping to work in this case
but it does not. So, in these cases we change the expectation to reflect actual behaviour.

This needs to be checked for reasonableness.
RHS merges cleanly with 0.10.0

Signed-off-by: Jon Seymour <[email protected]>
@jonseymour jonseymour force-pushed the jss-5854-go-master-breaks-build branch from dba495a to a01d020 Compare February 29, 2016 09:39
@jonseymour jonseymour changed the title workaround for change in testing.quick.Check (go compiler) that breaks current build - see #5854 fix tests to cope with future changes to testing.quick.Check - see #5854 Feb 29, 2016
@jonseymour
Copy link
Contributor Author

This PR is no longer required to workaround the CI build issues.

However, it probably still is required because inevitably influxdb will need to use a later version of go which does include a version of testing.quick.Check which will cause spurious failures of 4 tests.

@jwilder
Copy link
Contributor

jwilder commented Mar 2, 2016

👍 Thanks @jonseymour

jwilder added a commit that referenced this pull request Mar 2, 2016
fix tests to cope with future changes to testing.quick.Check - see #5854
@jwilder jwilder merged commit e3fef55 into influxdata:master Mar 2, 2016
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