Project

General

Profile

Actions

action #133451

closed

Backend dies when passing non-US-keyboard letters to the 'type_string' function size:M

Added by okurz 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2023-07-25
Due date:
2023-08-11
% Done:

0%

Estimated time:

Description

Motivation

The backend process dies after passing russian language characters to the 'type_string' function, see #133319

Acceptance criteria

  • AC1: os-autoinst provides explicit feedback about language support, either proper unicode support or clear error message

Suggestions

  • Read how https://github.com/os-autoinst/os-autoinst/tree/master/consoles/VNC.pm currently works
  • Read qemu docs about emulated keyboards because that is what is important for what we need to pass to the test systems
  • Of course don't add support for individual characters. Try to provide a generic support (or "more generic"). If not possible then at least provide a clear error message what encodings or what keyboard keys are supported
  • If no better solution is found fall back to plain old try/catch and "unknown letter" error message
  • Check pending PRs for extending support for other keyboard layouts

Related issues 2 (2 open0 closed)

Copied from openQA Project - action #133319: Backend dies when passing russian letters to the 'type_string' functionNew2023-07-25

Actions
Copied to openQA Project - action #133613: Support for passing non-US-keyboard letters to the 'type_string' function size:MNew

Actions
Actions #1

Updated by okurz 10 months ago

  • Copied from action #133319: Backend dies when passing russian letters to the 'type_string' function added
Actions #2

Updated by okurz 10 months ago

  • Subject changed from Backend dies when passing russian letters to the 'type_string' function to Backend dies when passing non-US-keyboard letters to the 'type_string' function size:M
Actions #3

Updated by livdywan 10 months ago

  • Status changed from Workable to In Progress
  • Assignee set to livdywan

I'll be doing some reading first. Let's see what seems feasible.

Actions #4

Updated by openqa_review 9 months ago

  • Due date set to 2023-08-11

Setting due date based on mean cycle time of SUSE QE Tools

Actions #5

Updated by tinita 9 months ago

I played a bit to get familiar with how this is currently working.
So far I wasn't even manually able to send a german umlaut, e.g. "ä".
In the function consoles::VNC::map_and_send_key I added push @events, (195, 164); because that's the bytes for ä ("\303\244"), and that's also what xev is telling me.
I added -k de to the qemu-system-x86_64 arguments in backend::qemu::start_qemu.
Things like systemctl showed up as szstemctl as expected, but I wasn't able to find out which keycode to send for ä.

Actions #6

Updated by okurz 9 months ago

  • Copied to action #133613: Support for passing non-US-keyboard letters to the 'type_string' function size:M added
Actions #7

Updated by okurz 9 months ago

  • Description updated (diff)

As discussed I split out the actual support for non-US keyboards to #133613

Actions #8

Updated by livdywan 9 months ago

I opened a PR to clarify the error message. We concluded it's best to be clear on what's supported in practice.

Actions #9

Updated by tinita 9 months ago

Actions #10

Updated by livdywan 9 months ago

  • Status changed from In Progress to Feedback

Both PRs got merged, let's see that this has no surprising consequences once deployed

Actions #11

Updated by livdywan 9 months ago

  • Status changed from Feedback to Resolved

livdywan wrote:

Both PRs got merged, let's see that this has no surprising consequences once deployed

I think we're good here

Actions

Also available in: Atom PDF