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

fix: add lingering to rootless user tests #146

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

RobbieBuxton
Copy link
Collaborator

@RobbieBuxton RobbieBuxton commented Sep 4, 2024

I spent the last couple of days trying to figure out why I wasn't able to locally get some tests to pass on my laptop.

It turns out that systemd can kill the alice user between waiting for the services to start and actually testing them due to the brief period where the user is unused.

I assume this wasn't an issue on the test runners because they aren't a slow Chromebook so systemd never had an opportunity to cull the alice user. Either way this should make the tests more reliable!

Changes

  • Enabled lingering for the alice users in all rootless tests to stop systemd culling them.

  • Removed some dead code from and slightly refactored the snapshotter test.

@RobbieBuxton RobbieBuxton added the ok-to-test Runs NixOS tests label Sep 4, 2024
@RobbieBuxton RobbieBuxton marked this pull request as ready for review September 4, 2024 05:56
@elpdt852
Copy link
Collaborator

Thanks @RobbieBuxton ! This looked like it was hard to diagnose but TIL about lingering. lgtm

@elpdt852 elpdt852 force-pushed the fix-local-test-failing branch from e2c332f to 943ee12 Compare October 22, 2024 19:21
@elpdt852 elpdt852 merged commit f295782 into main Oct 22, 2024
13 checks passed
@elpdt852 elpdt852 deleted the fix-local-test-failing branch October 22, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Runs NixOS tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants