-
Notifications
You must be signed in to change notification settings - Fork 70
Inherit envvars more aggressively (bugfix) #2067
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
Conversation
The point of inheriting them from only DISPLAY having processes was to target user processes. This prioritizes them (as we do know the username) but still proceeds till we run out of options. Additionally this also calculates XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS always if it wasn't found anywhere to (try) to make the job start anyway with a sane-ish value
614829b to
2afd9aa
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2067 +/- ##
==========================================
+ Coverage 51.66% 51.90% +0.24%
==========================================
Files 386 387 +1
Lines 41492 41679 +187
Branches 7711 7743 +32
==========================================
+ Hits 21435 21635 +200
+ Misses 19293 19275 -18
- Partials 764 769 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fernando79513
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TYVM for this PR!
I think the strategy to inherit the envvars is much clearer now, and the detailed comments are appreciated.
Could you run the audio/alsa-playback in one of the DUTs that failed the test before to be sure that your change fixes the issue?
|
Building snaps for testing. |
|
My sideload job It seems fixed on 202309-32029 with server 22.04 It also seems fixed on 202412-36092 with server 24.04 Overall, the PR could fix the problem! Thank you @Hook25 |
e04a1b4 to
551d8e3
Compare
fernando79513
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1!
* Add $XDG_RUNTIME_DIR for alsa tests * Inherit envvars more aggressively The point of inheriting them from only DISPLAY having processes was to target user processes. This prioritizes them (as we do know the username) but still proceeds till we run out of options. Additionally this also calculates XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS always if it wasn't found anywhere to (try) to make the job start anyway with a sane-ish value * Python 3.5 :( * Also test the bailout mechanism --------- Co-authored-by: liaou3 <[email protected]>
* Add $XDG_RUNTIME_DIR for alsa tests * Inherit envvars more aggressively The point of inheriting them from only DISPLAY having processes was to target user processes. This prioritizes them (as we do know the username) but still proceeds till we run out of options. Additionally this also calculates XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS always if it wasn't found anywhere to (try) to make the job start anyway with a sane-ish value * Python 3.5 :( * Also test the bailout mechanism --------- Co-authored-by: liaou3 <[email protected]>
* Add $XDG_RUNTIME_DIR for alsa tests * Inherit envvars more aggressively The point of inheriting them from only DISPLAY having processes was to target user processes. This prioritizes them (as we do know the username) but still proceeds till we run out of options. Additionally this also calculates XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS always if it wasn't found anywhere to (try) to make the job start anyway with a sane-ish value * Python 3.5 :( * Also test the bailout mechanism --------- Co-authored-by: liaou3 <[email protected]>
Description
The point of inheriting them from only DISPLAY having processes was to target user processes. This prioritizes them (as we do know the username) but still proceeds till we run out of options. Additionally this also calculates XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS always if it wasn't found anywhere to (try) to make the job start anyway with a sane-ish value
Resolved issues
Fixes: CHECKBOX-1990
Fixes: #2058
Documentation
N/A
Tests
Launch a container and define the
XDG_RUNTIME_DIRenvvar. After this PR the function will read it correctly, before it won't.