Skip to content

Drop centos6 and update pyperf test#1041

Open
mlim19 wants to merge 2 commits into
masterfrom
drop_centos6
Open

Drop centos6 and update pyperf test#1041
mlim19 wants to merge 2 commits into
masterfrom
drop_centos6

Conversation

@mlim19
Copy link
Copy Markdown
Contributor

@mlim19 mlim19 commented May 27, 2026

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots

Checklist:

  • I have read the CONTRIBUTING document.
  • I have updated the relevant documentation.
  • I have added tests for new logic.

Signed-off-by: Min Lim <min.yeol.lim@intel.com>
Copilot AI review requested due to automatic review settings May 27, 2026 13:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes CentOS 6 from the CI/test surface and updates Python profiling tests to make PyPerf assertions more reliable.

Changes:

  • Removed centos:6 from the executable test container matrix and deleted the CentOS 6-specific PyPerf skip.
  • Updated async-profiler “minimum CentOS” test/build arg from :6 to :7.
  • Adjusted Python tests to rerun flaky cases and use a longer profiling duration for PyPerf.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/test_python.py Adds flaky reruns and increases PyPerf profiling duration in tests.
tests/test_executable.py Removes CentOS 6 + PyPerf skip logic (since CentOS 6 is dropped).
scripts/build_x86_64_executable.sh Updates async-profiler minimum CentOS version to 7.
.github/workflows/build-test-deploy.yml Drops centos:6 from the test container matrix.
.github/workflows/build-base-images.yml Updates AP_CENTOS_MIN build arg to :7.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_python.py Outdated
with PythonProfiler(1000, 2, profiler_state, profiler_type, True, None, False, python_pyspy_process=[]) as profiler:
# Use longer duration for pyperf to ensure enough samples are collected for reliable assertions
duration = 5 if profiler_type == "pyperf" else 2
with PythonProfiler(1000, duration, profiler_state, profiler_type, True, None, False, python_pyspy_process=[]) as profiler:
Comment thread tests/test_python.py Outdated
duration = 5 if profiler_type == "pyperf" else 2
with PythonProfiler(1000, duration, profiler_state, profiler_type, True, None, False, python_pyspy_process=[]) as profiler:
try:
profile = snapshot_pid_profile(profiler, application_pid)
Comment thread tests/test_python.py Outdated
with PythonProfiler(1000, 2, profiler_state, profiler_type, True, None, True, python_pyspy_process=[]) as profiler:
# Use longer duration for pyperf to ensure enough samples are collected
duration = 5 if profiler_type == "pyperf" else 2
with PythonProfiler(1000, duration, profiler_state, profiler_type, True, None, True, python_pyspy_process=[]) as profiler:
Comment thread tests/test_python.py Outdated
Comment on lines 191 to 192
with PythonProfiler(1000, duration, profiler_state, profiler_type, True, None, True, python_pyspy_process=[]) as profiler:
profile = snapshot_pid_profile(profiler, application_pid)
Signed-off-by: Min Lim <min.yeol.lim@intel.com>
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