Skip to content

[action] [PR:3549] [vstest]: Fix MACsec test in the kernel 5.15#3573

Merged
mssonicbld merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/3549
Mar 26, 2025
Merged

[action] [PR:3549] [vstest]: Fix MACsec test in the kernel 5.15#3573
mssonicbld merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/3549

Conversation

@mssonicbld
Copy link
Collaborator

What I did
Provide an explicit value for send_sci in the macsec vstest

Why I did it

The kernel 5.15 requires the send_sci to be true if the sci value was provided explicitly.

How I verified it

AzDevOps@test-os-u000048:/agent/_work/1/s/sonic-swss/tests$ sudo pytest --dvsname=vs test_macsec.py  --pdb
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.8.10, pytest-4.6.2, py-1.11.0, pluggy-0.13.1
rootdir: /agent/_work/1/s/sonic-swss/tests
plugins: flaky-3.7.0
collected 4 items

test_macsec.py ....                                                                                                                                                                                  [100%]

============================================================================================= warnings summary =============================================================================================
test_macsec.py:311
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:311: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:278
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:278: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:251
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:251: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:258
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:258: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:264
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:264: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================== 4 passed, 5 warnings in 78.32 seconds ===================================================================================

Details if related

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
Provide an explicit value for send_sci in the macsec vstest

**Why I did it**

The kernel 5.15 requires the send_sci to be true if the sci value was provided explicitly.

**How I verified it**

```
AzDevOps@test-os-u000048:/agent/_work/1/s/sonic-swss/tests$ sudo pytest --dvsname=vs test_macsec.py  --pdb
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.8.10, pytest-4.6.2, py-1.11.0, pluggy-0.13.1
rootdir: /agent/_work/1/s/sonic-swss/tests
plugins: flaky-3.7.0
collected 4 items

test_macsec.py ....                                                                                                                                                                                  [100%]

============================================================================================= warnings summary =============================================================================================
test_macsec.py:311
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:311: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:278
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:278: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:251
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:251: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:258
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:258: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

test_macsec.py:264
  /agent/_work/1/s/sonic-swss/tests/test_macsec.py:264: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
    assert(

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================== 4 passed, 5 warnings in 78.32 seconds ===================================================================================
```

**Details if related**
@mssonicbld
Copy link
Collaborator Author

Original PR: #3549

@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld mssonicbld merged commit ca017d0 into sonic-net:202411 Mar 26, 2025
5 checks passed
DavidZagury pushed a commit to DavidZagury/sonic-swss that referenced this pull request Apr 28, 2025
```<br>* 5206c2b - (HEAD -> 202412) Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412 (2025-04-03) [Sonic Automation]
* ca017d0 - (origin/202411) [vstest]: Fix MACsec test in the kernel 5.15 (sonic-net#3573) (2025-03-27) [mssonicbld]<br>```
bradh352 pushed a commit to bradh352/sonic-swss that referenced this pull request May 3, 2025
<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
Provide an explicit value for send_sci in the macsec vstest

**Why I did it**

The kernel 5.15 requires the send_sci to be true if the sci value was provided explicitly.

**How I verified it**

```
AzDevOps@test-os-u000048:/agent/_work/1/s/sonic-swss/tests$ sudo pytest --dvsname=vs test_macsec.py --pdb
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.8.10, pytest-4.6.2, py-1.11.0, pluggy-0.13.1
rootdir: /agent/_work/1/s/sonic-swss/tests
plugins: flaky-3.7.0
collected 4 items

test_macsec.py .... [100%]

============================================================================================= warnings summary =============================================================================================
test_macsec.py:311
 /agent/_work/1/s/sonic-swss/tests/test_macsec.py:311: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
 assert(

test_macsec.py:278
 /agent/_work/1/s/sonic-swss/tests/test_macsec.py:278: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
 assert(

test_macsec.py:251
 /agent/_work/1/s/sonic-swss/tests/test_macsec.py:251: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
 assert(

test_macsec.py:258
 /agent/_work/1/s/sonic-swss/tests/test_macsec.py:258: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
 assert(

test_macsec.py:264
 /agent/_work/1/s/sonic-swss/tests/test_macsec.py:264: PytestAssertRewriteWarning: assertion is always true, perhaps remove parentheses?
 assert(

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================== 4 passed, 5 warnings in 78.32 seconds ===================================================================================
```

**Details if related**
liuh-80 pushed a commit to liuh-80/sonic-swss that referenced this pull request Jun 10, 2025
…into 202503 sonic-net#73

Merge branch '202412' of https://github.com/sonic-net/sonic-swss.msft into 202503

Merge from 202412.

9c96d25 Initialize the last fec ber computed values if not found (sonic-net#71)
b567ab5 Merge pull request sonic-net#70 from mssonicbld/sonicbld/202412-merge
19ed87b Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412
4383d39 Fix the missed port status notifications issue (sonic-net#3616)
4f6d557 Merge pull request sonic-net#69 from r12f/user/r12f/fix-build
fcbe392 Revert "Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412"
9e9442d [orchagent] Fix issue: typo in high BER (sonic-net#68)
7498ae9 Merge pull request sonic-net#67 from mssonicbld/sonicbld/202412-merge
bbce4b4 Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412
9e97862 Merge pull request sonic-net#66 from mssonicbld/sonicbld/202412-merge
fceb196  Revert "Optimize counter polling interval by making it more accurate
5206c2b Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412
d88b694 Remove unused string variables in flexcounterorch.cpp
1e4315e Remove unused string variables in flexcounterorch.cpp
e82f8c2 Revert "Optimize counter polling interval by making it more accurate (sonic-net#3500)"
ca017d0 [vstest]: Fix MACsec test in the kernel 5.15 (sonic-net#3573)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant