Skip to content

Conversation

@fnordahl
Copy link
Member

@fnordahl fnordahl commented Nov 2, 2025

Systemd has mounted tracefs under /sys/kernel/tracing since version 245 [0]. Simultaneously, the kernel started at version 4.1 to automount /sys/kernel/debug/tracing on access for backwards compatibiliy.

The builtin system-trace currently only allows the old path.

Applications exist who will assume /sys/kernel/tracing as the preferred location, only to fall back to /sys/kernel/debug/tracing if the path does not exist.

Currently said applications will fail to work in snaps, because they will find /sys/kernel/tracing to exist only to fail later in execution when trying to access contents of files within.

0: systemd/systemd@aaaf42cb44d4

Thanks for helping us make a better snapd!
Have you signed the license agreement and read the contribution guide?

@github-actions github-actions bot added the Run only one system Only runs spread tests on one system label Nov 2, 2025
@codecov
Copy link

codecov bot commented Nov 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.46%. Comparing base (e141aec) to head (799164d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16232      +/-   ##
==========================================
+ Coverage   77.45%   77.46%   +0.01%     
==========================================
  Files        1333     1333              
  Lines      181634   181617      -17     
  Branches     2398     2398              
==========================================
+ Hits       140685   140694       +9     
+ Misses      32427    32402      -25     
+ Partials     8522     8521       -1     
Flag Coverage Δ
unittests 77.46% <ø> (+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.

@github-actions
Copy link

github-actions bot commented Nov 2, 2025

Sun Nov 2 22:43:40 UTC 2025
The following results are from: https://github.com/canonical/snapd/actions/runs/19015889022

Failures:

Executing:

  • openstack-ps7:ubuntu-core-18-64:tests/core/gadget-update-pc
  • openstack-ps7:ubuntu-24.04-64:tests/main/document-interfaces-url

Restoring:

  • openstack-ps7:ubuntu-core-18-64:tests/core/gadget-update-pc
  • openstack-ps7:ubuntu-core-18-64:tests/core/
  • openstack-ps7:ubuntu-core-18-64
  • openstack-ps7:ubuntu-20.04-64:tests/main/interface-allow-auto-connection:verified

Systemd has mounted tracefs under /sys/kernel/tracing since version
245 [0].  Simultaneously, the kernel started at version 4.1 to
automount /sys/kernel/debug/tracing on access for backwards
compatibiliy.

The builtin system-trace currently only allows the old path.

Applications exist who will assume /sys/kernel/tracing as the
preferred location, only to fall back to /sys/kernel/debug/tracing
if the path does not exist.

Currently said applications will fail to work in snaps, because they
will find /sys/kernel/tracing to exist only to fail later in
execution when trying to access contents of files within.

0: systemd/systemd@aaaf42cb44d4
Signed-off-by: Frode Nordahl <[email protected]>
@fnordahl fnordahl marked this pull request as ready for review November 2, 2025 21:58
@github-actions github-actions bot removed the Run only one system Only runs spread tests on one system label Nov 2, 2025
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.

1 participant