canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 50 forks source link

Fix GPGPU provider distribution (New) #1542

Open pedro-avalos opened 1 month ago

pedro-avalos commented 1 month ago

Description

Currently, the GPGPU provider depends on the user running a setup script after installing the provider. This script sets up the NVIDIA/AMD repositories to get the required packages from upstream (i.e. CUDA toolkit or ROCm). This has worked so far, but it is negatively affecting the way we test the provider, especially with automated setups.

Resolved issues

Resolves CHECKBOX-1519

Documentation

Tests

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.13%. Comparing base (2cc3162) to head (bacb951). Report is 10 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1542 +/- ## =========================================== + Coverage 48.00% 91.13% +43.12% =========================================== Files 371 3 -368 Lines 39837 327 -39510 Branches 6733 38 -6695 =========================================== - Hits 19125 298 -18827 + Misses 19994 28 -19966 + Partials 718 1 -717 ``` | [Flag](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [checkbox-ng](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [checkbox-support](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [contrib-provider-ce-oem](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-base](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-certification-client](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-certification-server](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-genio](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-gpgpu](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `91.13% <ø> (+7.34%)` | :arrow_up: | | [provider-iiotg](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-resource](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [provider-sru](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | | [release-tools](https://app.codecov.io/gh/canonical/checkbox/pull/1542/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

pedro-avalos commented 1 month ago

Ok, the next step should be to get the repository setup part of the gpu-setup script as a part of the deb packaging step. I'm thinking maybe a postinst script should do the trick?

pedro-avalos commented 1 month ago

I'm wondering if the compiling should actually be part of postinst instead of part of the manage.py build step...