Skip to content

Run and Report Test Apps and OS Boot Results in Patina QEMU PR Validation [Rebase & FF] - #223

Merged
makubacki merged 5 commits into
OpenDevicePartnership:mainfrom
makubacki:patina_pr_val_test_apps_and_os_boot
Nov 21, 2026
Merged

makubacki merged 5 commits into
OpenDevicePartnership:mainfrom
makubacki:patina_pr_val_test_apps_and_os_boot

Conversation

@makubacki

Copy link
Copy Markdown
Collaborator

Closes #219


run-patina-qemu-validation: Support OS images and test apps

Add inputs for an OS image, its boot device, a seed ISO, a test apps
directory, and a timeout.


Add actions for QEMU jobs that use a prebuilt DXE Core

setup-patina-qemu-validation can now skip the DXE core build to
reduce builds across different run scenarios.

A couplt of new actions are added to fetch the release firmware,
record each run's outcome, timing, and test app/OS image details in
a result.json file to be used for the PR comment.


PR validation: Run test apps and boot OSes on the release firmware

Builds the DXE core once, then runs the pre-compiled test apps from the
patina-qemu release and boot Ubuntu and the Windows Validation OS from
an SSD on every platform and build target.

Every run patches the PR's DXE core into the release ROM through
build_and_run_rust_binary.py.

OS images come from the cache. A missing image or release without
test apps is reported as unavailable instead of failing. Both can be
disabled with new run-test-apps and run-os-boot inputs.


Add an action to render test app and OS boot results

Turns the result.json files from the validation jobs into comment
sections.

The renderer validates the file data before rendering it into markdown.


PatinaQemuPrValidationPost.yml: Report test app and OS boot results

Downloads the result artifacts, renders them with the new action, and
adds the sections to the success and failure comments.

Metadata now records whether each check was enabled so the sections
are only shown when they apply.


Example of a successful run (excluding size report which has a limitation with base-ref in fork testing):

image

Test app result details:

image

Example of a single test app failure:

image image

@makubacki makubacki self-assigned this Nov 20, 2026
Add inputs for an OS image, its boot device, a seed ISO, a test apps
directory, and a timeout.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
setup-patina-qemu-validation can now skip the DXE core build to
reduce builds across different run scenarios.

A couplt of new actions are added to fetch the release firmware,
record each run's outcome, timing, and test app/OS image details in
a result.json file to be used for the PR comment.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Builds the DXE core once, then runs the pre-compiled test apps from the
patina-qemu release and boot Ubuntu and the Windows Validation OS from
an SSD on every platform and build target.

Every run patches the PR's DXE core into the release ROM through
build_and_run_rust_binary.py.

OS images come from the cache. A missing image or release without
test apps is reported as unavailable instead of failing. Both can be
disabled with new run-test-apps and run-os-boot inputs.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Turns the result.json files from the validation jobs into comment
sections.

The renderer validates the file data before rendering it into markdown.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Downloads the result artifacts, renders them with the new action, and
adds the sections to the success and failure comments.

Metadata now records whether each check was enabled so the sections
are only shown when they apply.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki
makubacki force-pushed the patina_pr_val_test_apps_and_os_boot branch from 519cfed to ef6ce5c Compare November 20, 2026 22:51
@makubacki
makubacki merged commit 95c7a93 into OpenDevicePartnership:main Nov 21, 2026
1 check passed
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.

[Feature] Test OS boot and Test Apps in the Patina QEMU PR validation workflow

3 participants