Skip to content

ci: show environment (pip list) before running tests - #2624

Merged
Ti-Tai Wang (titaiwangms) merged 1 commit into
mainfrom
ci/show-env-before-tests
Aug 13, 2026
Merged

ci: show environment (pip list) before running tests#2624
Ti-Tai Wang (titaiwangms) merged 1 commit into
mainfrom
ci/show-env-before-tests

Conversation

@titaiwangms

@titaiwangms Ti-Tai Wang (titaiwangms) commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

CI environment can currently be hard to diagnose because installed package
versions aren't clearly visible before the test run. This adds an explicit
environment-visibility step ahead of test execution:

  • olive-test-cpu-template.yaml (Azure Pipelines CPU CI, Linux & Windows):
    split the combined "Test Olive" step into three steps: Install test dependencies, Show environment (pip list), and Test Olive, so the
    installed package list is visible as its own step in the pipeline UI/logs.
  • run_test.sh (Linux GPU docker test script): added clear log markers
    around the existing pip list call (kept as part of the same script
    since it runs as a single docker run invocation) to make the environment
    dump easy to find in logs.

GitHub Actions (test-model-fast.yml) already has an independent pip freeze step, so no change was needed there.

Checklist before requesting a review

  • Add unit tests for this change. (N/A - CI pipeline config only)
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Add a dedicated step to print installed packages before test execution,
so CI logs clearly show the environment for debugging non-deterministic
CI issues.

- olive-test-cpu-template.yaml: split the combined 'Test Olive' step
  into 'Install test dependencies', 'Show environment (pip list)',
  and 'Test Olive' steps.
- run_test.sh: add clear markers around the existing 'pip list' call
  so it's easy to spot in the single combined script log.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c5b90c64-865a-4924-82bd-58d4802ee3ed
Copilot AI lite review requested due to automatic review settings August 13, 2026 20:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 improves CI diagnosability by making the installed Python package set clearly visible in logs before test execution, helping troubleshoot environment/version-related failures in Azure Pipelines and the GPU docker-based test path.

Changes:

  • Azure Pipelines CPU template: split the previous combined test step into discrete steps for installing test deps, dumping pip list, then running tests.
  • GPU docker test script: added explicit log markers around the existing pip list output to make it easier to locate in logs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.azure_pipelines/scripts/run_test.sh Adds clear log delimiters around pip list output in the docker-based test run script.
.azure_pipelines/job_templates/olive-test-cpu-template.yaml Splits install/test into separate steps and adds a dedicated pip list step for improved log visibility in Azure Pipelines.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@titaiwangms
Ti-Tai Wang (titaiwangms) merged commit 67b0a19 into main Aug 13, 2026
13 checks passed
@titaiwangms
Ti-Tai Wang (titaiwangms) deleted the ci/show-env-before-tests branch August 13, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants