Skip to content

Commit fdad4c9

Browse files
authored
Reenable spell checker (#150)
Enables the spell checker CI action again with a revised workflow. This now uses `pull_request_target` for the action context, so that PRs from forks can have comments posted on the PR. The workflow broke previously because the `prerelease` branch was force-pushed and the old pinned commit was removed. I'm keeping the pinned commit since this is running with the `pull_request_target` event because of security considerations, even if it may mean it breaks again in the future. If that happens, most likely only the commit needs to be updated. As before, the reporting may be too verbose, in which case we need to silence this a bit, but that can be changed over time.
1 parent cc4566e commit fdad4c9

File tree

6 files changed

+69
-8
lines changed

6 files changed

+69
-8
lines changed

.github/workflows/spelling.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Check Spelling
2+
3+
# Based on example in https://github.com/check-spelling/spell-check-this.
4+
on:
5+
push:
6+
branches: ['main']
7+
pull_request_target:
8+
branches: ['main']
9+
types: ['opened', 'reopened', 'synchronize']
10+
issue_comment:
11+
types: ['created']
12+
13+
jobs:
14+
spelling:
15+
name: Check Spelling
16+
permissions:
17+
contents: read
18+
pull-requests: write
19+
actions: read
20+
security-events: write
21+
outputs:
22+
followup: ${{ steps.spelling.outputs.followup }}
23+
runs-on: ubuntu-latest
24+
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
25+
concurrency:
26+
group: spelling-${{ github.event.pull_request.number || github.ref }}
27+
cancel-in-progress: true
28+
steps:
29+
- name: check-spelling
30+
id: spelling
31+
uses: check-spelling/check-spelling@2d5f9dd9d2d43584d36e4ae03a3508eff411eda9
32+
with:
33+
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
34+
checkout: true
35+
check_file_names: 0
36+
post_comment: 1
37+
use_magic_file: 1
38+
warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check
39+
use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
40+
extra_dictionary_limit: 20
41+
extra_dictionaries:
42+
cspell:software-terms/dict/softwareTerms.txt
43+
cspell:bash/dict/bash-words.txt
44+
cspell:companies/dict/companies.txt
45+
cspell:filetypes/filetypes.txt
46+
47+
comment-pr:
48+
name: Check Spelling Report (PR)
49+
runs-on: ubuntu-latest
50+
needs: spelling
51+
permissions:
52+
actions: read
53+
contents: read
54+
pull-requests: write
55+
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
56+
steps:
57+
- name: comment
58+
uses: check-spelling/check-spelling@2d5f9dd9d2d43584d36e4ae03a3508eff411eda9
59+
with:
60+
checkout: true
61+
task: ${{ needs.spelling.outputs.followup }}

docs/accounts/account-create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ After your password has been set, you will be redirected to a page where you log
3838

3939
![](../images/access/first-login.png)
4040

41-
From here you will need to set up [multi-factor authentification][ref-mfa-configure-otp] (MFA).
41+
From here you will need to set up [multi-factor authentication][ref-mfa-configure-otp] (MFA).
4242

4343
Once MFA has been configured, you will finally be redirected to the CSCS portal as shown:
4444

docs/services/firecrest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Version 2 is faster, easier to use, and more efficient in resource management th
2121

2222
!!! warning "Deprecation notice"
2323
If you're using **version 1**, we recommend you to port your applications to use the new version.
24-
We will communicate soon the exact date of the decomission of version 1 (not before Quarter 4 of 2025).
24+
We will communicate soon the exact date of the decommissioning of version 1 (not before Quarter 4 of 2025).
2525

2626
=== "Version 2"
2727

docs/software/uenv/configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ By default, uenv will generate color output according to the following:
5555
The default repo location for downloaded uenv images.
5656
The repo is selected according to the following process:
5757

58-
* if the `--repo` CLI arguement overrides
58+
* if the `--repo` CLI argument is given, use that setting
5959
* else if `repo` is set in the config file, use that setting
6060
* else use the default value of `$SCRATCH/.uenv-images`

docs/software/uenv/deploy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ However, it is not desirable to build every recipe on every possible target syst
106106
For example:
107107

108108
* An ICON development environment would only be deployed on the weather and climate platform
109-
* A GROMACS recipe would not be deployed on the weather and climate platrofm
109+
* A GROMACS recipe would not be deployed on the weather and climate platform
110110
* Development builds only need to run on test and staging clusters
111111

112112
A YAML file `config.yaml` is maintained in the [github.com/eth-cscs/alps-uenv](https://github.com/eth-cscs/alps-uenv/blob/main/config.yaml) repository that maps
113-
recipes to deployed versions on mucroarchitectures.
113+
recipes to deployed versions on microarchitectures.
114114

115115
### Permissions
116116

@@ -215,13 +215,13 @@ However,
215215
* access to some packages is restricted by applying access rules to the package path
216216
* e.g. access to `uenv-sources/vasp` is restricted to members of the vasp6 group
217217

218-
Permissons to acces restricted resources is set on a per-pipeline basis
218+
Permissions to access restricted resources is set on a per-pipeline basis
219219

220220
* For example, only the `alps-uenv` pipeline has access to the VASP source code, while the [`uenv build`][ref-uenv-build] pipeline does not.
221221

222222
| Package | Access | Path | Notes | Contact |
223223
|---------|--------|------|-------| ------- |
224-
| `cray-mpich` | anonymous | `uenv-sources/cray-mpich` | `cray-mpich`, `cray-gtl`, `cray-pals`, `cray-mpi` | Simon Pintarelli, Benjamin Comming|
224+
| `cray-mpich` | anonymous | `uenv-sources/cray-mpich` | `cray-mpich`, `cray-gtl`, `cray-pals`, `cray-mpi` | Simon Pintarelli, Benjamin Cumming|
225225
| `namd` | `uenv-sources-csstaff` | `uenv-sources/namd` | NAMD requires an account to download the source code | Rocco Meli |
226226
| `vasp` | `vasp6`, `cscs-uenv-admin` | `uenv-sources/vasp` | VASP requires a paid license to access source | Simon Frasch |
227227
| `vmd` | `uenv-sources-csstaff` | `uenv-sources/vmd` | VMD requires an account to download the source code | Alberto Invernizzi |

docs/storage/filesystems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ A daily process removes files that have not been **accessed (either read or writ
317317
!!! warning "Do not artificially update the access time of files"
318318
It is not allowed to automatically or artificially update the access time of files to avoid the cleanup policy, and CSCS scans for these activities.
319319

320-
Please move data to a file system that is suitable for persistant storage instead.
320+
Please move data to a file system that is suitable for persistent storage instead.
321321

322322
In addition to the automatic deletion of old files, if occupancy exceeds 60% the following steps are taken to maintain performance of the file system:
323323

0 commit comments

Comments
 (0)