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) Fix tests so they work on arm64 as well #2329

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

evanh
Copy link
Member

@evanh evanh commented Jan 3, 2022

This is mostly fixing a bug with our current tests, where in the old version of
Clickhouse the events are not being merged before the tests run. In the new
version of Clickhouse the events are merged before the tests, and since the
fixtures all use the same span_id, they are actually only sending one event.

This is mostly fixing a bug with our current tests, where in the old version of
Clickhouse the events are not being merged before the tests run. In the new
version of Clickhouse the events are merged before the tests, and since the
fixtures all use the same span_id, they are actually only sending one event.
@evanh evanh requested a review from a team as a code owner January 3, 2022 21:42
@codecov-commenter
Copy link

Codecov Report

Merging #2329 (4910524) into master (749d743) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2329      +/-   ##
==========================================
- Coverage   92.75%   92.68%   -0.07%     
==========================================
  Files         558      558              
  Lines       25667    25668       +1     
==========================================
- Hits        23807    23791      -16     
- Misses       1860     1877      +17     
Impacted Files Coverage Δ
tests/test_snql_api.py 100.00% <ø> (ø)
tests/fixtures.py 100.00% <100.00%> (ø)
tests/migrations/test_runner_individual.py 98.23% <100.00%> (-1.77%) ⬇️
tests/test_cli.py 100.00% <100.00%> (ø)
tests/test_transactions_api.py 100.00% <100.00%> (ø)
snuba/settings/settings_distributed.py 0.00% <0.00%> (-100.00%) ⬇️
snuba/settings/settings_test_distributed.py 0.00% <0.00%> (-100.00%) ⬇️
snuba/optimize.py 83.72% <0.00%> (-6.98%) ⬇️
...ts/0010_groupedmessages_onpremise_compatibility.py 95.55% <0.00%> (-4.45%) ⬇️
...nsactions_onpremise_fix_orderby_and_partitionby.py 81.33% <0.00%> (-2.67%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 749d743...4910524. Read the comment docs.

@@ -303,7 +304,7 @@ def test_column_formatting(self) -> None:
assert response.status_code == 200, response.data
assert len(data["data"]) == 1
assert data["data"][0]["event_id"] == first_event_id
assert data["data"][0]["span_id"] == "8841662216cc598b"
assert data["data"][0]["span_id"] == "841662216cc598b1"
Copy link
Contributor

Choose a reason for hiding this comment

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

could we maybe extract this to a constant, to make it more straightforward if we want to update it again?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the number actually changes (this happens to be the first) it's not possible to make it a true constant.

@evanh evanh merged commit 0f49805 into master Jan 4, 2022
@evanh evanh deleted the evanh/fix/fix-tests-on-arm branch January 4, 2022 15:51
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