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(arm64) Fixes snuba tests on arm64 #30912

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Conversation

evanh
Copy link
Member

@evanh evanh commented Jan 4, 2022

There were a small number of tests that were consistently failing as a
result of arm64 using a newer version of Clickhouse. For a couple of the tests I
skipped them on arm64 since fixing the test would require changing what it does.
For the other tests I changed the lower bound on dates since the new version of
Clickhouse didn't like getting 0001 as a year.


For more context on these fixes: The tests that I changed the orderby were failing because they had at least 2 results with the same sorting value, which happened to be in a different order with the new Clickhouse. Changing the orderby ensured the results were arriving in a consistent order.

The change in release_health/metrics.py and utils/snuba.py to use a different minimum date is because without those, the default dates were being set to 0001-01-01T00:00:00 and the epoch respectively. In the new version of Clickhouse, it uses a couple days after the normal epoch as its epoch, and dates less than the Clickhouse epoch cause incorrect results.

There were a small number of tests that were consistently failing as a
result of arm64 using a newer version of Clickhouse. For a couple of the tests I
skipped them on arm64 since fixing the test would require changing what it does.
For the other tests I changed the lower bound on dates since the new version of
Clickhouse didn't like getting 0001 as a year.
@evanh evanh requested review from a team as code owners January 4, 2022 18:33
@evanh evanh requested review from a team January 4, 2022 18:33
@evanh evanh merged commit 130b983 into master Jan 4, 2022
@evanh evanh deleted the evanh/fix/arm64-test-failures branch January 4, 2022 21:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants