-
Notifications
You must be signed in to change notification settings - Fork 52
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
Run ethernet/ping_interface
unless hidden manifest set (e.g. lab runs) (new)
#1709
base: main
Are you sure you want to change the base?
Conversation
Only run ethernet/ping_interface if the _ignore_disconnected_ethernet_interface hidden manifest is set to false. Since this is the case by default, this test will always be run unless the hidden manifest is set to True (which we can use in the lab where only one of the device's Ethernet interface is connected).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1709 +/- ##
=======================================
Coverage 49.12% 49.12%
=======================================
Files 372 372
Lines 40338 40338
Branches 6809 6809
=======================================
Hits 19816 19816
Misses 19799 19799
Partials 723 723
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
_name: Ignore disconnected Ethernet interfaces | ||
value-type: bool | ||
hidden-reason: All Ethernet interfaces should be tested during enablement. However, when running regression tests in the lab, only one interface may be connected, but that should not trigger any failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont recall, even though I just wrote this, you can multiline this right? if so, please do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a recurrent source of SRU test hiccups, could you please...
- put in contribution guide a mention aimed at Canonical team members to update the lab machine manifests before merging a new test like this.
- rename the relevant repository of manifests to something that doesn't take a galaxy brain to remember it 😄 (https://github.com/canonical/ce-oem-dut-checkbox-configuration -- which is safe to mention in the public) and broadcast that. Renaming won't invalidate URLs, deploy keys etc immediately (or even very quickly I think), but they'll need to be done eventually.
- add a CI check in said repo to guard that expected manifest keys are included in all of the manifests included, so that people contributing new manifests know what to do.
Description
Use newly introduced hidden manifest (see #1699) to condition the run of the
ethernet/ping_interface
template jobs. This way, in the lab where devices with multiple Ethernet interfaces usually only have one of them connected, these jobs can be skipped and the genericethernet/ping-with-any-cable-interface
job can be run instead (validating that the Ethernet feature works to connect to ping the gateway). To that effect,ethernet/ping-with-any-cable-interface
is added to theethernet-automated
andafter-suspend-ethernet-automated
test plans, alongside theethernet/ping_interface
template.Resolved issues
https://warthogs.atlassian.net/browse/RTW-401
Documentation
The hidden manifest has a
hidden-reason
field which helps for documentation.Tests
Create the following launcher (
my-launcher
):and execute it:
Observe that the
ping_{interface}
template jobs are skipped, and theping-with-any-cable-interface
is run:Remove the
[manifest]
section from the launcher and repeat the operation. This time, bothping_{interface}
template jobs andping-with-any-cable-interface
are run.