Skip to content

Port consistency checker to 202405 (f2cadae6)#18141

Open
Ryangwaite wants to merge 2 commits intosonic-net:202405from
Ryangwaite:port-consistency-checker-to-202405
Open

Port consistency checker to 202405 (f2cadae6)#18141
Ryangwaite wants to merge 2 commits intosonic-net:202405from
Ryangwaite:port-consistency-checker-to-202405

Conversation

@Ryangwaite
Copy link
Contributor

Description of PR

Summary:
This is a manual backport of the consistency-checker utility from master at commit f2cadae. This includes the following two PR's:

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

There were conflicts in creating cherry-pick backport PR's hence this manual approach.

How did you do it?

Cherry-picked and resolved conflicts manually.

How did you verify/test it?

TODO: Testing on branch. The feature in general has also been tested thoroughly on master.

Any platform specific information?

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

Documentation

What is the motivation for this PR?
There was a test gap discovered where the ASIC_DB and ASIC itself were inconsistent after an upgrade resulting in traffic being dropped.

How did you do it?
Created a python fixture called consistency_checker_provider that can be injected into any test and used to call the consistency_checker utility.

How did you verify/test it?
Tested on an internal A->B upgrade scenario.

Any platform specific information?
Currently only supports Arista x86_64-arista_7060_cx32s and x86_64-arista_7260cx3_64 platforms and versions 202305 and 202311. The ConsistencyCheckerProvider.is_consistency_check_supported will return True for a supported combination. Other platforms and versions may very well work they just haven't been tested yet. To try, simply ignore the result of is_consistency_check_supported and carry on with the test.
@Ryangwaite Ryangwaite requested a review from prgeor as a code owner April 28, 2025 04:32
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ryangwaite Ryangwaite force-pushed the port-consistency-checker-to-202405 branch from fcb5fd8 to 1ff61a7 Compare April 28, 2025 04:43
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ryangwaite Ryangwaite force-pushed the port-consistency-checker-to-202405 branch from 1ff61a7 to 4c31b59 Compare April 28, 2025 04:50
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…c-net#16877)

Description of PR
Summary: Added consistency checker to all relevant advanced-reboot cases and added minor improvements including:

Ignoring NULL values in ASIC querying
Logging ASIC/DB inconsistencies
Fixes # (issue)
@Ryangwaite Ryangwaite force-pushed the port-consistency-checker-to-202405 branch from 4c31b59 to 244d2b3 Compare April 28, 2025 05:03
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ryangwaite Ryangwaite closed this Jul 23, 2025
@Ryangwaite Ryangwaite reopened this Jul 23, 2025
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ryangwaite Ryangwaite closed this Aug 24, 2025
@Ryangwaite Ryangwaite reopened this Aug 24, 2025
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants