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

Prevent VPN server list persistence failures #1985

Merged
merged 3 commits into from
Dec 19, 2023
Merged

Conversation

samsymons
Copy link
Collaborator

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

Description:

This PR makes two changes:

  1. The WireGuard invalid state error has been given a reason field, to allow insight into what state is invalid exactly
  2. The server list store no longer prevents the file from being stored if the old one can't be removed; this appears to be a major source of unhandled errors

Steps to test this PR:

  1. Check that NetP connects and works as expected
  2. If you want to go the extra mile, simulate a WireGuard invalid state error and check that the pixel fires with the correct reason

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

samsymons added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Dec 19, 2023
Task/Issue URL: https://app.asana.com/0/0/1206201299599597/f
iOS PR: duckduckgo/iOS#2275
macOS PR: duckduckgo/macos-browser#1985
What kind of version bump will this require?: Major

Description:

This PR makes two changes:

* The WireGuard invalid state error has been given a reason field, to allow insight into what state is invalid exactly
* The server list store no longer prevents the file from being stored if the old one can't be removed; this appears to be a major source of unhandled errors
@samsymons
Copy link
Collaborator Author

Some kind of strange project file changes here, but they don't seem to affect anything and Xcode applies them every time, so I'll roll with it.

@samsymons samsymons merged commit d52d24a into main Dec 19, 2023
14 checks passed
@samsymons samsymons deleted the sam/enhance-vpn-pixels branch December 19, 2023 10:40
samsymons added a commit that referenced this pull request Dec 21, 2023
# By Dominik Kapusta (41) and others
# Via Dominik Kapusta (9) and others
* main: (138 commits)
  Make sure when we set custom config url, we don't expect etag in return (#1994)
  Add PixelKit source parameter (#1989)
  Fix internal user toggling (#2000)
  Show alert and display warning icon in Sync Settings when data syncing is disabled (#1996)
  DBP: Integrate subscription account authentication to DBP (#1995)
  Improve bookmarks html reader (#1986)
  Add Sync feature flags (#1992)
  Add daily stats pixel (#1993)
  Do not reload DBP tab when switching to it (#1942)
  Fix: external application requests via redirect URLs shows wrong origin. (#1900)
  Update clean-app.sh to work on macOS Sonoma and include NetP containers (#1988)
  Fix: "SwiftLintPlugin" must be enabled before it can be used (#1987)
  Prevent VPN server list persistence failures (#1985)
  add test can remove data (#1980)
  Remove VPN upgrade card (#1983)
  Fix low-res VPN warning asset (#1984)
  DBP: Fix unreliable date tests (#1981)
  Add search retention pixel for NetP (#1964)
  Sabrina/sync e2e tests (#1959)
  swiftlint build plugin (#1318)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/Application/AppDelegate.swift
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