Skip to content

Commit 78d9904

Browse files
committed
Merge branch 'ghSigning' into try-ghSigning
2 parents 5c6e5ed + 78cdba9 commit 78d9904

File tree

226 files changed

+246288
-240982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+246288
-240982
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ f227ca64c7f4cb41f83f531436c6dd11cf3c1d58
2727
be112ed44cb68f622a770c72fd29dd10899e9d07
2828
# Fix E721
2929
73a3529d8b10eb73a45117eead906c0a9cb4c41b
30+
# String concatenation
31+
9616ef6b18b5c5a5b64037a640d205868e66b964

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ See https://github.com/nvaccess/nvda/blob/master/.github/CONTRIBUTING.md.
88
-->
99

1010
### Link to issue number:
11+
<!-- Use Closes/Fixes/Resolves #xxx to link this PR to the issue it is responding to. -->
1112

1213
### Summary of the issue:
1314

14-
### Description of user facing changes
15+
### Description of user facing changes:
1516

16-
### Description of development approach
17+
### Description of developer facing changes:
18+
19+
### Description of development approach:
1720

1821
### Testing strategy:
1922

.github/workflows/testAndPublish.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
python-version: '3.11'
5656
architecture: x86
5757
- name: Install the latest version of uv
58-
uses: astral-sh/setup-uv@v5
58+
uses: astral-sh/setup-uv@v6
5959
- name: Set version variables
6060
run: ci/scripts/setBuildVersionVars.ps1
6161
- name: Set scons args
@@ -94,7 +94,7 @@ jobs:
9494
key: ${{ github.ref }}-${{ github.run_id }}
9595
fail-on-cache-miss: true
9696
- name: Install the latest version of uv
97-
uses: astral-sh/setup-uv@v5
97+
uses: astral-sh/setup-uv@v6
9898
- name: Check comments for translators
9999
run: ci/scripts/tests/translationCheck.ps1
100100
- name: Upload artifact
@@ -118,7 +118,7 @@ jobs:
118118
key: ${{ github.ref }}-${{ github.run_id }}
119119
fail-on-cache-miss: true
120120
- name: Install the latest version of uv
121-
uses: astral-sh/setup-uv@v5
121+
uses: astral-sh/setup-uv@v6
122122
- name: License check
123123
run: ci/scripts/tests/licenseCheck.ps1
124124

@@ -134,7 +134,7 @@ jobs:
134134
key: ${{ github.ref }}-${{ github.run_id }}
135135
fail-on-cache-miss: true
136136
- name: Install the latest version of uv
137-
uses: astral-sh/setup-uv@v5
137+
uses: astral-sh/setup-uv@v6
138138
- name: Run unit tests
139139
run: ci/scripts/tests/unitTests.ps1
140140
- name: Replace relative paths in unit test results
@@ -173,7 +173,7 @@ jobs:
173173
key: ${{ github.ref }}-${{ github.run_id }}
174174
fail-on-cache-miss: true
175175
- name: Install the latest version of uv
176-
uses: astral-sh/setup-uv@v5
176+
uses: astral-sh/setup-uv@v6
177177
- name: Upload translations to Crowdin
178178
env:
179179
crowdinProjectID: ${{ vars.CROWDIN_PROJECT_ID }}
@@ -192,7 +192,7 @@ jobs:
192192
key: ${{ github.ref }}-${{ github.run_id }}
193193
fail-on-cache-miss: true
194194
- name: Install the latest version of uv
195-
uses: astral-sh/setup-uv@v5
195+
uses: astral-sh/setup-uv@v6
196196
- name: Set version variables
197197
run: ci/scripts/setBuildVersionVars.ps1
198198
- name: Set scons args
@@ -236,6 +236,10 @@ jobs:
236236
echo " * Packaging metadata (library modules, installed python packages)" >> $GITHUB_STEP_SUMMARY
237237
238238
systemTests:
239+
strategy:
240+
fail-fast: false
241+
matrix:
242+
testSuite: [chrome, installer, startupShutdown]
239243
name: Run system tests
240244
runs-on: windows-latest
241245
needs: createLauncher
@@ -247,7 +251,7 @@ jobs:
247251
key: ${{ github.ref }}-${{ github.run_id }}
248252
fail-on-cache-miss: true
249253
- name: Install the latest version of uv
250-
uses: astral-sh/setup-uv@v5
254+
uses: astral-sh/setup-uv@v6
251255
- name: Get NVDA launcher
252256
id: getLauncher
253257
uses: actions/download-artifact@v4
@@ -258,29 +262,25 @@ jobs:
258262
run: ci/scripts/installNVDA.ps1
259263
env:
260264
nvdaLauncherDir: ${{ steps.getLauncher.outputs.download-path }}
261-
- name: Upload install log
262-
if: ${{ success() || failure() }}
263-
uses: actions/upload-artifact@v4
264-
with:
265-
name: Install log
266-
path: |
267-
testOutput/install
268-
!testOutput/install/nvda_install_temp.log
269265
- name: Run system tests
270266
run: ci/scripts/tests/systemTests.ps1
271267
env:
272268
nvdaLauncherDir: ${{ steps.getLauncher.outputs.download-path }}
269+
INCLUDE_SYSTEM_TEST_TAGS: ${{ matrix.testSuite }}
273270
- name: Upload system tests results
274-
if: ${{ success() || failure() }}
271+
if: ${{ failure() }}
275272
uses: actions/upload-artifact@v4
276273
with:
277-
name: System tests results
278-
path: testOutput/system
274+
name: "System tests results (${{ matrix.testSuite }})"
275+
path: |
276+
testOutput/system
277+
testOutput/install
278+
!testOutput/install/nvda_install_temp.log
279279
- name: Publish system test report
280280
uses: mikepenz/action-junit-report@v5
281-
if: ${{ success() || failure() }}
281+
if: ${{ failure() }}
282282
with:
283-
check_name: System tests
283+
check_name: "System tests (${{ matrix.testSuite }})"
284284
detailed_summary: true
285285
annotate_only: true
286286
report_paths: testOutput/system/systemTests.xml
@@ -311,7 +311,7 @@ jobs:
311311
path: output/symbols.zip
312312
- name: Install the latest version of uv
313313
if: ${{ github.event_name == 'push' && env.feature_uploadSymbolsToMozilla }}
314-
uses: astral-sh/setup-uv@v5
314+
uses: astral-sh/setup-uv@v6
315315
- name: Upload symbols to Mozilla
316316
if: ${{ github.event_name == 'push' && env.feature_uploadSymbolsToMozilla }}
317317
continue-on-error: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dlldata.c
2727
*.md.sub
2828
user_docs/*/*.html
2929
user_docs/*/*.css
30+
user_docs/*/*.ico
3031
extras/controllerClient/x86/nvdaController.h
3132
extras/controllerClient/x64
3233
extras/controllerClient/arm64

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ repos:
5353
- id: debug-statements
5454
# Removes trailing whitespace.
5555
- id: trailing-whitespace
56-
types_or: [python, c, c++, batch, markdown, toml, yaml]
56+
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
5757
# Ensures all files end in 1 (and only 1) newline.
5858
- id: end-of-file-fixer
59-
types_or: [python, c, c++, batch, markdown, toml, yaml]
59+
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
6060
# Removes the UTF-8 BOM from files that have it.
6161
# See https://github.com/nvaccess/nvda/blob/master/projectDocs/dev/codingStandards.md#encoding
6262
- id: fix-byte-order-marker
63-
types_or: [python, c, c++, batch, markdown, toml, yaml]
63+
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
6464
# Validates TOML files.
6565
- id: check-toml
6666
# Validates YAML files.
@@ -91,7 +91,7 @@ repos:
9191
)
9292
9393
- repo: https://github.com/asottile/add-trailing-comma
94-
rev: v3.1.0
94+
rev: v3.2.0
9595
hooks:
9696
# Ruff preserves indent/new-line formatting of function arguments, list items, and similar iterables,
9797
# if a trailing comma is added.
@@ -100,7 +100,7 @@ repos:
100100

101101
- repo: https://github.com/astral-sh/ruff-pre-commit
102102
# Matches Ruff version in pyproject.
103-
rev: v0.8.1
103+
rev: v0.11.12
104104
hooks:
105105
- id: ruff
106106
name: lint with ruff
@@ -109,14 +109,14 @@ repos:
109109
name: format with ruff
110110

111111
- repo: https://github.com/RobertCraigie/pyright-python
112-
rev: v1.1.394
112+
rev: v1.1.401
113113
hooks:
114114
- id: pyright
115115
alias: pyrightLocal
116116
name: Check types with pyright
117117

118118
- repo: https://github.com/RobertCraigie/pyright-python
119-
rev: v1.1.396
119+
rev: v1.1.401
120120
hooks:
121121
- id: pyright
122122
alias: pyrightCI
@@ -126,7 +126,7 @@ repos:
126126
stages: [manual] # Only run from CI manually
127127

128128
- repo: https://github.com/astral-sh/uv-pre-commit
129-
rev: 0.6.14
129+
rev: 0.7.9
130130
hooks:
131131
- id: uv-lock
132132
name: Verify uv lock file

appveyor/scripts/pushPackagingInfo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = "Stop";
22
if (!$env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:versionType) {
3-
# Not a pr build
3+
# Not a pr build
44
if ($env:APPVEYOR_REPO_BRANCH -eq "beta" -and $env:feature_crowdinSync) {
55
# Upload files to Crowdin for translation
66
uv run --with requests --directory appveyor crowdinSync.py uploadSourceFile 2 output\nvda.pot 2>&1

appveyor/scripts/sign.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ param(
99
)
1010

1111
Install-PSResource -Name SignPath -TrustRepository
12-
Import-Module -Name SignPath
1312
Submit-SigningRequest -ApiToken $ApiToken -InputArtifactPath $FileToSign -OutputArtifactPath $FileToSign -OrganizationId "12147e94-bba9-4fef-b29b-300398e90c5a" -ProjectSlug "NVDA" -SigningPolicySlug "release_signing_policy" -WaitForCompletion -Force

appveyor/scripts/tests/licenseCheck.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$licenseOutput = (Resolve-Path .\testOutput\license\)
22
$licenseOutput = "$licenseOutput\licenseCheckResults.md"
3-
.\runlicensecheck.bat "$licenseOutput"
3+
.\runlicensecheck.bat "$licenseOutput"
44
if ($LastExitCode -ne 0) {
55
Set-AppveyorBuildVariable "testFailExitCode" $LastExitCode
66
Add-AppveyorMessage "FAIL: License check. See $licenseOutput for more information."

ci/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ The tests we perform are:
3333
* license checks
3434
* unit tests
3535
* system tests
36+
* each test suite (i.e. .robot file) must be manually included by:
37+
* adding a tag to `Force Tags` in the suite
38+
* adding the tag to `systemTests.strategy.matrix.testSuite` in the [CI script](../.github/workflows/testAndPublish.yml)
3639

3740
## Artifacts
3841

ensureuv.bat

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)