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

Drop Xorg server and libxklavier #5829

Merged
merged 32 commits into from
Oct 10, 2024

Conversation

jkonecny12
Copy link
Member

@jkonecny12 jkonecny12 commented Aug 14, 2024

This is port of the:

It is first part of the Wayland migration patches to Fedora.

Resolves: https://fedoraproject.org/wiki/Changes/Anaconda_As_Native_Wayland_Application

TODO:

Ready for review

  • Tested on boot.iso - works as expected
  • Tested on KDE Live - works almost as expected (there is minor bug when switching keyboard layout in system)
  • Tested on Sway Live - works with additional fixes (new sway-config package needs release + Remove variant before setting new localed layouts alebastr/sway-systemd#30)
  • Tested on Fedora Workstation - works as expected (not impacted by this change from my testing)

After this merge

@jkonecny12 jkonecny12 added blocked Don't merge this pull request! release note required Write a release note for this change. f41 labels Aug 14, 2024
@github-actions github-actions bot added the infrastructure Changes affecting mostly infrastructure label Aug 14, 2024
@pep8speaks
Copy link

pep8speaks commented Aug 21, 2024

Hello @jkonecny12! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 167:100: E501 line too long (120 > 99 characters)

Comment last updated at 2024-10-09 08:19:10 UTC

@jkonecny12
Copy link
Member Author

Add #5842 on top of the pile.

@jkonecny12 jkonecny12 added f42 Fedora 42 and removed infrastructure Changes affecting mostly infrastructure labels Aug 21, 2024
@Conan-Kudo
Copy link
Contributor

Can we please put the VNC stuff back? GRD supports VNC and RDP, and there are many more high quality VNC clients than there are RDP clients for Linux. And even the first party Mac remote desktop client is VNC-based, not RDP.

@jkonecny12
Copy link
Member Author

@Conan-Kudo as said a few times. I won't do that from start. This is already quite heavy patch set and getting into this VNC would make it just heavier.

Also based on the GRD maintainer reply it doesn't sound wise move in the current situation https://lists.fedoraproject.org/archives/list/[email protected]/message/G4DFKOUDDDDYHNQBNYRH52XVYKWK5X2U/

@jkonecny12
Copy link
Member Author

Added support for localed. Unfortunately we can't merge this until this is resolved https://pagure.io/releng/issue/12275 because it's blocking one of our new dependency.

@jkonecny12
Copy link
Member Author

Also I need to do testing on Live to find how it behaves there.

@jkonecny12
Copy link
Member Author

UPDATED:

  • Fix pep8 failures

jkonecny12 and others added 6 commits October 9, 2024 10:18
If Anaconda will set keyboard layouts to compositor but options are
missed then we shouldn't change the compositor options but rather use
what is already set.

This will avoid problematic behavior of changing what user has defined
in the system or similar cases. Also we have this tested in
kickstart-tests, so this commit is fixing these tests.

Also fix existing tests and cover this functionality by tests.
We need to disable these repositories to avoid dependencies from it.

With this changeset we depends on gnome-remote-desktop which depends on
librdp which depends (Fedora only) on openh264. However, if fedora-cisco
repository is not enabled it will instead install noopenh264 package
which is a stub package in the main repositories.
Move the GRDServer class creation to the end of the `setup_display`
method. This class have checks for binaries in the `__init__` method
which is causing early failures. Also do not create the class if it is
not really used.
The Wayland/RDP support broke the installer running on s390x z/VM and LPAR.

Resolves: RHEL-45516
(cherry picked from commit 931dea5)
@jkonecny12
Copy link
Member Author

UPDATED:

@jkonecny12
Copy link
Member Author

/kickstart-test --testtype smoke

@jkonecny12
Copy link
Member Author

/kickstart-test --kstest-pr 1309 ui_rdp

@jkonecny12
Copy link
Member Author

/kickstart-test --skip-testtypes whatever

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking good. :)

KKoukiou pushed a commit to KKoukiou/anaconda-webui that referenced this pull request Oct 9, 2024
There is a new patchset to migrate Anaconda to Wayland native
application. This patchset is unfortunately quite big and complicated.
rhinstaller/anaconda#5829

Current Web UI testing depends on updates image creation from the
Anaconda RPMs which are downloaded from Rawhide and/or COPR repos.
However, we are hitting issues for updates images in this case.

- Removal of spoke in Anaconda will not be covered by updates image.
  This is expected because RPM don't have information that some file
  was removed. Usually this is not an issue because the removed code is
  not imported. Unfortunately, here the code is imported by our
  dynamic spoke importer. That will result in traceback because
  of missing imports in the removed spoke.
- The patchset in Anaconda is adding new dependencies required to be
  able to start the Wayland environment, however, these are not covered
  when an updates image is created because we can't tell which deps are
  new and should be part of the ISO.

We should resolve this somehow by improving the workflow in the future.
For now we can continue with this hotfix.
jkonecny12 added a commit to jkonecny12/anaconda-webui that referenced this pull request Oct 9, 2024
There is a new patchset to migrate Anaconda to Wayland native
application. This patchset is unfortunately quite big and complicated.
rhinstaller/anaconda#5829

Current Web UI testing depends on updates image creation from the
Anaconda RPMs which are downloaded from Rawhide and/or COPR repos.
However, we are hitting issues for updates images in this case.

- Removal of spoke in Anaconda will not be covered by updates image.
  This is expected because RPM don't have information that some file
  was removed. Usually this is not an issue because the removed code is
  not imported. Unfortunately, here the code is imported by our
  dynamic spoke importer. That will result in traceback because
  of missing imports in the removed spoke.
- The patchset in Anaconda is adding new dependencies required to be
  able to start the Wayland environment, however, these are not covered
  when an updates image is created because we can't tell which deps are
  new and should be part of the ISO.

We should resolve this somehow by improving the workflow in the future.
For now we can continue with this hotfix.
@KKoukiou
Copy link
Contributor

We have agreed that although the Web UI tests are broken on this PR - we need to merge it - and wait for the new ISO to include the new deps for wayland for the Web UI CI to consume.

All the efforts we did to make this work ended unsuccesfully (Manual testing of Web UI happened - it looks fine).

@rvykydal
Copy link
Contributor

rvykydal commented Oct 15, 2024

For the reference, these kickstart-test flakes / issues started to appear also on daily-iso after merge of the PR (used to be seen only on rhel-10 before):
rhinstaller/kickstart-tests#1261
rhinstaller/kickstart-tests#1296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f42 Fedora 42 release note required Write a release note for this change.
Development

Successfully merging this pull request may close these issues.

8 participants