Skip to content

Drop unneeded libxml2 install from Linux Core MT CI job - #15397

Closed
JanProvaznik wants to merge 1 commit into
dotnet:mainfrom
JanProvaznik:fix/mt-job-drop-libxml2-install
Closed

JanProvaznik wants to merge 1 commit into
dotnet:mainfrom
JanProvaznik:fix/mt-job-drop-libxml2-install

Conversation

@JanProvaznik

@JanProvaznik JanProvaznik commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Related issue(s):

Context

The Linux Core Multithreaded Mode job fails before it builds anything of consequence: ubuntu-latest now resolves to ubuntu-26.04, where there is no libxml2 package (only libxml2-16), so sudo apt-get install -y libxml2 exits with code 100 (example, seen on #15395).

Changes Made

Remove the apt-get update / apt-get install -y libxml2 steps from the BootstrapMSBuildWithMTMode job in .vsts-dotnet-ci.yml. This job is documented as "Intentionally not running tests"; libxml2 came in with the Linux code-coverage tooling (#11920), which this job does not use.

Compatibility

CI-only change; no product impact. The public Linux Core job and quarantine.yml use the pinned Build.Ubuntu.2204.Amd64.Open image and are unchanged. The non-public branch of Linux Core (vmImage: 'ubuntu-latest') still installs libxml2 and may need a separate fix, since it runs coverage.

Testing

  • Evidence from the failing run: the Build (with stage2) step of this job has a custom condition: and therefore still ran after the failed install; both the build and the stage2 build succeeded with 0 errors, i.e. nothing in the job needs libxml2.
  • Parsed the edited .vsts-dotnet-ci.yml with PyYAML; the job's steps are intact (docs-only check, private-feeds setup, build, publish logs).
  • Not run locally: the pipeline itself. This PR's Linux Core Multithreaded Mode check is the validation.

Dependencies and Follow-up

Separate from this PR: the Linux Core job in the same run also failed on an unrelated, intermittent test failure caused by an IOException: Pipe is broken in NodeEndpointOutOfProcBase.PacketPumpProc; it is not addressed here.

Follow-up: #15398 (stacked on this PR) deletes the Linux Core Multithreaded Mode job entirely, since -mt is now covered by every bootstrapped PR job and the job's remaining analyzer output is informational only. This PR is the minimal unblock and can merge independently.

ubuntu-latest now resolves to Ubuntu 26.04, which no longer ships a
libxml2 package (it is libxml2-16), so 'apt-get install -y libxml2'
fails with exit code 100 and fails the whole job.

The job runs no tests ("Intentionally not running tests"); libxml2 was
added alongside the code-coverage tooling, which this job does not use.
The build and stage2 build in the failed run completed with 0 errors
without it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6c0b687-cb7d-4a28-81a2-150c0bd191d5
@JanProvaznik
JanProvaznik requested a review from a team as a code owner October 26, 2026 12:03
Copilot AI balanced review requested due to automatic review settings October 26, 2026 12:03
@JanProvaznik

Copy link
Copy Markdown
Member Author

to be backported to all branches with this pipeline

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 narrowly scoped deletion preserves the build-only job without affecting product behavior or coverage-enabled jobs.

No open issues 🎉

What changed in this PR

Removes unnecessary package installation from the build-only Linux Core Multithreaded Mode CI job, unblocking it on Ubuntu images where libxml2 is unavailable.

Changes:

  • Deletes the job’s apt-get update and libxml2 installation steps.
  • Preserves the stage2 build and leaves coverage-enabled jobs unchanged.
File Description
.vsts-dotnet-ci.yml Removes two unnecessary package-management steps from BootstrapMSBuildWithMTMode.

Review effort: Balanced

@github-actions github-actions Bot 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.

✅ 24/24 dimensions clean — no findings.

Generated by Expert Code Review (on open) for #15397 · copilot · gpt56 · 227 AIC · ⌖ 0.521 AIC · ⊞ 19K

@JanProvaznik
JanProvaznik enabled auto-merge (squash) October 26, 2026 12:48
@JanProvaznik

Copy link
Copy Markdown
Member Author

actually I'll merge the other one, this was just for the minimal review and I'll apply the commit to servicing branches

@JanProvaznik
JanProvaznik disabled auto-merge October 26, 2026 13:33
JanProvaznik added a commit that referenced this pull request Oct 26, 2026
Backport of #15397. ubuntu-latest now resolves to Ubuntu 26.04, which no
longer ships a libxml2 package (it is libxml2-16), so
'apt-get install -y libxml2' fails with exit code 100 and fails the whole
job. The job runs no tests, and libxml2 was added alongside the
code-coverage tooling, which this job does not use.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6c0b687-cb7d-4a28-81a2-150c0bd191d5
JanProvaznik added a commit that referenced this pull request Oct 26, 2026
Backport of #15397. ubuntu-latest now resolves to Ubuntu 26.04, which no
longer ships a libxml2 package (it is libxml2-16), so
'apt-get install -y libxml2' fails with exit code 100 and fails the whole
job. The job runs no tests, and libxml2 was added alongside the
code-coverage tooling, which this job does not use.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6c0b687-cb7d-4a28-81a2-150c0bd191d5
JanProvaznik added a commit that referenced this pull request Oct 26, 2026
Backport of #15397. ubuntu-latest now resolves to Ubuntu 26.04, which no
longer ships a libxml2 package (it is libxml2-16), so
'apt-get install -y libxml2' fails with exit code 100 and fails the whole
job. The job runs no tests, and libxml2 was added alongside the
code-coverage tooling, which this job does not use.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6c0b687-cb7d-4a28-81a2-150c0bd191d5

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — c933940a Deployed Oct 26, 2026 by JanProvaznik via conclusion #1073
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