Skip to content
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

conformance-test: Filter NIC by environment variable #514

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Sep 29, 2023

In order to verify a specific NIC works well with
the operator, the user who runs the test suite should be able to select involved devices.

This commit introduces the environment variable
SRIOV_DEVICE_NAME_FILTER to implement the selection behavior.

examples:
SRIOV_DEVICE_NAME_FILTER=ens1f1 tells the test suite to use a specific device selecting it by its name

SRIOV_DEVICE_NAME_FILTER="ens1*" tells the test suite that every device whose name starts with "ens1" can be used by the tests.

@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@zeeke zeeke force-pushed the e2e-test-select-pf branch from 475b628 to 5fbefa6 Compare September 29, 2023 15:35
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

I really like it!

I have one idea let me know what you think about.
we can have a device with the same name but on two different nodes for example:

node0 -> eno1 -> mlx
node1 -> eno1 -> intel

to over come this I will like to propose to extend the env variable to something like

<node>:<device>
both regex support

let me know what do you think

}
}
return nil, fmt.Errorf("unable to find sriov devices in node %s", node)

return filteredDevices, nil
}

// FindSriovDevices retrieves all valid sriov devices for the given node.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit please update the function comment

@zeeke
Copy link
Member Author

zeeke commented Oct 2, 2023

I have one idea let me know what you think about. we can have a device with the same name but on two different nodes for example:

node0 -> eno1 -> mlx
node1 -> eno1 -> intel

to over come this I will like to propose to extend the env variable to something like

<node>:<device> both regex support

let me know what do you think

It sounds good to me

@zeeke zeeke force-pushed the e2e-test-select-pf branch from 5fbefa6 to d59f8c6 Compare October 2, 2023 11:07
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@coveralls
Copy link

coveralls commented Oct 2, 2023

Pull Request Test Coverage Report for Build 6456540272

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.09%) to 24.935%

Files with Coverage Reduction New Missed Lines %
controllers/sriovibnetwork_controller.go 2 68.22%
api/v1/helper.go 6 40.87%
Totals Coverage Status
Change from base Build 6456533903: -0.09%
Covered Lines: 2213
Relevant Lines: 8875

💛 - Coveralls

// Name of environment variable to filter which decives can be discovered by FindSriovDevices and FindOneSriovDevice.
// The filter is a regexp matched against node names and device name in the form <node_name>:<device_name>
//
// For example, givend the following devices in the cluster:
Copy link
Collaborator

Choose a reason for hiding this comment

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

givend

@bn222
Copy link
Collaborator

bn222 commented Oct 2, 2023

LGTM

@zeeke zeeke force-pushed the e2e-test-select-pf branch from d59f8c6 to 9e9a4fe Compare October 2, 2023 12:02
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@zeeke zeeke force-pushed the e2e-test-select-pf branch from 9e9a4fe to 62e148f Compare October 9, 2023 07:33
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

In order to verify a specific NIC works well with
the operator, the user who runs the test suite should
be able to select involved devices.

This commit introduces the environment variable
`SRIOV_NODE_AND_DEVICE_NAME_FILTER` to implement the
selection behavior.

Signed-off-by: Andrea Panattoni <[email protected]>
@zeeke zeeke force-pushed the e2e-test-select-pf branch from 62e148f to 09c94a1 Compare October 9, 2023 12:22
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

/lgtm

@e0ne e0ne merged commit 027cef2 into k8snetworkplumbingwg:master Oct 27, 2023
11 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.

5 participants