Repository navigation
fix(mobile): suppress DOFEK-MOBILE-19 HealthKit background timeouts #2351
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d389be2
fix(mobile): suppress DOFEK-MOBILE-19 HealthKit background timeouts
Asherlc 98106a7
style(mobile): apply biome formatting for HealthKit timeout fix
Asherlc 6c97a9d
chore: drop unrelated mise setup changes from PR scope
Asherlc 0604357
fix(mobile): satisfy catch telemetry policy for route push timeouts
Asherlc f94d6a0
fix(mobile): restore provider full sync on list cards
Asherlc 68c8516
test(withings): expect provider timeout wrapper message
Asherlc cb53c74
fix(reports): align web fixtures with report emptyState contract
Asherlc 13f6c9b
Merge remote-tracking branch 'origin/main' into Asherlc/bujumbura
Asherlc b6f5aba
fix(mobile): scope Sentry timeout filter to HealthKit sources
Asherlc 760ef2c
fix(ci): resolve biome formatting and use fullSync in provider sync
Asherlc 455b0e6
fix(mobile): address HealthKit observer coordinator and timeout CR fe…
Asherlc e6ec749
refactor(mobile): centralize workout route errors and tighten timeout…
Asherlc 5e034ee
fix(ci): recognize handleWorkoutRouteError in mobile telemetry policy
Asherlc b52efad
Merge remote-tracking branch 'origin/main' into Asherlc/bujumbura
Asherlc 3ebb24c
fix(web): remove unused report empty-state fixtures
Asherlc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { describe, expect, it } from "vitest"; | ||
| import { | ||
| isBackgroundHealthKitTransientNetworkError, | ||
| isTransientNetworkErrorMessage, | ||
| } from "./health-kit-errors"; | ||
|
|
||
| describe("health-kit-errors", () => { | ||
| it("detects transient background fetch timeout messages", () => { | ||
| expect( | ||
| isTransientNetworkErrorMessage( | ||
| "fetch failed: UnexpectedException: The request timed out.", | ||
| ), | ||
| ).toBe(true); | ||
| expect( | ||
| isTransientNetworkErrorMessage( | ||
| "Push workout routes: fetch failed: UnexpectedException: The request timed out.", | ||
| ), | ||
| ).toBe(true); | ||
| expect(isTransientNetworkErrorMessage("network unreachable")).toBe(false); | ||
| }); | ||
|
|
||
| it("detects transient network errors on Error instances and causes (DOFEK-MOBILE-19)", () => { | ||
| const timeoutError = new Error("fetch failed: UnexpectedException: The request timed out."); | ||
| const trpcError = new Error("TRPCClientError", { cause: timeoutError }); | ||
|
|
||
| expect(isBackgroundHealthKitTransientNetworkError(timeoutError)).toBe(true); | ||
| expect(isBackgroundHealthKitTransientNetworkError(trpcError)).toBe(true); | ||
| expect(isBackgroundHealthKitTransientNetworkError(new Error("server error"))).toBe(false); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.