Skip to content

TestAclReboot test fix for Nokia-400G-T2 chassis#8172

Merged
tjchadaga merged 5 commits intosonic-net:masterfrom
sanjair-git:acl-reboot-fix
Jun 24, 2023
Merged

TestAclReboot test fix for Nokia-400G-T2 chassis#8172
tjchadaga merged 5 commits intosonic-net:masterfrom
sanjair-git:acl-reboot-fix

Conversation

@sanjair-git
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes # (issue)

  • TestAclWithReboot ACL test case is not waiting long enough for the interfaces to come up with respect to Nokia IXR7250E-36x400G DUT.
  • Due to this, ACL tests' call (under TestAclWithReboot) start thinking all interfaces are up and fails.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

  • This PR helps to fix the TestAclWithReboot ACL test cases w.r.t Nokia IXR7250E-36x400G platform.
  • Test cases are not waiting long enough for the interfaces to come up with respect to Nokia IXR7250E-36x400G DUT.

How did you do it?

  • If the platform is 'Nokia IXR7250E-36x400G', wait long enough and make sure all the interfaces and transceivers are UP & running.
  • Once the ports are up, then proceed with running the ACL test calls.

How did you verify/test it?

  • Ran all the ACL test cases against a multi-asic line card in a T2 chassis including Nokia IXR7250E-36x400G.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

ACL-Apr27

@mssonicbld
Copy link
Copy Markdown
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

tests/acl/test_acl.py:25:1: F401 'tests.common.fixtures.conn_graph_facts.conn_graph_facts' imported but unused
tests/acl/test_acl.py:159:1: E302 expected 2 blank lines, found 1
tests/acl/test_acl.py:238:1: E302 expected 2 blank lines, found 1
tests/acl/test_acl.py:455:1: E302 expected 2 blank lines, found 1
tests/acl/test_acl.py:583:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:613:31: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1176:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1213:82: F811 redefinition of unused 'conn_graph_facts' from line 25

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

@mssonicbld
Copy link
Copy Markdown
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

tests/acl/test_acl.py:25:1: F401 'tests.common.fixtures.conn_graph_facts.conn_graph_facts' imported but unused
tests/acl/test_acl.py:586:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:616:31: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1179:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1216:82: F811 redefinition of unused 'conn_graph_facts' from line 25

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

@mssonicbld
Copy link
Copy Markdown
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

tests/acl/test_acl.py:586:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:616:31: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1179:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1216:82: F811 redefinition of unused 'conn_graph_facts' from line 25

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

@mssonicbld
Copy link
Copy Markdown
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

tests/acl/test_acl.py:25:1: F401 'tests.common.fixtures.conn_graph_facts.conn_graph_facts' imported but unused
tests/acl/test_acl.py:586:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:616:31: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1179:82: F811 redefinition of unused 'conn_graph_facts' from line 25
tests/acl/test_acl.py:1216:82: F811 redefinition of unused 'conn_graph_facts' from line 25

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

@rlhui rlhui requested a review from tjchadaga June 23, 2023 07:21
@tjchadaga tjchadaga merged commit 851c21d into sonic-net:master Jun 24, 2023
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 29, 2023
* TestAclReboot test fix for Nokia-400G-T2 DUT

* Indentation changes

* Adding #noqa to import warning

* Revert "Adding #noqa to import warning"

This reverts commit ec6f765.

* Precommit error fixes
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #8759

mssonicbld pushed a commit that referenced this pull request Jun 29, 2023
* TestAclReboot test fix for Nokia-400G-T2 DUT

* Indentation changes

* Adding #noqa to import warning

* Revert "Adding #noqa to import warning"

This reverts commit ec6f765.

* Precommit error fixes
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
* TestAclReboot test fix for Nokia-400G-T2 DUT

* Indentation changes

* Adding #noqa to import warning

* Revert "Adding #noqa to import warning"

This reverts commit ec6f765.

* Precommit error fixes
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
* TestAclReboot test fix for Nokia-400G-T2 DUT

* Indentation changes

* Adding #noqa to import warning

* Revert "Adding #noqa to import warning"

This reverts commit ec6f765.

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants