Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[infra] Enforce core_dump_and_config_check run order #16453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lolyu
Copy link
Contributor

@lolyu lolyu commented Jan 10, 2025

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
    • Add ownership here(Microsft required only)
  • Test case improvement

Back port request

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

Approach

What is the motivation for this PR?

Test run suffers from unneccesary config reloads from core_dump_and_config_check;
the root cause is core_dump_and_config_check runs before those fixtures from testcase that restore the configuration in teardown, so the configuration check is always failing.

How did you do it?

Let's enforce core_dump_and_config_check run order:

  1. runs before any other module level fixtures in setup.
  2. runs after any other module level fixtures in teardown.

How did you verify/test it?

Runs dualtor_io/test_tor_bgp_failure.py, core_dump_and_config_check runs before temp_enable_bgp_autorestart in setup and runs after temp_enable_bgp_autorestart in teardown;
temp_enable_bgp_autorestart could recover the feature autorestart config before core_dump_and_config_check, and the config check will pass (no more config reload).

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

wangxin
wangxin previously approved these changes Jan 10, 2025
@wangxin
Copy link
Collaborator

wangxin commented Jan 10, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Let's enforce `core_dump_and_config_check` run order:
1. runs before any other module level fixtures in setup.
2. runs after any other module level fixtures in teardown.

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu force-pushed the infra_reorder_cdncc branch from 0efece8 to 7f53832 Compare January 10, 2025 12:35
@mssonicbld
Copy link
Collaborator

/azp run

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants