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

Refactor VM and application definitions #918

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

nesteroff
Copy link
Contributor

@nesteroff nesteroff commented Nov 29, 2024

Description of changes

This is an attempt to slightly refactor the application definitions to make it easier to add and remove applications. Currently, adding and removing applications is not straightforward because it requires editing multiple locations to add a launcher, GIVC configuration, etc.

Here are the main changes:

  • Virtualized applications are now defined within AppVM configurations in modules/reference/appvms.
  • Non-virtualized apps that run in the GUIVM are defined in modules/reference/desktop.
  • All dependencies are now configured automatically.
  • The "Open in Normal Browser" plugin configuration and Element desktop configuration have been moved to program modules to clean up AppVM configs.
  • The PAC code and Firewall settings have been moved to separate modules.

Checklist for things done

  • Summary of the proposed changes in the PR description
  • More detailed description in the commit message(s)
  • Commits are squashed into relevant entities - avoid a lot of minimal dev time commits in the PR
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • PR linked to architecture documentation and requirement(s) (ticket id)
  • Test procedure described (or includes tests). Select one or more:
    • Tested on Lenovo X1 x86_64
    • Tested on Jetson Orin NX or AGX aarch64
    • Tested on Polarfire riscv64
  • Author has run make-checks and it passes
  • All automatic Github Action checks pass - see actions
  • Author has added reviewers and removed PR draft status
  • Change requires full re-installation
  • Change can be updated with nixos-rebuild ... switch

Instructions for Testing

This PR does not introduce new functionality as it is mostly refactoring to make it easier to define virtual machines and applications. Overall testing is probably required to ensure all applications still work especially those in the business-vm.

@nesteroff nesteroff temporarily deployed to internal-build-workflow November 29, 2024 15:09 — with GitHub Actions Inactive
@nesteroff nesteroff temporarily deployed to internal-build-workflow December 3, 2024 14:34 — with GitHub Actions Inactive
@nesteroff nesteroff temporarily deployed to internal-build-workflow December 3, 2024 15:19 — with GitHub Actions Inactive
@nesteroff nesteroff temporarily deployed to internal-build-workflow December 5, 2024 14:07 — with GitHub Actions Inactive
@nesteroff nesteroff marked this pull request as ready for review December 6, 2024 09:43
@brianmcgillion brianmcgillion added the Needs Testing CI Team to pre-verify label Dec 9, 2024
@brianmcgillion
Copy link
Collaborator

502 bad gateway error when accessing outlook. teams works

@nesteroff
Copy link
Contributor Author

502 bad gateway error when accessing outlook. teams works

Good catch. There was a typo in the command. Fixed now, also tweaked it a bit more and rebased.

@milva-unikie milva-unikie added bug Something isn't working and removed bug Something isn't working labels Dec 10, 2024
@brianmcgillion
Copy link
Collaborator

pdf not being sent to the pdf vm for opening. it opens in the untrusted browser tab not downloaded and opened with the xdg-handler.

@milva-unikie
Copy link

pdf not being sent to the pdf vm for opening. it opens in the untrusted browser tab not downloaded and opened with the xdg-handler.

Same with Chrome and comms-vm. That is the only issue I found on X1.

Other than that everything seems to be good. Test-automation passes.

@milva-unikie milva-unikie added the bug on Lenovo X1 Carbon Issues found on Lenovo X1 Carbon while checking this PR label Dec 10, 2024
@brianmcgillion
Copy link
Collaborator

also it seems that the shutdown and reboot are not working.

@milva-unikie
Copy link

also it seems that the shutdown and reboot are not working.

For me they worked fine. There is a known issue that directly after a nixos-rebuild switch they might be broken, but a reboot (by pressing the power button) should fix that.

@leivos-unikie
Copy link
Contributor

leivos-unikie commented Dec 10, 2024

Checked that ci-test-automation succeeds for Orin-AGX, apps launch and power menu works.

Was testing on other targets than x1 really necessary?

@milva-unikie milva-unikie added Tested on Orin AGX This PR has been tested on NVIDIA Jetson AGX Orin and removed Needs Testing CI Team to pre-verify labels Dec 10, 2024
@nesteroff
Copy link
Contributor Author

Was testing on other targets than x1 really necessary?

Thanks for testing. This mainly affects laptop targets but it's good to know that AGX works fine.

@nesteroff
Copy link
Contributor Author

The PDF issue should be fixed now.

@nesteroff nesteroff added the Needs Testing CI Team to pre-verify label Dec 10, 2024
@brianmcgillion
Copy link
Collaborator

pdf working, teams and outlook also working.

@brianmcgillion brianmcgillion merged commit 8c7feb2 into tiiuae:main Dec 11, 2024
16 checks passed
@milva-unikie milva-unikie added Tested on Lenovo X1 Carbon This PR has been tested on Lenovo X1 Carbon and removed Needs Testing CI Team to pre-verify bug on Lenovo X1 Carbon Issues found on Lenovo X1 Carbon while checking this PR labels Dec 11, 2024
@milva-unikie
Copy link

I also confirmed with X1 that pdf files and connections in business-vm work now.

@nesteroff nesteroff deleted the apps branch December 11, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tested on Lenovo X1 Carbon This PR has been tested on Lenovo X1 Carbon Tested on Orin AGX This PR has been tested on NVIDIA Jetson AGX Orin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants