Skip to content

Conversation

@vineelko
Copy link
Contributor

Description

PE Image Load: Include image name on failure

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Validated on Q35

Integration Instructions

NA

@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Nov 17, 2025
@vineelko vineelko force-pushed the users/vineelko/pe_image_name_fix_1117 branch from 078c4c5 to 6cc7e71 Compare November 17, 2025 20:33
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
patina_dxe_core/src/image.rs 93.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@vineelko vineelko force-pushed the users/vineelko/pe_image_name_fix_1117 branch 2 times, most recently from 5cdaeb5 to 9d7e9b7 Compare November 19, 2025 07:10
Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
@vineelko vineelko force-pushed the users/vineelko/pe_image_name_fix_1117 branch from 9d7e9b7 to 6ec2c8f Compare November 20, 2025 01:03
@vineelko vineelko merged commit 52dfcb2 into OpenDevicePartnership:main Nov 20, 2025
7 checks passed
vineelko added a commit to vineelko/patina that referenced this pull request Nov 20, 2025
- The console logger was added to tests to improve code coverage for the
  `log::*` APIs in OpenDevicePartnership#1069.
- However, the `patina_dxe_core` crate currently has a few tests
  (`uefi_memory_map`) that use their own logger for custom behavior.
- Since both loggers end up in the same test binary
  (`patina_dxe_core-0fa2c65cbd247021.exe`), we cannot have two loggers in the
  same process (the `uefi_memory_map` logger initialization can panic if the
  console logger is already enabled).
- Until we finalize a proper mechanism that supports both scenarios, this PR
  reverts the previously added console logger.

Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
vineelko added a commit to vineelko/patina that referenced this pull request Nov 21, 2025
- The console logger was added to tests to improve code coverage for the
  `log::*` APIs in OpenDevicePartnership#1069.
- However, the `patina_dxe_core` crate currently has a few tests
  (`uefi_memory_map`) that use their own logger for custom behavior.
- Since both loggers end up in the same test binary
  (`patina_dxe_core-0fa2c65cbd247021.exe`), we cannot have two loggers in the
  same process (the `uefi_memory_map` logger initialization can panic if the
  console logger is already enabled).
- Until we finalize a proper mechanism that supports both scenarios, this PR
  reverts the previously added console logger.

Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
vineelko added a commit that referenced this pull request Nov 21, 2025
## Description

- The console logger was added to tests to improve code coverage for the
`log::*` APIs in #1069.
- However, the `patina_dxe_core` crate currently has a few tests
(`uefi_memory_map`) that use their own logger for custom behavior.
- Since both loggers end up in the same test binary
(`patina_dxe_core-0fa2c65cbd247021.exe`), we cannot have two loggers in
the same process (the `uefi_memory_map` logger initialization can panic
if the console logger is already enabled).
- Until we finalize a proper mechanism that supports both scenarios(code
coverage + uefi_memory_map debug logs), this
PR reverts the previously added console logger.

===
- [ ] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

`cargo make all`

## Integration Instructions

NA

Signed-off-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants