Skip to content

CI/CD - Fix CUDA pipeline Docker access - #897

Merged
gusui-msft merged 2 commits into
mainfrom
gusui-msft/fix-cuda-ci-docker-access-20261110
Nov 13, 2026
Merged

gusui-msft merged 2 commits into
mainfrom
gusui-msft/fix-cuda-ci-docker-access-20261110

Conversation

@gusui-msft

Copy link
Copy Markdown
Contributor

Summary

  • Explicitly enable agent-managed Docker socket mapping for the CUDA test container.
  • Remove the redundant manual socket bind while retaining the read-only Docker CLI bind.
  • Stop dependency installation immediately when a setup command fails.

Why

Newer Azure Pipelines agents default Linux Docker socket mapping to false and
only configure the container user's Docker group when mapping is enabled
(upstream change).
Manually binding the socket does not opt into that authorization. A failed
Docker setup command could also be hidden by later successful installation
commands.

Validation

  • Parsed YAML and compared it with main: only the intended mapping, bind removal,
    and fail-fast changes differ.
  • Bash syntax check passed.
  • Isolated shell controls reproduced the old masked Docker failure and verified
    immediate Docker/pip/postinstall failure propagation plus the successful path.
  • git diff --check passed.
  • Azure CUDA branch validation
    passed installation, code lint, native benchmark compilation, unit tests,
    and coverage for the repair commit.
  • PR-triggered checks remain separate from this successful manual branch validation.

Opt the CUDA job into agent-managed Docker socket mapping so its container user receives the required access on newer Azure Pipelines agents. Fail dependency installation immediately instead of allowing later commands to hide a setup failure.

Co-authored-by: Copilot <[email protected]>
@gusui-msft
gusui-msft requested a review from a team as a code owner November 12, 2026 18:05
Copilot AI balanced review requested due to automatic review settings November 12, 2026 18:05

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.

🟢 Approval recommended

No active review issues are reported for the CUDA pipeline’s Docker socket access and fail-fast setup changes.

No open issues 🎉

What changed in this PR

Updates the CUDA unit-test pipeline to use agent-managed Docker socket access and stop dependency installation when a setup command fails.

Changes:

  • Enables Docker socket mapping through mapDockerSocket: true.
  • Removes the manual socket bind while retaining the read-only Docker CLI bind.
  • Adds set -e to propagate setup failures immediately.
File Description
.azure-pipelines/​cuda-unit-test.yml Enables agent-managed Docker access and fail-fast dependency setup.

Review effort: Balanced

Keep clang-format-14 available after ubuntu-latest moved to Ubuntu 26.04, without changing formatting rules.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 18:09

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.

🟢 Approval recommended

The review identifies no active issues requiring changes.

No open issues 🎉

Review effort: Balanced

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.36%. Comparing base (9142bdf) to head (56df301).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #897   +/-   ##
=======================================
  Coverage   86.36%   86.36%           
=======================================
  Files         107      107           
  Lines        8258     8258           
=======================================
  Hits         7132     7132           
  Misses       1126     1126           
Flag Coverage Δ
cpu-python3.10-unit-test 71.95% <ø> (ø)
cpu-python3.12-unit-test 71.95% <ø> (ø)
cpu-python3.7-unit-test 71.41% <ø> (ø)
cuda-unit-test 84.37% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gusui-msft
gusui-msft merged commit 347d02a into main Nov 13, 2026
37 of 39 checks passed
@gusui-msft
gusui-msft deleted the gusui-msft/fix-cuda-ci-docker-access-20261110 branch November 13, 2026 18:11
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.

3 participants