Skip to content

Add OpenCL-CTS to base provider (New)#2345

Merged
Hook25 merged 5 commits intocanonical:mainfrom
mckees:opencl-cts-mainline
Mar 23, 2026
Merged

Add OpenCL-CTS to base provider (New)#2345
Hook25 merged 5 commits intocanonical:mainfrom
mckees:opencl-cts-mainline

Conversation

@mckees
Copy link
Contributor

@mckees mckees commented Feb 19, 2026

Description

Add the OpenCL-CTS testing from contrib into the base proivider under graphics. The only notable difference is that all install logic and test run logic has been moved to the opencl-cts snap. I have intentionally left the job file separate because I will be submitting all of the contents of contrib/checkbox-gfx and anticipate the main jobs file getting very crowded.

Resolved issues

None

Documentation

I don't see a README with any related documentation under this provider, so I have not added any.

Tests

No tests were needed in contrib for opencl testing, so I have not created any new tests. I have validated this change by running the tests manually with checkbox-cli run

@mckees mckees marked this pull request as draft February 19, 2026 10:14
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.73%. Comparing base (3128237) to head (6ce7d91).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2345   +/-   ##
=======================================
  Coverage   57.73%   57.73%           
=======================================
  Files         467      467           
  Lines       47268    47268           
  Branches     8411     8411           
=======================================
  Hits        27292    27292           
  Misses      19092    19092           
  Partials      884      884           
Flag Coverage Δ
provider-base 32.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mckees mckees force-pushed the opencl-cts-mainline branch from a65569e to 438ca45 Compare February 20, 2026 09:16
@mckees mckees changed the title Add OpenCL-CTS to gpgpu provider (New) Add OpenCL-CTS to base provider (New) Feb 20, 2026
@mckees mckees requested a review from Hook25 February 20, 2026 10:36
@mckees mckees marked this pull request as ready for review February 20, 2026 10:37
Hook25
Hook25 previously approved these changes Mar 16, 2026
Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

This is ok. A few improvements to consider for a followup:

  • setup/install_opencl_cts could be a unit: setup job, that way it runs before bootstrap (and you can use the snap in bootstrap resources)
  • Change requires from package.name == 'clinfo' to executables.name == 'clinfo'

@mckees
Copy link
Contributor Author

mckees commented Mar 16, 2026

A few changes:

  • Rebased and fixed merge conflict
  • Changed testing to use beta version of the snap, which exists now
  • Changed to executables.name == 'clinfo' as requested
  • Changed to unit: setup job as requested
  • Fixed a CI failure since setup jobs are not allowed to be dependencies. Switched to include it

Re-tested after these changes, and it runs as expected

@mckees mckees requested a review from Hook25 March 16, 2026 23:43
Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

Sorry I didn't quite review it correctly last time, there are a couple of things I'd like you to change before landing this. I don't even know how this validates

@Hook25 Hook25 merged commit af26209 into canonical:main Mar 23, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants