Skip to content

Reduce flakiness of test_l2_configure.py. Backport to 202411#18831

Merged
yxieca merged 1 commit intosonic-net:202411from
eyakubch:test_l2_configure-config-reload-fix
Jul 7, 2025
Merged

Reduce flakiness of test_l2_configure.py. Backport to 202411#18831
yxieca merged 1 commit intosonic-net:202411from
eyakubch:test_l2_configure-config-reload-fix

Conversation

@eyakubch
Copy link
Contributor

@eyakubch eyakubch commented Jun 5, 2025

Description of PR

Summary:
Fixes # (issue) Microsoft ADO 31856103
Backport of this PR to 202411 branch
#17577

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Address flakes such as https://elastictest.org/scheduler/testplan/67d6bf6e607a6896f60ddd2a?testcase=l2%2ftest_l2_configure.py&type=console

    if callback.unreachable:
      raise AnsibleConnectionFailure(
          "Host unreachable in the inventory",
          dark=callback.unreachable,
          contacted=callback.contacted,
        )
      pytest_ansible.errors.AnsibleConnectionFailure: Host unreachable in the inventory

During config reload, the ipv4 connection can get broken and the ansible will through an exception here.
This doesn't affect the assertion of this particular test.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@eyakubch
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 18831 in repo sonic-net/sonic-mgmt

@eyakubch eyakubch force-pushed the test_l2_configure-config-reload-fix branch from 0ba9af6 to 930a82f Compare June 24, 2025 16:04
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vhlushko-cisco
Copy link
Contributor

@yxieca could you please merge

@Aravind-Subbaroyan
Copy link

@kevinskwang - Could you please review this?

@yxieca yxieca merged commit d378110 into sonic-net:202411 Jul 7, 2025
14 checks passed
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Aug 2, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   3124d52 (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250710:1626 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * b1b95dc (base/202411) zitingguo-ms 250513:1848 - Fix PortChannel name matching in verify_attr_change to handle leading spaces (sonic-net#18301)
| * 7461bf3 wrideout-arista 250604:1542 - Determine if the eos switch is running in multiagent mode, and stop/start the (sonic-net#18748)
| * 4346afd Dashuai Zhang 250411:0103 - update d18u8s4 PT0 ASN to 4 bytes (sonic-net#17888)
| * de1b1b4 Ryangwaite 250709:1028 - Skip multi-hop upgrade tests on non-T0 testbeds (sonic-net#19078) (sonic-net#19326)
| * 573d42d Cong Hou 250709:0232 - Update the skip for test test_qos_dscp_mapping.py (sonic-net#19381)
| * 3eb65b9 Yawen 250708:1743 - Unskip test_qos_sai for dualtor-aa-64-breakout (sonic-net#19363)
| * f0c9705 Cong Hou 250707:2351 - xfail generic hash test on dualtor (sonic-net#19383)
| * d378110 eyakubch 250707:0546 - Reduce flakiness of test_l2_configure.py. (sonic-net#18831)
| * 043dba8 ShiyanWangMS 250703:0935 - Fix the ignore pattern - leapsecond file expired warning (sonic-net#19332)
| * 92af38f zitingguo-ms 250703:1958 - Unskip testQosSaiHeadroomPoolWatermark on t0-d18u8s4 (sonic-net#19287) (sonic-net#19342)
| * 0b7e4de Chuan Wu 250704:0334 - Add background traffic for test_pfc_pause_extra_lossless test (sonic-net#19218)
```
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