Skip to content
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

Handle .su files with full file paths #77

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

noahp
Copy link
Collaborator

@noahp noahp commented Mar 2, 2023

Some build systems (Zephyr) will emit full paths into the .su files:

/home/noah/zephyr/qemu/qemu-app/src/main.c:184:13:prv_run_stack_metrics_example     1032    static
/home/noah/zephyr/qemu/qemu-app/src/main.c:147:12:prv_run_example_memory_metrics    16      static
/home/noah/zephyr/qemu/qemu-app/src/main.c:60:6:memfault_platform_get_device_info   8       static
/home/noah/zephyr/qemu/qemu-app/src/main.c:178:6:memfault_metrics_heartbeat_collect_data    96      dynamic,bounded
/home/noah/zephyr/qemu/qemu-app/src/main.c:190:6:main       48      dynamic,bounded

This breaks the .su parsing code. Add a fix to match on the basename
instead.

Some build systems (Zephyr) will emit full paths into the .su files:

```plaintext
/home/noah/zephyr/qemu/qemu-app/src/main.c:184:13:prv_run_stack_metrics_example     1032    static
/home/noah/zephyr/qemu/qemu-app/src/main.c:147:12:prv_run_example_memory_metrics    16      static
/home/noah/zephyr/qemu/qemu-app/src/main.c:60:6:memfault_platform_get_device_info   8       static
/home/noah/zephyr/qemu/qemu-app/src/main.c:178:6:memfault_metrics_heartbeat_collect_data    96      dynamic,bounded
/home/noah/zephyr/qemu/qemu-app/src/main.c:190:6:main       48      dynamic,bounded
```

This breaks the .su parsing code. Add a fix to match on the basename
instead.
@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Patch coverage: 75.00% and project coverage change: -0.07 ⚠️

Comparison is base (3571cbb) 81.57% compared to head (7621dd2) 81.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   81.57%   81.51%   -0.07%     
==========================================
  Files          11       11              
  Lines        1297     1298       +1     
==========================================
  Hits         1058     1058              
- Misses        239      240       +1     
Impacted Files Coverage Δ
puncover/collector.py 74.15% <75.00%> (-0.17%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@noahp noahp merged commit 1fb66e5 into master Mar 2, 2023
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.

None yet

1 participant