Skip to content

Make networking/info_device template depend on ethernet/detect (bugfix)#2001

Merged
Hook25 merged 1 commit intomainfrom
add-depends-networking-info-job
Jul 8, 2025
Merged

Make networking/info_device template depend on ethernet/detect (bugfix)#2001
Hook25 merged 1 commit intomainfrom
add-depends-networking-info-job

Conversation

@pieqq
Copy link
Copy Markdown
Collaborator

@pieqq pieqq commented Jul 4, 2025

networking/info_device__index___interface template should only be run if ethernet/detect passed.

ethernet/detect requires the has_ethernet_adapter manifest, so if this manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

  • on laptop without an onboard Ethernet adapter, testing teams sometimes plug an USB Ethernet adapter to make it easier to hook the device up in our testing lab (to be able to remote access it, etc.)
  • when doing so, Checkbox will detect this adapter as if it was an onboard adapter
  • testing teams rightfully set the has_ethernet_adapter manifest entry to true, yet the networking/info_device__index___interface job is still run for that device.

This can create unnecessary problems down the line to review test reports in order to issue a certificate.

Description

Resolved issues

Prevent unwanted failures in certificate requests (see this for example)

Documentation

Tests

networking/info_device__index___interface template should only be run if
ethernet/detect passed.

ethernet/detect requires the `has_ethernet_adapter` manifest, so if this
manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

- on laptop without an onboard Ethernet adapter, testing teams sometimes
plug an USB Ethernet adapter to make it easier to hook the device up in
our testing lab (to be able to remote access it, etc.)
- when doing so, Checkbox will detect this adapter as if it was an
onboard adapter
- testing teams rightfully set the `has_ethernet_adapter` manifest entry
to true, yet the networking/info_device__index___interface job is still
run for that device.

This can create unnecessary problems down the line to review test
reports in order to issue a certificate.
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.60%. Comparing base (17ece51) to head (69ab6ef).
⚠️ Report is 110 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2001   +/-   ##
=======================================
  Coverage   50.60%   50.60%           
=======================================
  Files         384      384           
  Lines       41180    41180           
  Branches     7636     7642    +6     
=======================================
  Hits        20841    20841           
+ Misses      19594    19592    -2     
- Partials      745      747    +2     
Flag Coverage Δ
provider-base 25.69% <ø> (ø)

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.

Copy link
Copy Markdown
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.

Thanks, makes sense

@Hook25 Hook25 merged commit 90e2579 into main Jul 8, 2025
24 checks passed
@Hook25 Hook25 deleted the add-depends-networking-info-job branch July 8, 2025 06:51
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
…x) (#2001)

Make networking/info_device template depend on ethernet/detect

networking/info_device__index___interface template should only be run if
ethernet/detect passed.

ethernet/detect requires the `has_ethernet_adapter` manifest, so if this
manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

- on laptop without an onboard Ethernet adapter, testing teams sometimes
plug an USB Ethernet adapter to make it easier to hook the device up in
our testing lab (to be able to remote access it, etc.)
- when doing so, Checkbox will detect this adapter as if it was an
onboard adapter
- testing teams rightfully set the `has_ethernet_adapter` manifest entry
to true, yet the networking/info_device__index___interface job is still
run for that device.

This can create unnecessary problems down the line to review test
reports in order to issue a certificate.
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
…x) (#2001)

Make networking/info_device template depend on ethernet/detect

networking/info_device__index___interface template should only be run if
ethernet/detect passed.

ethernet/detect requires the `has_ethernet_adapter` manifest, so if this
manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

- on laptop without an onboard Ethernet adapter, testing teams sometimes
plug an USB Ethernet adapter to make it easier to hook the device up in
our testing lab (to be able to remote access it, etc.)
- when doing so, Checkbox will detect this adapter as if it was an
onboard adapter
- testing teams rightfully set the `has_ethernet_adapter` manifest entry
to true, yet the networking/info_device__index___interface job is still
run for that device.

This can create unnecessary problems down the line to review test
reports in order to issue a certificate.
bladernr pushed a commit that referenced this pull request Aug 28, 2025
…x) (#2001)

Make networking/info_device template depend on ethernet/detect

networking/info_device__index___interface template should only be run if
ethernet/detect passed.

ethernet/detect requires the `has_ethernet_adapter` manifest, so if this
manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

- on laptop without an onboard Ethernet adapter, testing teams sometimes
plug an USB Ethernet adapter to make it easier to hook the device up in
our testing lab (to be able to remote access it, etc.)
- when doing so, Checkbox will detect this adapter as if it was an
onboard adapter
- testing teams rightfully set the `has_ethernet_adapter` manifest entry
to true, yet the networking/info_device__index___interface job is still
run for that device.

This can create unnecessary problems down the line to review test
reports in order to issue a certificate.
stanley31huang pushed a commit that referenced this pull request Oct 3, 2025
…x) (#2001)

Make networking/info_device template depend on ethernet/detect

networking/info_device__index___interface template should only be run if
ethernet/detect passed.

ethernet/detect requires the `has_ethernet_adapter` manifest, so if this
manifest entry is set to false, both tests would be skipped.

Before this patch, the following problem could happen:

- on laptop without an onboard Ethernet adapter, testing teams sometimes
plug an USB Ethernet adapter to make it easier to hook the device up in
our testing lab (to be able to remote access it, etc.)
- when doing so, Checkbox will detect this adapter as if it was an
onboard adapter
- testing teams rightfully set the `has_ethernet_adapter` manifest entry
to true, yet the networking/info_device__index___interface job is still
run for that device.

This can create unnecessary problems down the line to review test
reports in order to issue a certificate.
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