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

ppc64le - fix geoindex/TestS2GeometryIndexBasic failure #84441

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

prashantkhoje
Copy link
Contributor

Related #82456
Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Jul 14, 2022

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

I have added a few people who may be able to assist in reviewing:

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels Jul 14, 2022
@blathers-crl blathers-crl bot requested a review from otan July 14, 2022 18:06
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan
Copy link
Contributor

otan commented Jul 14, 2022

i'm not sure this fix changes the operation; at least, it looks like CI linter thinks not either.


=== RUN   TestLint/TestRoachVet
    lint_test.go:91: 
        pkg/geo/geo.go:759:14: unnecessary conversion
        pkg/geo/geo.go:759:37: unnecessary conversion
        pkg/geo/geo.go:760:3: unnecessary conversion
        pkg/geo/geo.go:760:26: unnecessary conversion
        pkg/geo/geo.go:761:3: unnecessary conversion
        pkg/geo/geo.go:761:26: unnecessary conversion
    --- FAIL: TestLint/TestRoachVet (183.11s)

(schema change test is a flake)
could you elaborate? thanks!

@prashantkhoje
Copy link
Contributor Author

Platforms like ppc64le and aarch64, use "fused multiply and add" (FMA) instruction that results into rounding differences. The go specification suggests using explicit type conversion to avoid those differences.
Also see disintegration/gift#20 (comment)

@otan
Copy link
Contributor

otan commented Jul 15, 2022

you'll probably need to add to this to suppress the linter.

filters := []stream.Filter{

please also add a comment about what you just said

@prashantkhoje
Copy link
Contributor Author

If you can point to some document/example to get me started, it'll be helpful.
I'll also explore linter further.

@prashantkhoje prashantkhoje force-pushed the ppc64le-geoindex-test branch from cc3da16 to 00734a8 Compare July 15, 2022 09:21
@blathers-crl
Copy link

blathers-crl bot commented Jul 15, 2022

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

Copy link
Contributor

@otan otan left a comment

Choose a reason for hiding this comment

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

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 17, 2022

Build succeeded:

@craig craig bot merged commit dc382b1 into cockroachdb:master Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants