-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
nixos/tests/sunshine: fix test #342813
nixos/tests/sunshine: fix test #342813
Conversation
@ofborg test sunshine |
Something is still wrong with pairing even after this change:
|
@ghpzin does this work for you locally as-is? for me to get this to complete, I had to add one additional check to try to ensure that the screen sharing session had begun before looking for
If I add this the test completes for me in ~25 seconds -- if not, it generally still completes, but takes 5 minutes. Even with this change I've still gotten Thanks for taking a look at this -- hadn't caught the failure yet. |
It does complete, but slowly for me too. Still can't track down why I have run test locally with some modification (to fail early) in a loop 132 times and 9 of them had this error, did not manage to find anything in logs indicating why it happens so far. Thought maybe Error:
No error:
There might be something in full PS also modifying test to catch that error is quite difficult, because seemingly adding |
- change text in `wait_for_console_text` to prevent sending curl with pairing response before moonlight can accept it - remove "close moonlight" step as next window stays on top in fullscreen, previous window with pairing result does not interfere with test. Otherwise it needs OCR or some other way to only do `send_key("kp_enter")` after "Pairing complete" window is visible. - add different ways to increase chances of successfull OCR: hide icewm panel, gxmessage window takes full screen without titlebar or buttons, black background, white foreground, consolas font,"ABC" text - add `wait_for_console_text` to only run OCR after window is visible
ae958f5
to
7fae736
Compare
Thank you, if it reduces flakiness it is all good. |
wait_for_console_text
to prevent sending curl with pairing response before moonlight can accept itsend_key("kp_enter")
after "Pairing complete" window is visible.Description of changes
Fixes
nixosTests.sunshine
timing out after 1 hour:https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.sunshine.x86_64-linux
https://hydra.nixos.org/build/272715035
Error log:
curl
with pin may execute before moonlight starts accepting it, so there is never a successful pairing.Changed
wait_for_console_text
so that does not happen, there is anotherExecuting
message that is shown before pairing begins, but it does not havepair
word in it:As there is a decent control over what is shown to be recognized with OCR added things to make it less flaky (removed other text on screen, changed colors, font and text).
Listed test maintainer:
@devusb
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.