Skip to content

Don't automatically cancel test if device interface is disconnected during test #1132

Closed

Description

@duncangreene

Describe the bug
Some devices (Crestron AM-3200 as an example) during power up may up/down/up their NIC during bootstrap.

Image

Expected behavior
Testrun should not automatically cancel the test. It should be acceptable for a device to up/down/up it's NIC during boot up.

Environment (please provide the following information about your setup):

  • Version 2.1

Activity

  1. jhughesoti commented on Feb 18, 2025

    @jhughesoti
    Contributor

    This is an expected behavior (#376) developed to guarantee network and device stability during testing. The cancellation of the test only happens during the monitor period where the device is expected to be in a stable state from a networking perspective.

    If the device set their port up and down multiple times during its boot but never attained an IP address, it would not progress to the monitor state and would stay in the startup state. Once a device receives an IP address, Testrun will move to monitor state where this will be detected.

    It may be worth investigating why this specific device is becoming stable enough to receive a new DHCP address but still restarting its network services.

  2. duncangreene commented on Mar 11, 2025

    @duncangreene
    Author

    We have now witnessed this behaviour on a DUT from a completely separate manufacturer.

    It may be worth investigating why this specific device is becoming stable enough to receive a new DHCP address but still restarting its network services.

    I'm not sure we'll get an expedient answer on this one due to the size of the manufacturer. I'm also not sure necessarily that it's such a bad thing if the port cycles up/down/up during boot/post an initial DHCP DORA. Port up/down behaviours aren't atypical. The STP listening/learning emulation process explained in #933 is sort of an example of this.

    Maybe 'port consistently up from start' should be a test in it's own right under the connection module if it's of interest? I'm not sure that it should 'break' the functionality of Testrun as it does currently on these particular devices?

  3. jboddey commented on Apr 14, 2025

    @jboddey
    Contributor

    Perhaps we want to make this behavior to toggle from system.json?

  4. added
    framework
    on Apr 14, 2025
  5. added theissue type on Apr 14, 2025
  6. jboddey commented on Apr 22, 2025

    @jboddey
    Contributor

    A new property has been added to system.json and will be released in v2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

framework

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions