-
Notifications
You must be signed in to change notification settings - Fork 278
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
Use serial_terminal to get a stable ghostscript #11786
Conversation
2edcbf9
to
08738f1
Compare
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.
This won't scale. How do you envision our tests should look like if you sprinkle in type_string_slow
in a specific case but not in general? I doubt this approach is sustainable.
If you see "performance problems" on specific workers then debug the specific workers. If you see stability problems in specific test modules then the test module should be designed accordingly. If you see a problem with the overall test flow or scenario then stability should be ensured on a higher level. For well-known infrastructure related limitations VNC_TYPING_LIMIT can be used.
VNC_TYPING_LIMIT is set already for 6, and I checked 4, it works though, but I don't want slow down whole tests. |
Running the setup commands in serial terminal and switching to VNC only to run |
I did not suggest to use VNC_TYPING_LIMIT in this specific case. Either find out what is causing trouble in the specific case and fix that or follow the advice from @mdoucha |
08738f1
to
4dbf0ee
Compare
4dbf0ee
to
d9bc9b9
Compare
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.
Some comment cleanup and new verification run would be nice. Other than that, looks good to me.
this is not working yet: |
Oh, right. The test PDF file was written to |
$self->select_serial_terminal(0); failed :
|
Oh, great, somebody forgot to define a non-root virtio console... Never mind, you can just switch directory to |
7118681
to
fe529a8
Compare
fe529a8
to
b672959
Compare
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.
I still suggest to run tests itself after the preparation as the non-priviledged user and keep that part as before.
Yes, that would be nice, but it's currently not possible without workarounds like |
sure, I would be fine with |
0365e70
to
42d32ae
Compare
42d32ae
to
0505f83
Compare
That pointless user switch is now messing up command prompt detection and slowing down the test to a crawl: |
please provide suggestion here, if you are not happy with these changes from Oliver or yourself for user switch, I really don't understand your guys what you're expecting. |
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.
please provide suggestion here, if you are not happy with these changes from Oliver or yourself for user switch, I really don't understand your guys what you're expecting.
Sorry, my last comment was for Oliver. The test will work perfectly fine with just changing the directory and generating the PDF as root. Otherwise LGTM.
tests/x11/ghostscript.pm
Outdated
type_string "su $username\n"; | ||
type_string "cd --\n"; |
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.
Following @mdoucha's last suggestion:
type_string "su $username\n"; | |
type_string "cd --\n"; | |
my $working_directory = script_output("mktemp -d -t GHOSTSCRIPTXXX"); | |
type_string "$working_directory\n"; |
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.
Later before changing to x11, do:
script_run "chmod -R $username $working_directory"
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.
once xterm is open, cd $working_directory
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.
That's quite a lot of overkill. Simple assert_script_run('cd ~' . $testapi::username);
will suffice. The rm -f
at the end will remove files owned by root just fine. Once the missing virtio terminal gets added, we can simply swap the cd
for select_user_serial_terminal()
.
0505f83
to
16ac822
Compare
select_serial_terminal should be stable and resolves the sporadic typing issue. see https://progress.opensuse.org/issues/87674 verification: http://10.160.64.152/tests/52#step/ghostscript
16ac822
to
982b9f4
Compare
thanks for your input! |
select_serial_terminal should be stable and resolves the sporadic
typing issue.
see https://progress.opensuse.org/issues/87674
verification:
http://10.160.64.152/tests/52#step/ghostscript/