Skip to content

Conversation

@fbeutin-ledger
Copy link
Contributor

Used notably but the swap tests of rust applications on modern test framework

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for explicitly specifying the application name when it cannot be read from the ELF file, particularly useful for Rust applications in swap tests using the modern test framework.

  • Added a new optional configuration parameter SELF_APP_NAME to explicitly set the library name
  • Modified the Speculos argument preparation logic to prepend the custom app name to the library path when configured
  • Updated the changelog to document this new feature

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/ragger/conftest/configuration.py Added SELF_APP_NAME optional configuration parameter to the OptionalOptions dataclass with a default value of None
src/ragger/conftest/base_conftest.py Updated prepare_speculos_args to use SELF_APP_NAME when building the library load argument for Speculos
CHANGELOG.md Documented the new feature in version 1.42.0 release notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 77.94%. Comparing base (1f5eb06) to head (d7c2aaf).

Files with missing lines Patch % Lines
src/ragger/conftest/base_conftest.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #263      +/-   ##
==========================================
- Coverage   77.94%   77.94%   -0.01%     
==========================================
  Files          36       36              
  Lines        2145     2149       +4     
==========================================
+ Hits         1672     1675       +3     
- Misses        473      474       +1     
Flag Coverage Δ
apex_p-py3.10 77.85% <80.00%> (-0.01%) ⬇️
apex_p-py3.11 77.85% <80.00%> (-0.01%) ⬇️
apex_p-py3.12 77.85% <80.00%> (-0.01%) ⬇️
apex_p-py3.13 77.85% <80.00%> (-0.01%) ⬇️
apex_p-py3.9 77.82% <80.00%> (-0.01%) ⬇️
flex-py3.10 77.85% <80.00%> (-0.01%) ⬇️
flex-py3.11 77.85% <80.00%> (-0.01%) ⬇️
flex-py3.12 77.85% <80.00%> (-0.01%) ⬇️
flex-py3.13 77.85% <80.00%> (-0.01%) ⬇️
flex-py3.9 77.82% <80.00%> (-0.01%) ⬇️
nanos-py3.10 76.17% <80.00%> (-0.01%) ⬇️
nanos-py3.11 76.17% <80.00%> (-0.01%) ⬇️
nanos-py3.12 76.17% <80.00%> (-0.01%) ⬇️
nanos-py3.13 76.17% <80.00%> (-0.01%) ⬇️
nanos-py3.9 76.28% <80.00%> (-0.01%) ⬇️
nanosp-py3.10 76.22% <80.00%> (-0.01%) ⬇️
nanosp-py3.11 76.22% <80.00%> (-0.01%) ⬇️
nanosp-py3.12 76.22% <80.00%> (-0.01%) ⬇️
nanosp-py3.13 76.22% <80.00%> (-0.01%) ⬇️
nanosp-py3.9 76.33% <80.00%> (-0.01%) ⬇️
nanox-py3.10 76.17% <80.00%> (-0.01%) ⬇️
nanox-py3.11 76.17% <80.00%> (-0.01%) ⬇️
nanox-py3.12 76.17% <80.00%> (-0.01%) ⬇️
nanox-py3.13 76.17% <80.00%> (-0.01%) ⬇️
nanox-py3.9 76.28% <80.00%> (-0.01%) ⬇️
stax-py3.10 77.85% <80.00%> (-0.01%) ⬇️
stax-py3.11 77.85% <80.00%> (-0.01%) ⬇️
stax-py3.12 77.85% <80.00%> (-0.01%) ⬇️
stax-py3.13 77.85% <80.00%> (-0.01%) ⬇️
stax-py3.9 77.82% <80.00%> (-0.01%) ⬇️

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.

@sonarqubecloud
Copy link

@fbeutin-ledger
Copy link
Contributor Author

LedgerHQ/ledgered#61

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