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

Add delay when shutting down VPN due to error #3579

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

samsymons
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1207603085593419/1208772807738114/f
Tech Design URL:
CC:

Description:

This PR adds a short delay before shutting down the VPN due to an error.

Steps to test this PR:

  1. Add a hardcoded error into the startup process of the VPN, startTunnel(onDemand:) is a good place to do this
  2. Open up the logs and filter for Firing persistent daily/count pixel
  3. Try to activate the VPN, then make sure you see that log then a 1-2 second delay before the VPN exits

Definition of Done (Internal Only):

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

…g-error

* main:
  Wrap subscription-related navigation links in `LazyView` (#3576)
  Set `dryRun` for VPN and alpha pixels (#3578)
  apply translations for zoom text (#3583)
  Prevent sending duplicate home tab pixel (#3580)
…g-error

# By Mariusz Śpiewak (4) and others
# Via GitHub (1) and Mariusz Śpiewak (1)
* main:
  Re-prompt for crash reporting (#3595)
  Fix running BoolFileMarkerTest on device (#3601)
  Run Sync e2e tests only on latest version (#3602)
  Release 7.146.0-1 (#3600)
  Fix autofill search authentication looping (#3598)
  Fix invalid OmniBar state transition on loading  (#3599)
  Update autoconsent to v11.5.0 (#3581)
  Release 7.146.0-0 (#3594)
  deps: Bump [email protected] and BSK@211 (#3588)
  Update subtitle (#3592)
  Limits TipKit availability to iOS 18+ (#3589)
  Fix alpha build compilation (#3584)
  Update VPN auth token check logic (#3585)
  Fix button shapes on New Tab Page (#3586)
  Temporarily disable TipKit (#3564)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

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

I tested this and it works as described. The new error messages look neat too.

Nice job @samsymons

samsymons added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Nov 22, 2024
…g an error (#1078)

Required:

Task/Issue URL: https://app.asana.com/0/1207603085593419/1208772807738114/f
iOS PR: duckduckgo/iOS#3579
macOS PR: duckduckgo/macos-browser#3557
What kind of version bump will this require?: Patch

Description:

This PR adds a short delay when shutting down the tunnel.
…g-error

# By Dominik Kapusta (3) and others
# Via Dominik Kapusta (1) and others
* main:
  Expand persistent pixel usage (#3596)
  Release 7.146.0-2 (#3610)
  Bump BSK to 211.1.1 (#3609)
  Update BSK with a C-S-S fix (#3608)
  remove widget favicon coupling and move favicon code from core to the app (#3590)
  Update Content Scope Scripts to 6.38.0 (#3605)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@samsymons samsymons merged commit 079d76d into main Nov 22, 2024
13 checks passed
@samsymons samsymons deleted the sam/delay-shutting-down-vpn-when-encountering-error branch November 22, 2024 03:04
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.

2 participants