Skip to content

Commit

Permalink
Move to TMT with TPM2
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Jun 18, 2024
1 parent e1957ab commit 9bc3ce8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 107 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,60 +75,6 @@ jobs:
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain
run: ${{ matrix.task }}

# TESTS WITH TANG
checks_with_tang:
strategy:
matrix:
include:
# MANDATORY CHECKS USING CURRENT DEVELOPMENT COMPILER
- task: >-
TANG_URL=tang
RUST_LOG=stratisd=debug
make -f Makefile test-clevis-loop
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
image: fedora:40 # CURRENT DEVELOPMENT ENVIRONMENT
runs-on: ubuntu-22.04
container:
image: ${{ matrix.image }}
options: --privileged -v /dev:/dev -v /run/udev:/run/udev --ipc=host
services:
tang:
# yamllint disable rule:line-length
image: ghcr.io/stratis-storage/stratisd/tang:38
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
options: --privileged -p 80:80
steps:
- uses: actions/checkout@v4
- name: Install dependencies for Fedora
# cracklib-dicts: https://github.com/stratis-storage/project/issues/581
run: >
dnf install -y
clang
cryptsetup-devel
clevis
clevis-luks
cracklib-dicts
curl
dbus-devel
device-mapper-devel
device-mapper-persistent-data
libblkid-devel
make
ncurses
sudo
systemd-devel
systemd-udev
xfsprogs
- uses: dtolnay/rust-toolchain@master
with:
components: ${{ matrix.components }}
toolchain: ${{ matrix.toolchain }}
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain
run: ${{ matrix.task }}

stratis-cli-checks:
runs-on: ubuntu-22.04
container:
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,59 +99,6 @@ jobs:
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain
run: ${{ matrix.task }}

# TESTS WITH TANG
checks_with_tang:
strategy:
matrix:
include:
# MANDATORY CHECKS USING CURRENT DEVELOPMENT COMPILER
- task: >-
TANG_URL=tang
RUST_LOG=stratisd=debug
make -f Makefile test-clevis-loop-valgrind
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
components: cargo
image: fedora:40 # CURRENT DEVELOPMENT ENVIRONMENT
runs-on: ubuntu-22.04
container:
image: ${{ matrix.image }}
options: --privileged -v /dev:/dev -v /run/udev:/run/udev --ipc=host
services:
tang:
# yamllint disable rule:line-length
image: ghcr.io/stratis-storage/stratisd/tang:38
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
options: --privileged -p 80:80
steps:
- uses: actions/checkout@v4
- name: Install dependencies for Fedora
run: >
dnf install -y
clang
cryptsetup-devel
clevis
clevis-luks
cracklib-dicts
curl
device-mapper-persistent-data
dbus-devel
jq
libblkid-devel
make
sudo
systemd-devel
systemd-udev
valgrind
xfsprogs
- uses: dtolnay/rust-toolchain@master
with:
components: ${{ matrix.components }}
toolchain: ${{ matrix.toolchain }}
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain
run: ${{ matrix.task }}

python-based-tests:
strategy:
matrix:
Expand Down
19 changes: 19 additions & 0 deletions tests-fmf/loop/clevis.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
summary: Run tests that use loopbacked device framework for Clevis
duration: 20m
require:
- cargo
- clang
- clevis-luks
- cryptsetup-devel
- dbus-devel
- libblkid-devel
- make
- python3-dbus
- python3-dbus-client-gen
- python3-dbus-python-client-gen
- python3-psutil
- python3-pyudev
- rust
- systemd-devel
test: TANG_URL=localhost make -f Makefile test-clevis-loop
path: /
19 changes: 19 additions & 0 deletions tests-fmf/loop/valgrind.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
summary: Run tests that use loopbacked device framework for Clevis with valgrind
duration: 20m
require:
- cargo
- clang
- clevis-luks
- cryptsetup-devel
- libblkid-devel
- make
- python3-dbus
- python3-dbus-client-gen
- python3-dbus-python-client-gen
- python3-psutil
- python3-pyudev
- rust
- systemd-devel
- valgrind
test: TANG_URL=localhost make -f Makefile test-clevis-loop-valgrind
path: /

0 comments on commit 9bc3ce8

Please sign in to comment.