Skip to content

Commit

Permalink
Merge pull request #352 from mulkieran/typos-ci
Browse files Browse the repository at this point in the history
Add a spell-check task in ci
  • Loading branch information
mulkieran authored Oct 11, 2024
2 parents 7edfc0a + 19f5f14 commit f7aae3f
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 26 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@ jobs:
run: dnf install -y make yamllint
- name: Run test
run: make -f Makefile yamllint

spelling-checks:
runs-on: ubuntu-latest
container: fedora:40 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- name: Install dependencies for Fedora
run: >
dnf install -y
clang
make
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: cargo
toolchain: 1.81.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
- uses: baptiste0928/cargo-install@v3
with:
crate: typos-cli
- name: Run test
run: make -f Makefile check-typos
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ clean:
(cd ./docs/design ; $(MAKE) clean)
(cd ./docs/style ; $(MAKE) clean)

check-typos:
typos

WEBSITE_REPO ?=
test-website-repo:
echo "Testing that WEBSITE_REPO environment variable is set to a directory path"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Any content inside the `static/` directory (*not* `content/static/`) will be cop

### Front Page Sidebar

Links can be added adn removed by editing the `config.toml`. Specifically, the `hyde_user_links`, `hyde_developer_links`, or `hyde_contact_links` arrays.
Links can be added and removed by editing the `config.toml`. Specifically, the `hyde_user_links`, `hyde_developer_links`, or `hyde_contact_links` arrays.

## Theming

Expand Down
6 changes: 6 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[default.extend-words]
# Misidentified as spelling of "ME"
MEK = "MEK"

# Misidentified as word, actually a D-Bus signature fragment
ba = "ba"
2 changes: 1 addition & 1 deletion content/static/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ stratis_howto fs_howto 546 MiB Nov 09 2018 11:08 /dev/stratis/stratis_howt

## `snapshot`: Create a snapshot

To create a snaphot, which is a read/writeable thinly provisioned point in time copy of the source FS.
To create a snapshot, which is a read/writeable thinly provisioned point in time copy of the source FS.

```
# stratis filesystem snapshot olympic some_fs some_fs_snapshot
Expand Down
2 changes: 1 addition & 1 deletion content/stratify.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Download the `stratify.py` script and example kickstart file from GitHub:
```

The kickstart file can be customized before beginning the installation - for
example to set the system language, timzeone, or package selection for the
example to set the system language, timezone, or package selection for the
install. See the [kickstart
documentation](https://pykickstart.readthedocs.io/en/latest/) for further
information.
Expand Down
2 changes: 1 addition & 1 deletion content/stratis-release-announce-3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ of the filesystem D-Bus interface under the new system for stratisd 3.0.0 is
`org.storage.stratis3.filesystem.r0`.

The motivation for both these changes is the most typical of all: the
implementation of stratisd will become unwieldly and bug-ridden if we try to
implementation of stratisd will become unwieldy and bug-ridden if we try to
maintain backwards compatibility in the D-Bus layer while simultaneously
doing necessary redesign, re-implementation, and enhancement of the stratisd
engine. In particular, changes to the way errors are managed internally will
Expand Down
2 changes: 1 addition & 1 deletion content/stratis-release-notes-2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stratisd 2.1.0 supplies several new D-Bus interfaces:
additional `HasCache` property.
* `org.storage.stratis2.Report.r1`: This interface supports a set of
ad-hoc reports about Stratis. The interface is unstable; the names by
which the reports can be accesed are not guaranteed to remain stable,
which the reports can be accessed are not guaranteed to remain stable,
and the format of any report is only guaranteed to be valid JSON.

Please consult the D-Bus API Reference for the precise D-Bus specification.
Expand Down
2 changes: 1 addition & 1 deletion content/stratis-release-notes-2.4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mechanism. Previously, the user could create an encrypted pool using the
kernel keyring only, and could bind or unbind using Clevis only.

More minor user-visible changes are:
* An enhancment to the FetchProperties D-Bus interface in order to disclose
* An enhancement to the FetchProperties D-Bus interface in order to disclose
more information about sets of encrypted devices.
* The `engine_state_report` key in the report interface has been stabilized
and is guaranteed to be supported in future releases.
Expand Down
2 changes: 1 addition & 1 deletion content/stratis-release-notes-2.4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ associated with r4 D-Bus interfaces were not being sent appropriately,
now they are.

In addition, stratisd 2.4.1 includes logging, at the trace level, of lock
aquisitions and releases and additional logging in the systemd generators
acquisitions and releases and additional logging in the systemd generators
included with the release.

The stratis-cli 2.4.1 release includes:
Expand Down
2 changes: 1 addition & 1 deletion content/stratis-release-notes-3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ check using libblkid and exits with an error if libblkid reports that the
device is in use.
* Handling of errors returned by internal methods is improved; a chaining
mechanism has been introduced and the error chains can be scrutinized
programatically to identify expected scenarios like rollback failures.
programmatically to identify expected scenarios like rollback failures.
* A set of states indicating that a pool has reduced capability have been
added internally and are published on the D-Bus. A pool's capability is
reduced on an error being returned internally which contains, somewhere in
Expand Down
2 changes: 1 addition & 1 deletion content/stratisd-release-notes-2.0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ error was fixed ([stratisd issue 1730]).
The device discovery implementation was improved; computational complexity
was reduced and additional logging on unusual events was added.

The D-Bus layer was restructured to more cleanly suppport multiple versioned
The D-Bus layer was restructured to more cleanly support multiple versioned
D-Bus interfaces.

All macros were rewritten to use fully qualified names to improve code
Expand Down
14 changes: 7 additions & 7 deletions docs/dbus/manager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -158,7 +158,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -269,7 +269,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -428,7 +428,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -587,7 +587,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -746,7 +746,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down Expand Up @@ -905,7 +905,7 @@
<!--
Optional Clevis information to use to encrypt the pool.
s: Clevis "pin" specification, "tang" or "tpm".
s: pin-specfic Clevis configuration
s: pin-specific Clevis configuration
-->
<arg name="clevis_info" type="(b(ss))" direction="in" />
<!--
Expand Down
14 changes: 7 additions & 7 deletions docs/dbus/pool.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -392,7 +392,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -615,7 +615,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -846,7 +846,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -1077,7 +1077,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -1308,7 +1308,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down Expand Up @@ -1540,7 +1540,7 @@
b: True if the pool is encrypted using Clevis.
ss: Clevis configuration.
s: Clevis pin.
s: Pin-specfic Clevis configuration information.
s: Pin-specific Clevis configuration information.
-->
<property name="ClevisInfo" type="(b(b(ss)))" access="read" />
<!-- True if the pool is encrypted, otherwise false. -->
Expand Down
6 changes: 3 additions & 3 deletions docs/design/StratisSoftwareDesign.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ stratisd implements the D-Bus interface, and manages and monitors Stratis

\begin_layout Standard
stratisd includes a simulator engine.
The simulator engine is purely computational and does not affect the environmen
t, although it does communicate over the D-Bus.
The simulator engine is purely computational and does not affect the
environment, although it does communicate over the D-Bus.
\end_layout

\begin_layout Standard
Expand Down Expand Up @@ -4362,7 +4362,7 @@ Implementation Details

\begin_layout Standard
Stratis' command-line tool is written in Python.
Since it is only used after the system is booted by the adminstrator, Python's
Since it is only used after the system is booted by the administrator, Python's
interpreted nature and overhead is not a concern.
\end_layout

Expand Down

0 comments on commit f7aae3f

Please sign in to comment.