Skip to content

Commit

Permalink
Merge pull request #3058 from mulkieran/v3.1.2-release
Browse files Browse the repository at this point in the history
Version 3.1.2
  • Loading branch information
mulkieran authored Jul 27, 2022
2 parents 30681c3 + 567b018 commit 9b232ea
Show file tree
Hide file tree
Showing 14 changed files with 166 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- task: |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../stratisd_proc_macros/Cargo.toml FEDORA_RELEASE=rawhide IGNORE_ARGS="--ignore-category low" make -f ../../Makefile check-fedora-versions
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../stratisd_proc_macros/Cargo.toml FEDORA_RELEASE=f35 IGNORE_ARGS="--ignore-category low" make -f ../../Makefile check-fedora-versions
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=rawhide IGNORE_ARGS="--ignore-category low" make -f ../../Makefile check-fedora-versions
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=f35 IGNORE_ARGS="--ignore-category low" make -f ../../Makefile check-fedora-versions
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=rawhide IGNORE_ARGS="--ignore-category low --ignore-high=libcryptsetup-rs" make -f ../../Makefile check-fedora-versions
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=f35 IGNORE_ARGS="--ignore-category low --ignore-high=libcryptsetup-rs" make -f ../../Makefile check-fedora-versions
runs-on: ubuntu-18.04
container:
image: fedora:36 # CURRENT DEVELOPMENT ENVIRONMENT
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
- task: make -f Makefile test
toolchain: 1.62.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: >-
TANG_URL=localhost
make -f Makefile test-clevis-loop-should-fail
toolchain: 1.62.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
- task: make -f Makefile release
toolchain: 1.62.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
components: cargo
runs-on: ubuntu-18.04
container:
image: ubuntu:hirsute
image: ubuntu:jammy
options: --privileged -v /dev:/dev
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
components: cargo
runs-on: ubuntu-18.04
container:
image: ubuntu:hirsute
image: ubuntu:jammy
options: --privileged -v /dev:/dev
steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 11 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
stratisd 3.1.2
==============
Recommended Rust toolchain version: 1.62.0
Lowest supported Rust toolchain version: 1.58.1

Recommended development platform for Python development: Fedora 36

- Cherry-picked commits from 3.3.0:
https://github.com/stratis-storage/stratisd/pull/3059


stratisd 3.1.1
==============
Recommended Rust toolchain version: 1.62.0
Expand Down
86 changes: 44 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stratisd"
version = "3.1.1"
version = "3.1.2"
authors = ["Stratis Developers <stratis-devel@lists.fedorahosted.org>"]
edition = "2018"
build = "build.rs"
Expand Down Expand Up @@ -46,6 +46,7 @@ byteorder = "1.2.3"
clap = "2.23.0"
crc = "2.0.0"
data-encoding = "2.3.0"
devicemapper = "0.32.1"
either = "1.5.0"
env_logger="0.9.0"
futures = "0.3.11"
Expand All @@ -71,17 +72,12 @@ version = "0.4.16"
default-features = false
features = ["clock", "std"]

[dependencies.devicemapper]
version = "0.32.0"
git = "https://github.com/stratis-storage/devicemapper-rs"
branch = "crates-io-patch-0.32.0"

[dependencies.stratisd_proc_macros]
version = "0.1.0"
path = "./stratisd_proc_macros"

[dependencies.libcryptsetup-rs]
version = "0.5.0"
version = "0.5.1"
features = ["mutex"]

[dependencies.tokio]
Expand Down
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,16 @@ test:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 cargo test --all-features -- --skip real_ --skip loop_ --skip clevis_

test-clevis-real:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_real_
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_real_ -- --skip clevis_real_should_fail

test-clevis-real-should-fail:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_real_should_fail

test-clevis-loop:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_loop_
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_loop_ -- --skip clevis_loop_should_fail_

test-clevis-loop-should-fail:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test clevis_loop_should_fail_

yamllint:
yamllint --strict .github/workflows/*.yml
Expand Down Expand Up @@ -382,7 +388,9 @@ check-fedora-versions: test-compare-fedora-versions
test-loop
test-real
test-clevis-loop
test-clevis-loop-should-fail
test-clevis-real
test-clevis-real-should-fail
test-compare-fedora-versions
test-set-lower-bounds
verify-dependency-bounds
Expand Down
2 changes: 1 addition & 1 deletion src/bin/stratis-utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fn predict_pool_usage(
.transpose()?;

let crypt_metadata_size = if encrypted {
Bytes(u128::from(crypt_metadata_size()))
crypt_metadata_size()
} else {
Bytes(0)
};
Expand Down
6 changes: 0 additions & 6 deletions src/dbus_api/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ where
E: Engine,
{
/// Convert changed properties from a pool to a series of D-Bus actions.
///
/// Precondition: Filtering of diffs that show no change has already been
/// done in the engine.
pub fn from_pool_diffs(diffs: HashMap<PoolUuid, PoolDiff>) -> Vec<Self> {
diffs
.into_iter()
Expand Down Expand Up @@ -170,9 +167,6 @@ where
}

/// Convert changed properties from filesystems to a series of D-Bus actions.
///
/// Precondition: Filtering of diffs that show no change has already been
/// done in the engine.
pub fn from_fs_diffs(diffs: HashMap<FilesystemUuid, StratFilesystemDiff>) -> Vec<Self> {
diffs
.into_iter()
Expand Down
Loading

0 comments on commit 9b232ea

Please sign in to comment.