Skip to content

Add manifest for fde tests (BugFix) #1898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged

Add manifest for fde tests (BugFix) #1898

merged 1 commit into from
May 23, 2025

Conversation

LiaoU3
Copy link
Contributor

@LiaoU3 LiaoU3 commented Apr 30, 2025

Description

Add manifest for FDE tests, so that it could be skipped easily while running manual tests.

Resolved issues

N/A

Documentation

N/A

Tests

N/A

Copy link

codecov bot commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.44%. Comparing base (57f3577) to head (a0d663c).
Report is 27 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1898   +/-   ##
=======================================
  Coverage   50.44%   50.44%           
=======================================
  Files         382      382           
  Lines       41027    41027           
  Branches     6890     6890           
=======================================
  Hits        20697    20697           
  Misses      19585    19585           
  Partials      745      745           
Flag Coverage Δ
provider-base 26.68% <ø> (ø)

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
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.

This looks ok to me but it makes me wonder if we should somehow just use

(manifest.has_tpm == 'True' or manifest.has_tpm2 == 'True')

What's the difference here?

@LiaoU3
Copy link
Contributor Author

LiaoU3 commented May 6, 2025

This looks ok to me but it makes me wonder if we should somehow just use

(manifest.has_tpm == 'True' or manifest.has_tpm2 == 'True')

What's the difference here?

Like you said, of course TPM and secureboot are prerequisites for enabling FDE. However, a device has TPM supported does not really need to enable FDE. For instance, a laptop nowadays has TPM and secureboot supported, however, we currently do not enable FDE on them now.

@pieqq
Copy link
Collaborator

pieqq commented May 6, 2025

Is it possible to detect if FDE is enabled for a given image? If so, we could use a resource job instead to determine whether or not to test FDE-related stuff.

My concern with using a manifest is that FDE is enabled by the image install/config, not by the hardware, so in the lab it's going to be more complicated to define whether or not FDE tests should be run (if we test a stock Ubuntu version, for instance, FDE wouldn't be enabled, so if the manifest says it is using FDE, we will get wrong results).

@Hook25
Copy link
Collaborator

Hook25 commented May 6, 2025

I'm pretty sure at least for CI this will be a bit of a mess either way. I'm pro using having this new manifest, but just know this will cause issues once we start enforcing manifests, given that if enabled, it breaks the image.

@LiaoU3 LiaoU3 merged commit fbc9364 into main May 23, 2025
19 checks passed
@LiaoU3 LiaoU3 deleted the fde branch May 23, 2025 02:56
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.

3 participants