Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

fix: ta_timeseries flake set and dict#1180

Merged
joseph-sentry merged 2 commits intomainfrom
joseph/fix-ta-timeseries
Mar 27, 2025
Merged

fix: ta_timeseries flake set and dict#1180
joseph-sentry merged 2 commits intomainfrom
joseph/fix-ta-timeseries

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

when we get bytes out of the DB using django it returns them as a
memoryview so if you want the actual values in bytes you must call
the bytes constructor on the memoryview

there's a deadlock error that happens where the timescale background
worker is running background jobs and we're altering the schema of
the tables on which it's running the background job on, so we stop the
background worker momentarily to allow the migrations to run.
@joseph-sentry joseph-sentry requested a review from a team March 26, 2025 19:00
@seer-by-sentry
Copy link
Copy Markdown
Contributor

✅ Sentry found no issues in your recent changes ✅

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (dba53c5) to head (1ab5558).
Report is 7 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1180      +/-   ##
==========================================
- Coverage   97.72%   97.72%   -0.01%     
==========================================
  Files         453      455       +2     
  Lines       37117    37154      +37     
==========================================
+ Hits        36273    36309      +36     
- Misses        844      845       +1     
Flag Coverage Δ
integration 42.80% <88.88%> (+<0.01%) ⬆️
unit 90.55% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-notifications
Copy link
Copy Markdown

codecov-notifications Bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@@ -22,15 +22,16 @@

def get_flaky_tests_set(repo_id: int) -> set[bytes]:
return set(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

in this case you can also use a set comprehension literal

when we get bytes out of the DB using django it returns them as a
memoryview so if you want the actual values in bytes you must call
the bytes constructor on the memoryview
@joseph-sentry joseph-sentry force-pushed the joseph/fix-ta-timeseries branch from d770441 to 1ab5558 Compare March 27, 2025 14:37
@joseph-sentry joseph-sentry enabled auto-merge March 27, 2025 14:38
@joseph-sentry joseph-sentry added this pull request to the merge queue Mar 27, 2025
auto-merge was automatically disabled March 27, 2025 14:48

Pull Request is not mergeable

Merged via the queue into main with commit 6f7f522 Mar 27, 2025
28 of 29 checks passed
@joseph-sentry joseph-sentry deleted the joseph/fix-ta-timeseries branch March 27, 2025 14:48
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