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

Bump the npm group with 19 updates #280

Open
wants to merge 104 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
11b4832
[Bot] Update i18n (#10051)
strseb Nov 18, 2024
7dd0289
Bump taskcluster from 74.0.0 to 74.0.1 in /taskcluster (#10047)
dependabot[bot] Nov 18, 2024
33a9640
Nit: Cleanup "BackendFailures" in controller.cpp (#10013)
strseb Nov 18, 2024
eb789dc
fix broken link (#10031)
strseb Nov 18, 2024
fb575a2
VPN-6213 (part 5) - Change colors in code to non-specific names (#10028)
mcleinman Nov 18, 2024
4f46d41
Remove unused files (#10020)
strseb Nov 18, 2024
a32ad51
Fix flaky AuthenticationInAppAccountCreationNav tests (#10052)
oskirby Nov 19, 2024
2e526b6
VPN-6213 (part 6): Restructure files, add linter checks (#10054)
mcleinman Nov 20, 2024
d0884e2
Update RPM build to Fedora 41 (#10055)
savingsandloan Nov 20, 2024
499d5aa
VPN-6700: fix color (#10059)
mcleinman Nov 21, 2024
5a6f4f4
Use caching to speed up functional tests (#10053)
oskirby Nov 21, 2024
bb9d4ec
move to src/translations directory (#10063)
mcleinman Nov 21, 2024
454948a
[Bot] Update i18n (#10062)
strseb Nov 22, 2024
2576ec3
Remove the ProxyController (#10058)
oskirby Nov 22, 2024
fac1272
Bump serde_json from 1.0.132 to 1.0.133 (#10049)
dependabot[bot] Nov 23, 2024
0808b9e
Bump serde from 1.0.214 to 1.0.215 (#10048)
dependabot[bot] Nov 23, 2024
8e0df78
Try to pick a better flatpak cache key (#10067)
oskirby Nov 23, 2024
d81a2bf
Bump chokidar from 3.6.0 to 4.0.1 (#10025)
dependabot[bot] Nov 23, 2024
8878a57
Bump yarl from 1.13.1 to 1.15.2 in /taskcluster (#9958)
dependabot[bot] Nov 24, 2024
f122d51
Bump node-gyp-build from 4.5.0 to 4.8.3 (#10050)
dependabot[bot] Nov 24, 2024
304e992
Bump multidict from 6.0.4 to 6.1.0 in /taskcluster (#9874)
dependabot[bot] Nov 25, 2024
f4f7ecb
VPN-6738: Statically link socksproxy to OpenSSL for Static Qt (#10060)
oskirby Nov 25, 2024
68c9c62
Add Ctest support for functional testing (#10064)
oskirby Nov 25, 2024
5cbd528
Fix assert fail in auth tests (#10073)
oskirby Nov 25, 2024
bc87321
[Bot] Update i18n (#10074)
strseb Nov 26, 2024
f8323cc
Fix buggy globbing rules in addon build (#10076)
oskirby Nov 26, 2024
b812fff
version bump to 2.26.0 (#10077)
mcleinman Nov 26, 2024
8452358
Bump taskcluster from 74.0.1 to 75.0.0 in /taskcluster (#10070)
dependabot[bot] Nov 29, 2024
4a9e64f
[Bot] Add new server name strings (#10084)
strseb Dec 2, 2024
d884f04
Add libatspi2.0-dev and libdbus-1-dev to Qt build requirements (#10080)
oskirby Dec 2, 2024
8aaccef
Bump mio from 1.0.2 to 1.0.3 (#10083)
dependabot[bot] Dec 2, 2024
4e9660e
Bump node-gyp-build from 4.8.3 to 4.8.4 (#10069)
dependabot[bot] Dec 2, 2024
0705a13
VPN-6749: Fix shared addon ids (#10065)
mcleinman Dec 2, 2024
1876f45
fix tests (#10085)
mcleinman Dec 2, 2024
0b57277
Bump eslint-plugin-import from 2.29.1 to 2.31.0 (#10068)
dependabot[bot] Dec 2, 2024
b5e5dc1
FXVPN-32 add message (and fix bug involving lists and shared strings)…
mcleinman Dec 2, 2024
1ded824
Fix matrix evaluation for wasm functional tests (#10087)
oskirby Dec 2, 2024
1352f9e
Use globstar to recursively hash the addons for cache keying (#10086)
oskirby Dec 2, 2024
a3005a2
VPN-6616 and VPN-6617: Addon messages for 2.25 (#10066)
mcleinman Dec 2, 2024
554cf92
[Bot] Update i18n (#10089)
strseb Dec 3, 2024
2aa9528
Add extensionTelemetry (#10057)
strseb Dec 4, 2024
4c6bb6b
Update RPM build to Fedora 41 (#10021)
devurandom Dec 5, 2024
88e949d
Bump eslint-plugin-promise from 5.2.0 to 6.6.0 (#9736)
dependabot[bot] Dec 5, 2024
96cb761
Nits for mordor (#10017)
strseb Dec 5, 2024
82062dd
VPN-6763: Do not include shared translations when importing addon-spe…
mcleinman Dec 5, 2024
ab8d095
VPN-6647: Ensure the app is started with a systemd application scope …
oskirby Dec 5, 2024
83c25e3
VPN-6742: update minimum iOS version to iOS 15 (#10078)
mcleinman Dec 5, 2024
2021a3f
Update data review links in extension metrics (#10094)
strseb Dec 5, 2024
f4d97af
[Bot] Update i18n (#10095)
strseb Dec 6, 2024
67cd6a6
basti/kn intervention (#10042)
strseb Dec 6, 2024
08ee382
Bump @testing-library/react from 13.4.0 to 16.0.1 (#10024)
dependabot[bot] Dec 6, 2024
65bc888
Bump appium-adb from 9.14.11 to 12.7.0 (#10026)
dependabot[bot] Dec 6, 2024
c1060a4
Bump mozilla-taskgraph from 3.0.0 to 3.0.1 (#10005)
dependabot[bot] Dec 6, 2024
3a5a0b6
[Bot] Update i18n (#10100)
strseb Dec 9, 2024
146b18c
qtglean bindings must match min version (#10099)
mcleinman Dec 9, 2024
b7c561c
[Bot] Update i18n (#10113)
strseb Dec 9, 2024
4cb1ac7
Bump taskcluster from 75.0.0 to 75.0.1 in /taskcluster (#10109)
dependabot[bot] Dec 9, 2024
51fd63b
Bump express from 4.19.2 to 4.21.2 (#10105)
dependabot[bot] Dec 9, 2024
5f9bd6c
Bump thiserror from 2.0.3 to 2.0.6 (#10108)
dependabot[bot] Dec 10, 2024
24d4606
Remove unused includes (#10098)
strseb Dec 10, 2024
07019e9
Bump selenium-webdriver from 4.16.0 to 4.27.0 (#10103)
dependabot[bot] Dec 10, 2024
75383f5
Bump command-line-args from 5.2.1 to 6.0.1 (#10106)
dependabot[bot] Dec 10, 2024
338db34
Bump androidx.test:core-ktx from 1.6.0-alpha04 to 1.6.1 in /android (…
dependabot[bot] Dec 10, 2024
c32ad33
Bump taskcluster-taskgraph from 11.2.4 to 12.1.0 in /taskcluster (#10…
dependabot[bot] Dec 10, 2024
144b314
Nit: fix showWindow (#10003)
strseb Dec 10, 2024
b12cdfd
Allow sending settings to the web-ext (#10112)
strseb Dec 10, 2024
a1d3ad0
Bump dotenv from 16.4.5 to 16.4.7 (#10104)
dependabot[bot] Dec 10, 2024
66d0080
More Mordor Fixes (#10115)
oskirby Dec 10, 2024
1f89025
Remove weekly updates for Windows Wireguard-Go and Balrog Updater (#1…
strseb Dec 10, 2024
c582f61
[Bot] Update i18n (#10116)
strseb Dec 12, 2024
d0f8e12
Bump taskcluster from 75.0.1 to 76.0.0 in /taskcluster (#10127)
dependabot[bot] Dec 16, 2024
2f96d4e
Bump thiserror from 2.0.6 to 2.0.7 (#10129)
dependabot[bot] Dec 16, 2024
3c85ae8
Add Thai to extras.xliff (#10132)
mcleinman Dec 16, 2024
aa804bc
[Bot] Update i18n (#10125)
strseb Dec 17, 2024
b69cb7e
VPN-6778 fix English translation (#10123)
mcleinman Dec 17, 2024
1b7c9df
[Bot] Update i18n (#10134)
strseb Dec 18, 2024
417b54f
[Bot] Update i18n (#10136)
strseb Dec 19, 2024
20d6aa1
VPN-6790 : Tweak Killer software detection (#10135)
lesleyjanenorton Dec 19, 2024
611edae
[Bot] Update i18n (#10138)
strseb Dec 20, 2024
265a5a7
FXVPN-319: Change extensionTelemetry to true by default (#10140)
lesleyjanenorton Dec 20, 2024
679218a
remove condition (#10124)
mcleinman Dec 23, 2024
6521ee2
Xcode 16 build fixes (#10148)
oskirby Dec 30, 2024
304d0ff
FXVPN-32 follow up: Add extension badge for addons (#10152)
mcleinman Dec 30, 2024
e172d9b
Bump aqtinstall from 3.1.18 to 3.1.21 (#10161)
dependabot[bot] Jan 2, 2025
1078d39
extend metric, add extra (#10133)
mcleinman Jan 2, 2025
579ae2e
Remove .gitmodules entry for dead 3rdparty/openSSL submodule (#10153)
andersk Jan 3, 2025
8298419
VPN-6318: Add reauth to subscription management flow (#10141)
mcleinman Jan 4, 2025
38d84b8
[Bot] Add new server name strings (#10167)
strseb Jan 6, 2025
8701d63
Improve Windows firewall logging (#10162)
oskirby Jan 6, 2025
2003351
VPN-6064 - detect dark mode (#10131)
mcleinman Jan 6, 2025
8127a1f
Diable broken test (#10168)
strseb Jan 7, 2025
f95b87b
[Bot] Update i18n (#10142)
strseb Jan 8, 2025
31eb72f
VPN-6324: Telemetry for web based authentication (#10171)
mcleinman Jan 8, 2025
b589939
VPN-6581 disable adjust (#10173)
mcleinman Jan 9, 2025
5291b30
VPN-6799: Add tests for timeToMainScreen metric (#10172)
oskirby Jan 9, 2025
a24fcd5
Add timestamp to socksproxy logfile (#10175)
oskirby Jan 10, 2025
17416b6
VPN-6320 change default in app auth (#10151)
mcleinman Jan 10, 2025
14fc3c7
Nit: add browser path (#10177)
strseb Jan 13, 2025
a3d6da6
[Bot] Update i18n (#10174)
strseb Jan 13, 2025
472ea43
Bump serde_json from 1.0.133 to 1.0.135 (#10181)
dependabot[bot] Jan 13, 2025
5662ffd
Bump thiserror from 2.0.7 to 2.0.11 (#10182)
dependabot[bot] Jan 13, 2025
c2445cf
Bump serde from 1.0.215 to 1.0.217 (#10156)
dependabot[bot] Jan 13, 2025
0884743
Bump reqwest from 0.12.9 to 0.12.12 (#10165)
dependabot[bot] Jan 13, 2025
e027cdf
Bump the npm group with 19 updates
dependabot[bot] Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 5 additions & 28 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,13 @@ updates:
# interval: "monthly"
# labels:
# - "dependencies"
# Windows Wireguard-Go
- package-ecosystem: "gomod"
directory: "/windows/tunnel"
schedule:
interval: "weekly"
labels:
- "dependencies"
# Android Wireguard-Go
- package-ecosystem: "gomod"
directory: "/android/daemon/tunnel/libwg-go"
schedule:
interval: "weekly"
labels:
- "dependencies"
# Balrog Updater
- package-ecosystem: "gomod"
directory: "/balrog"
schedule:
interval: "weekly"
labels:
- "dependencies"
# Android JVM Dependencies
- package-ecosystem: "gradle"
directory: "/android/"
Expand Down Expand Up @@ -68,17 +54,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
# Inspector
#- package-ecosystem: "npm"
# directory: "/tools/inspector"
# schedule:
# interval: "weekly"
# labels:
# - "dependencies"
# Language Localizer
#- package-ecosystem: "npm"
# directory: "/tools/languagelocalizer"
# schedule:
# interval: "monthly"
# labels:
# - "dependencies"
groups:
# NPM Dependencies are so unlikely to break things, let's group them into a weekly PR.
npm:
patterns:
- "*"
110 changes: 110 additions & 0 deletions .github/l10n/check_l10n_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,121 @@
import xml.etree.ElementTree as etree
import json
import os
import subprocess
import sys
import tempfile

script_folder = os.path.abspath(os.path.dirname(__file__))
vpn_root_folder = os.path.realpath(os.path.join(script_folder, os.pardir, os.pardir))

def fileContentsAsJSON(filepath):
try:
with open(filepath, 'r') as file:
content = json.load(file)

if not content:
print(f"No content found in: {filepath}")
sys.exit(1)
return content
except FileNotFoundError:
print(f"File not found: {filepath}")
sys.exit(1)
except Exception as e:
print(f"An error occurred while loading {filepath}: {e}")
sys.exit(1)

# Check if it uses shared strings. If so, pull the value for “title”, “subtitle”, then look within "blocks"
def getSharedStringsInManifest(mainifest_contents):
shared_string_ids = []
# If it includes the key “message” and if within "message", there is a “usesSharedStrings” key that is true...
if manifest_contents.get("message", {}).get("usesSharedStrings", False):
#...collect all the string IDs
if "title" in manifest_contents["message"]:
shared_string_ids.append(manifest_contents["message"]["title"])
else:
print(f"No title found for: {addon}")
sys.exit(1)
if "subtitle" in manifest_contents["message"]:
# It is acceptable if there is no subtitle (but title is required)
shared_string_ids.append(manifest_contents["message"]["subtitle"])
if not "blocks" in manifest_contents["message"]:
print(f"No blocks found for: {addon}")
sys.exit(1)
for block in manifest_contents["message"]["blocks"]:
if not "content" in block:
print(f"No content found in {addon} for {block}")
sys.exit(1)
if isinstance(block["content"], str):
shared_string_ids.append(block["content"])
elif isinstance(block["content"], list):
# This is the contents of a bulleted or ordered list; go one layer deeper.
for list_item in block["content"]:
if isinstance(list_item["content"], str):
shared_string_ids.append(list_item["content"])
else:
print(f"No content found in {addon} for {list_item}")
sys.exit(1)
else:
print(f"Content found in {addon} was unknown type for {block}")
sys.exit(1)
return shared_string_ids

### 1. Check Addons' shared strings - all string IDs should be present in the translation file. ###
# Find list of all addon folders
addon_path = os.path.join(vpn_root_folder, "addons")
try:
addon_list = [item for item in os.listdir(addon_path) if os.path.isdir(os.path.join(addon_path, item))]
except FileNotFoundError:
print(f"Path not found: {addon_path}")
sys.exit(1)
except Exception as e:
print(f"An error occurred when finding all addons: {e}")
sys.exit(1)

if len(addon_list) == 0:
print(f"No addons found")
sys.exit(1)

shared_string_ids = []

# For each, open the manifest file and pull out the shared strings
for addon in addon_list:
manifest_path = os.path.join(addon_path, addon, "manifest.json")
manifest_contents = fileContentsAsJSON(manifest_path)
shared_string_ids = shared_string_ids + getSharedStringsInManifest(manifest_contents)

# Create temporary translation file
tmp_path = tempfile.mkdtemp()
shared_addon_strings = os.path.join(addon_path, "strings.yaml")
shared_addons_tmp_file = os.path.join(tmp_path, "strings.xliff")
generate_addon_python_file = os.path.join(vpn_root_folder, "scripts", "utils", "generate_shared_addon_xliff.py")
p = subprocess.run(['python', generate_addon_python_file, '-i', shared_addon_strings, '-o', shared_addons_tmp_file])

# Check that the shared strings are present in the translation file
if not os.path.isfile(shared_addons_tmp_file):
print(f"Unable to find {shared_addons_tmp_file}")
sys.exit(1)
try:
with open(shared_addons_tmp_file, 'r') as file:
shared_string_content = file.read()
if not shared_string_content:
print(f"No content found in: {shared_addons_tmp_file}")
sys.exit(1)
except FileNotFoundError:
print(f"File not found: {shared_addons_tmp_file}")
sys.exit(1)
except Exception as e:
print(f"An error occurred while loading {shared_addons_tmp_file}: {e}")
sys.exit(1)

for shared_string_id in shared_string_ids:
string_id_unit = "<trans-unit id=\"" + shared_string_id + "\">"
if string_id_unit not in shared_string_content:
print(f"{string_id_unit} not found in shared string file")
sys.exit(1)

### 2. Check all strings for overall issues. ###

# Paths are relative to the root folder
paths = [
"translations.ts",
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/auth_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:

- name: Running tests
shell: bash
working-directory: ./build/tests/auth_tests
run: |
ctest --output-on-failure
run: ctest -L auth --output-on-failure

macos-unit-tests:
runs-on: macos-latest
Expand Down Expand Up @@ -78,9 +76,7 @@ jobs:
cmake --build build/cmake --target app_auth_tests

- name: Running tests
working-directory: ./build/cmake/tests/auth_tests
run: |
ctest --output-on-failure
run: ctest -L auth --output-on-failure

windows-unit-tests:
name: Run auth tests on Windows
Expand Down Expand Up @@ -118,6 +114,4 @@ jobs:

- name: Running tests
shell: bash
working-directory: ./build/tests/auth_tests
run: |
ctest --output-on-failure
run: ctest -L auth --output-on-failure
44 changes: 44 additions & 0 deletions .github/workflows/build_addons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# A reusable workflow to build addons
on:
workflow_call:
inputs:
test-addons-name:
required: true
type: string

jobs:
build-test-addons:
name: Build Test Addons
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup addons cache
id: addons-cache
uses: actions/cache@v4
with:
path: build-addons/
key: test-addons-${{ hashFiles('addons/**', 'test/functional/addons/**', 'scripts/addons/*.py', 'scripts/cmake/addons.cmake') }}

- name: Install build dependencies
if: steps.addons-cache.outputs.cache-hit != 'true'
shell: bash
run: |
git submodule init
git submodule update 3rdparty/i18n
sudo apt-get update
sudo apt-get install -y $(./scripts/linux/getdeps.py -b linux/debian/control)

- name: Build test addons
if: steps.addons-cache.outputs.cache-hit != 'true'
shell: bash
run: |
mkdir -p build-addons/
cmake -S $(pwd)/tests/functional/addons -B build-addons/
cmake --build build-addons/

- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.test-addons-name }}
path: build-addons/
2 changes: 1 addition & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
with:
bundle: mozillavpn.flatpak
manifest-path: manifest/org.mozilla.vpn.yml
cache-key: flatpak-builder-${{ github.sha }}
cache-key: flatpak-builder-${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.sha }}

dependabot-cargo:
name: "Update Crates"
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linters (clang, l10n)
name: Linters (clang, l10n, colors)
on:
# Triggers the workflow on pull request events but only for the main branch
pull_request:
Expand All @@ -12,7 +12,7 @@ on:

jobs:
linter:
name: Run Main Linters (clang, l10n, etc.)
name: Run Main Linters (clang, l10n, colors, etc.)
runs-on: ubuntu-22.04
steps:
- name: Clone repository
Expand All @@ -33,7 +33,7 @@ jobs:

- name: Generate updated .ts files and check for l10n errors
run: |
./scripts/utils/generate_ts.sh
./scripts/utils/generate_ts.sh -a
python .github/l10n/check_l10n_issues.py

- name: Check for QRC errors
Expand Down Expand Up @@ -65,6 +65,10 @@ jobs:
run: |
scripts/ci/check_lang_names.py

- name: Check for proper color usage
run: |
scripts/ci/check_colors.py nebula/ui/themes/

ktlint:
name: Run ktLint
runs-on: ubuntu-latest
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
source-bundle:
name: Source Bundle
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -35,9 +35,7 @@ jobs:

- name: Build source bundle
shell: bash
env:
GITREF: ${{github.ref}}
run: ./scripts/linux/script.sh --source --gitref ${GITREF}
run: ./scripts/linux/script.sh --source --gitref ${{github.ref}}

- name: Upload source bundle
uses: actions/upload-artifact@v4
Expand All @@ -51,7 +49,7 @@ jobs:
needs: source-bundle
runs-on: ubuntu-latest
container:
image: fedora:40
image: fedora:41

steps:
- name: Download Source Package
Expand All @@ -62,7 +60,7 @@ jobs:
- name: Install Build Dependencies
run: |
dnf -y update
dnf -y install rpmdevtools 'dnf-command(builddep)'
dnf -y install gdb rpmdevtools 'dnf-command(builddep)'
dnf -y builddep mozillavpn.spec

- name: Building package
Expand Down
Loading