Skip to content

[action] [PR:22775] Add conditional skip for test_load_minigraph_with_golden_config#22793

Merged
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22775
Mar 18, 2026
Merged

[action] [PR:22775] Add conditional skip for test_load_minigraph_with_golden_config#22793
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22775

Conversation

@mssonicbld
Copy link
Collaborator

Why I did it

The test override_config_table/test_override_config_table.py::test_load_minigraph_with_golden_config performs 4 consecutive config load_minigraph operations. After the systemd-sonic-generator rework (sonic-net/sonic-buildimage#23340), container services like pmon are no longer listed as sonic.target dependencies, so their systemd start rate limit counters are never reset between reloads. This causes pmon to hit start-limit-hit on the 4th reload, leaving pmon in a failed state that affects subsequent tests in the nightly run.

Root cause issue: sonic-net/sonic-buildimage#25931

Fix PRs (in progress):

How I did it

Added a conditional skip entry in tests_mark_conditions.yaml for test_load_minigraph_with_golden_config linked to issue sonic-net/sonic-buildimage#25931. The skip will automatically resolve (test re-enabled) when the issue is closed.

How to verify it

The test will be skipped in nightly runs until the fix PRs are merged and issue #25931 is closed.

Which release branch to backport

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Description for the changelog

Add conditional skip for test_load_minigraph_with_golden_config to prevent pmon start-limit-hit failures in nightly runs.

…c-net#22775)

Skip test_load_minigraph_with_golden_config when issue #25931 is open.
This test performs 4 consecutive config reloads which causes pmon to hit
start-limit-hit due to missing sonic.target.wants/ symlinks after the
systemd-sonic-generator rework (sonic-net/sonic-buildimage#23340).

The test leaves pmon in a bad state (start-limit-hit), which can affect
subsequent tests in the nightly run.

Fix PRs:
- sonic-net/sonic-buildimage#25932 (add [Install] to service templates)
- sonic-net/sonic-utilities#4314 (fix _reset_failed_services)

The skip will auto-resolve when sonic-net/sonic-buildimage#25931 is closed.

Signed-off-by: Storm Liang <stormliang@microsoft.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #22775

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Pterosaur added a commit to Pterosaur/sonic-mgmt that referenced this pull request Mar 8, 2026
Remove duplicate 'bgp/test_bgp_vnet.py' entry (lines 485-490) which is
identical to the first occurrence (lines 479-484). The duplicate key causes
check-yaml pre-commit hook failures on all PRs that modify this file.

This unblocks PRs sonic-net#22793, sonic-net#22779, sonic-net#22321, sonic-net#22112, sonic-net#22041, sonic-net#22006.

Signed-off-by: Ze Gan <ganze718@gmail.com>
vmittal-msft pushed a commit that referenced this pull request Mar 9, 2026
Remove duplicate 'bgp/test_bgp_vnet.py' entry (lines 485-490) which is
identical to the first occurrence (lines 479-484). The duplicate key causes
check-yaml pre-commit hook failures on all PRs that modify this file.

This unblocks PRs #22793, #22779, #22321, #22112, #22041, #22006.

Signed-off-by: Ze Gan <ganze718@gmail.com>
@StormLiangMS
Copy link
Collaborator

This PR is failing Pre_test Static Analysis because its branch was created before PR #22796 merged on 202511. That PR fixed a duplicate YAML key (\�gp/test_bgp_vnet.py) in \ ests_mark_conditions.yaml, which causes the \check-yaml\ pre-commit hook to reject the file.

I've raised a rebased replacement PR: #22830 (based on latest 202511 which includes the duplicate key fix).

This PR can be closed once #22830 merges.

@vmittal-msft
Copy link
Contributor

/azpw run

@mssonicbld
Copy link
Collaborator Author

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 76ddf42 into sonic-net:202511 Mar 18, 2026
16 checks passed
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.

3 participants