Skip to content

Commit 1b8f182

Browse files
authored
Merge pull request #1069 from mulkieran/version-3.6.1
Version 3.6.1
2 parents 7f7addb + 850a9a3 commit 1b8f182

37 files changed

+605
-423
lines changed

.github/workflows/dummy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: stratis-cli dummy CI
55
on:
66
push:
77
branches:
8-
- master
8+
- patch-3.6.0
99
pull_request:
1010
branches:
11-
- master
11+
- patch-3.6.0
1212

1313
workflow_dispatch:
1414

.github/workflows/main.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: stratis-cli CI
55
on:
66
push:
77
branches:
8-
- master
8+
- patch-3.6.0
99
paths-ignore:
1010
- 'CHANGES.txt'
1111
- '**/README.rst'
@@ -14,7 +14,7 @@ on:
1414
- '.packit.yaml'
1515
pull_request:
1616
branches:
17-
- master
17+
- patch-3.6.0
1818
paths-ignore:
1919
- 'CHANGES.txt'
2020
- '**/README.rst'
@@ -41,41 +41,46 @@ jobs:
4141
python3-packaging
4242
python3-psutil
4343
python3-wcwidth
44-
task: PYTHONPATH=./src make -f Makefile lint
44+
task: >
45+
PATH=${PATH}:/github/home/.local/bin PYTHONPATH=./src
46+
make -f Makefile lint
4547
- dependencies: black python3-isort
4648
task: make -f Makefile fmt-ci
4749
- dependencies: shfmt
4850
task: make -f Makefile fmt-shell-ci
4951
runs-on: ubuntu-latest
50-
container: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
52+
container: fedora:39 # CURRENT DEVELOPMENT ENVIRONMENT
5153
steps:
52-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5355
- name: Install dependencies
5456
run: >
5557
dnf install -y
5658
make
59+
pip
5760
python-unversioned-command
5861
${{ matrix.dependencies }}
5962
- name: Display Python version
6063
run: python --version
64+
- name: Install pyright
65+
run: pip install --user pyright
6166
- name: Run test
6267
run: ${{ matrix.task }}
6368

6469
check-typos:
6570
runs-on: ubuntu-latest
66-
container: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
71+
container: fedora:39 # CURRENT DEVELOPMENT ENVIRONMENT
6772
steps:
6873
- name: Install dependencies
6974
run: >
7075
dnf install -y
7176
clang
7277
glibc-static
7378
make
74-
- uses: actions/checkout@v3
79+
- uses: actions/checkout@v4
7580
- uses: dtolnay/rust-toolchain@master
7681
with:
7782
components: cargo
78-
toolchain: 1.73.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
83+
toolchain: 1.77.2 # CURRENT DEVELOPMENT RUST TOOLCHAIN
7984
- uses: baptiste0928/cargo-install@v2
8085
with:
8186
crate: typos-cli
@@ -89,10 +94,10 @@ jobs:
8994
# MANDATORY CHECKS USING CURRENT DEVELOPMENT ENVIRONMENT
9095
- task: make -f Makefile all-tests
9196
rust_log: RUST_LOG=stratisd=debug
92-
image: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
97+
image: fedora:39 # CURRENT DEVELOPMENT ENVIRONMENT
9398
- task: make -f Makefile coverage-no-html
9499
rust_log:
95-
image: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
100+
image: fedora:39 # CURRENT DEVELOPMENT ENVIRONMENT
96101
# MANDATORY CHECKS USING LOWEST SUPPORTED ENVIRONMENT PROXY
97102
- task: make -f Makefile all-tests
98103
rust_log: RUST_LOG=stratisd=debug
@@ -103,7 +108,7 @@ jobs:
103108
# yamllint disable rule:line-length
104109
options: --privileged --userns=host --ipc=host -v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket:ro -v /usr/share/dbus-1:/usr/share/dbus-1
105110
steps:
106-
- uses: actions/checkout@v3
111+
- uses: actions/checkout@v4
107112
- name: Install dependencies
108113
run: >
109114
dnf install -y
@@ -131,6 +136,9 @@ jobs:
131136
toolchain: 1.71.1 # LOWEST SUPPORTED RUST TOOLCHAIN
132137
- name: Check out stratisd
133138
run: git clone https://github.com/stratis-storage/stratisd.git
139+
- name: Use stratisd 3.6.7
140+
run: git checkout tags/stratisd-v3.6.7 -b version-3.6.7
141+
working-directory: ./stratisd
134142
- name: Build stratisd
135143
run: PROFILEDIR=debug make build-all
136144
working-directory: ./stratisd
@@ -166,7 +174,7 @@ jobs:
166174
steps:
167175
- name: Display Python version
168176
run: python3 --version
169-
- uses: actions/checkout@v3
177+
- uses: actions/checkout@v4
170178
- name: Install dependencies
171179
run: >
172180
dnf install -y

.github/workflows/support.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: stratis-cli CI for support code
55
on:
66
push:
77
branches:
8-
- master
8+
- patch-3.6.0
99
paths-ignore:
1010
- 'CHANGES.txt'
1111
- '**/README.rst'
@@ -14,7 +14,7 @@ on:
1414
- 'shell-completion/**'
1515
pull_request:
1616
branches:
17-
- master
17+
- patch-3.6.0
1818
paths-ignore:
1919
- 'CHANGES.txt'
2020
- '**/README.rst'
@@ -33,9 +33,9 @@ jobs:
3333
- dependencies: yamllint
3434
task: make -f Makefile yamllint
3535
runs-on: ubuntu-latest
36-
container: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
36+
container: fedora:39 # CURRENT DEVELOPMENT ENVIRONMENT
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
- name: Install dependencies
4040
run: >
4141
dnf install -y

.github/workflows/weekly.yml

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

.packit.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ actions:
1212
- "git clone https://github.com/stratis-storage/ci --depth=1 ../distro"
1313
- "mv ../distro/mockbuild_test/stratis-cli.spec ../distro/stratis-cli.spec"
1414
create-archive:
15-
- "sed -i '/Requires.*stratisd/d' ../distro/stratis-cli.spec"
16-
- "sh -c 'python3 ../distro/release_management/create_artifacts.py ../distro/ --pre-release --specfile-path=../distro/stratis-cli.spec stratis-cli $(rpmspec -q --srpm --qf %{Version} ../distro/stratis-cli.spec)'"
15+
- "sh -c 'python3 ../distro/release_management/create_artifacts.py ../distro/ --pre-release --specfile-path=../distro/stratis-cli.spec stratis-cli'"
1716
fix-spec-file:
1817
- "echo 'skipping automatic fix-spec-file actions'"
1918
get-current-version:

CHANGES.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
stratis-cli 3.6.1
2+
=================
3+
Required stratisd version: 3.6.0
4+
5+
Recommended development environment: Fedora 38
6+
7+
* New commits:
8+
* Remove weekly CI
9+
* Run CI against patch branch
10+
* Use stratid 3.6.7
11+
12+
* Cherry-picked commits:
13+
* Do not specify the version to create_archive.py
14+
* Use create_artifacts.py to remove Requires line
15+
* github actions: update recommended Rust to 1.74.0
16+
* Advance current development environment to Fedora 39
17+
* github actions: update recommended Rust to 1.74.1
18+
* github actions: update recommended Rust to 1.75.0
19+
* Use checkout@v4
20+
* Disable pylint fixme check
21+
* Add a Makefile variable for pylint disables
22+
* Make a group for Clevis-related pool create options
23+
* Post-process namespace to detect parser errors
24+
* Fix some parser tests
25+
* Enforce precise parsing requirements for Clevis options
26+
* github actions: update recommended Rust to 1.76.0
27+
* Eliminate redundant action specifications
28+
* Do not specify default value of None
29+
* Simplify use of enums as choices in parser
30+
* Use enum for Clevis choices
31+
* Run pyright checks
32+
* Use type keyword argument rather than action
33+
* github actions: update recommended Rust to 1.77.0
34+
* Allow two abbreviations
35+
* github actions: update recommended Rust to 1.77.2
36+
* Replace getpass with custom implementation that uses sys.stdin
37+
38+
139
stratis-cli 3.6.0
240
=================
341
Required stratisd version: 3.6.0

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ UNITTEST_OPTS = --verbose
55
# need to be warned.
66
BANDIT_SKIP = --skip B404
77

8+
PYLINT_DISABLE = --disable=fixme
9+
810
.PHONY: lint
911
lint:
10-
pylint setup.py
11-
pylint bin/stratis
12-
pylint src/stratis_cli --disable=duplicate-code --ignore=_introspect.py
13-
pylint tests/whitebox --disable=duplicate-code
12+
pylint setup.py ${PYLINT_DISABLE}
13+
pylint bin/stratis ${PYLINT_DISABLE}
14+
pylint src/stratis_cli --disable=duplicate-code ${PYLINT_DISABLE} --ignore=_introspect.py
15+
pylint tests/whitebox --disable=duplicate-code ${PYLINT_DISABLE}
1416
bandit setup.py ${BANDIT_SKIP}
1517
bandit bin/stratis ${BANDIT_SKIP}
1618
# Ignore B101 errors. We do not distribute optimized code, i.e., .pyo
1719
# files in Fedora, so we do not need to have concerns that assertions
1820
# are removed by optimization.
1921
bandit --recursive ./src ${BANDIT_SKIP},B101
2022
bandit --recursive ./tests ${BANDIT_SKIP}
23+
pyright
2124

2225
.PHONY: fmt
2326
fmt:

_typos.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
[default.extend-words]
2+
# Misidentified as misspelling of "BE"
3+
DBE = "DBE"
4+
5+
[default.extend-identifiers]
6+
# Misidentified as misspelling of "on"
7+
pn = "pn"
8+
19
[files]
210
# typos tries to correct the spelling of D-Bus signatures
311
extend-exclude = ["_introspect.py"]

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[build-system]
22
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.pyright]
6+
include = ["src", "tests", "bin"]

src/stratis_cli/_actions/_bind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def unbind(namespace):
151151

152152
unbind_method = (
153153
Pool.Methods.UnbindClevis
154-
if namespace.method == EncryptionMethod.CLEVIS.value
154+
if namespace.method is EncryptionMethod.CLEVIS
155155
else Pool.Methods.UnbindKeyring
156156
)
157157

0 commit comments

Comments
 (0)