Skip to content

A dynamic ethernet resource script (Bugfix)#2431

Draft
hanhsuan wants to merge 1 commit intomainfrom
new_ethernet_resource_job
Draft

A dynamic ethernet resource script (Bugfix)#2431
hanhsuan wants to merge 1 commit intomainfrom
new_ethernet_resource_job

Conversation

@hanhsuan
Copy link
Copy Markdown
Contributor

Description

There are more and more Ethernet interfaces that cannot be tested for all checkbox Ethernet suite. Such as Virtual Ethernet, Hardware limitation of hotplug, part of wake on LAN support(s3, s4, s5) etc and hard to be controlled by manifest. It is not possible to filter them without defining for specific device. Therefore, we would like to provide one resource script that can be set dynamically from checkbox.conf and can be utilized by multiple resource job.

The example resource job that uses this script:

unit: job
id: iperf_resource
plugin: resource
environ:
    NON_SUPPORT_IPERF_MAC
    NON_SUPPORT_IPERF_INTERFACE
summary: Show all ethernet interface that need to be tested.
description:
    Show all ethernet interface that need to be tested.
command:
    concept.py --env-mac NON_SUPPORT_IPERF_MAC --env-iface NON_SUPPORT_IPERF_INTERFACE
estimated_duration: 3s
flags: preserve-locale

The demo test result: https://certification.canonical.com/hardware/202001-27667/submission/480613/

Resolved issues

Documentation

Tests

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.37%. Comparing base (bb6aba5) to head (ef42516).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2431      +/-   ##
==========================================
+ Coverage   58.33%   58.37%   +0.04%     
==========================================
  Files         474      475       +1     
  Lines       47751    47797      +46     
  Branches     8502     8514      +12     
==========================================
+ Hits        27854    27900      +46     
+ Misses      19012    19009       -3     
- Partials      885      888       +3     
Flag Coverage Δ
provider-base 33.10% <100.00%> (+0.18%) ⬆️

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.

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.

1 participant