Skip to content

Remove tpm2-tools test suite from UC20/20.04 test plans (bugfix)#1945

Merged
Hook25 merged 2 commits into
mainfrom
remove-tpm2-tools-focal
Jun 4, 2025
Merged

Remove tpm2-tools test suite from UC20/20.04 test plans (bugfix)#1945
Hook25 merged 2 commits into
mainfrom
remove-tpm2-tools-focal

Conversation

@pieqq
Copy link
Copy Markdown
Collaborator

@pieqq pieqq commented Jun 3, 2025

Description

Switch 20.04 test plans from using the tpm-cert-focal-automated nested
part to using the tpm-cert-automated instead, and remove tpm-cert-focal-automated.

tpm-cert-automated is only using clevis-based tests instead of the tpm2-tools test
suite, as these integration tests are not reliable on some hardware, and
may mess up some TPM2 PCRs which may render some devices (with full disk
encryption using TPM2) unbootable. This has an impact on our SRU testing.

Note that later versions (UC22, 22.04, UC24, 24.04) are already using the tpm-cert-automated test plan, and therefore skipping the tpm2-tools test suite.

Resolved issues

Fix #1865

Documentation

Tests

Sideloaded the certification-client provider onto the dawson-001 agent running UC20, and ran the TPM2 part of the automated-iot-core20 test plan. All good:

https://certification.canonical.com/hardware/201802-26085/submission/429655/

pieqq added 2 commits June 3, 2025 14:44
Switch 20.04 test plans from using the tpm-cert-focal-automated nested
part to using the tpm-cert-automated instead.

The latter is only using clevis tests instead of the tpm2-tools test
suite, as these integration tests are not reliable on some hardware, and
may mess up some TPM2 PCRs which may render some devices (with full disk
encryption using TPM2) unbootable.
This test plan is not called anywhere else.

Fix #1865
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.40%. Comparing base (d4eee84) to head (41eca49).
⚠️ Report is 110 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1945   +/-   ##
=======================================
  Coverage   50.40%   50.40%           
=======================================
  Files         384      384           
  Lines       41087    41087           
  Branches     6749     6749           
=======================================
  Hits        20709    20709           
  Misses      19637    19637           
  Partials      741      741           
Flag Coverage Δ
provider-certification-client 57.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, well done

@Hook25 Hook25 merged commit 8f0b7e2 into main Jun 4, 2025
36 of 38 checks passed
@Hook25 Hook25 deleted the remove-tpm2-tools-focal branch June 4, 2025 09:25
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
* Stop using tpm2-tools test suite on UC20/20.04

Switch 20.04 test plans from using the tpm-cert-focal-automated nested
part to using the tpm-cert-automated instead.

The latter is only using clevis tests instead of the tpm2-tools test
suite, as these integration tests are not reliable on some hardware, and
may mess up some TPM2 PCRs which may render some devices (with full disk
encryption using TPM2) unbootable.

* Remove tpm-cert-focal-automated

This test plan is not called anywhere else.

Fix #1865
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
* Stop using tpm2-tools test suite on UC20/20.04

Switch 20.04 test plans from using the tpm-cert-focal-automated nested
part to using the tpm-cert-automated instead.

The latter is only using clevis tests instead of the tpm2-tools test
suite, as these integration tests are not reliable on some hardware, and
may mess up some TPM2 PCRs which may render some devices (with full disk
encryption using TPM2) unbootable.

* Remove tpm-cert-focal-automated

This test plan is not called anywhere else.

Fix #1865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove TPM2 tests for UC20, 22 and 24

2 participants