Skip to content

ci: fix intermittent fontconfig SIGSEGV on Linux CI - #309451

Merged
Robo (deepak1556) merged 1 commit into
mainfrom
robo/workaround_libexpat_crash
Apr 13, 2026
Merged

Robo (deepak1556) merged 1 commit into
mainfrom
robo/workaround_libexpat_crash

Conversation

@deepak1556 Robo (deepak1556) added this to the 1.117.0 milestone Apr 13, 2026
@deepak1556 Robo (deepak1556) self-assigned this Apr 13, 2026
Copilot AI review requested due to automatic review settings April 13, 2026 11:22

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 adds a Linux CI workaround to prevent intermittent crashes in libexpat/fontconfig parsing on ubuntu-24.04 runners by forcing fontconfig to use a minimal config that avoids <include> directives, and updates the existing diagnostics step to validate the active config file.

Changes:

  • Add a workflow step that detects the installed libexpat1 version and writes a minimal fontconfig XML config to /tmp, exporting it via FONTCONFIG_FILE.
  • Update the fontconfig diagnostics step to report/validate the active config (respecting FONTCONFIG_FILE when set).

Comment thread .github/workflows/pr-linux-test.yml Resolved
Comment thread .github/workflows/pr-linux-test.yml Resolved
Comment thread .github/workflows/pr-linux-test.yml Resolved
The Electron main process intermittently crashes during startup on the
`[pango] FcInit` thread with a NULL pointer dereference in expat's XML
string processing, triggered by fontconfig parsing `<include>` directives
in fonts.conf via `XML_ExternalEntityParserCreate`.

Set FONTCONFIG_FILE to a minimal config based on upstream
fontconfig 2.15.0 fonts.conf.in with `<include>` directives removed and
generic family aliases inlined. This avoids the external entity parser
codepath entirely. A version check will fail the build once the runner
ships expat >= 2.7.5, prompting removal of the workaround.
@deepak1556
Robo (deepak1556) merged commit 06f94d5 into main Apr 13, 2026
26 checks passed
@deepak1556
Robo (deepak1556) deleted the robo/workaround_libexpat_crash branch April 13, 2026 14:08
Michael Lively (Yoyokrazy) added a commit that referenced this pull request Apr 22, 2026
Linux electron tests were stabilized by moving to ubuntu-24.04 in #308495
and #309451. Keep that runner GH-hosted while the rest of the PR workflows
use 1ES self-hosted pools.

Co-authored-by: Copilot <[email protected]>
Michael Lively (Yoyokrazy) added a commit that referenced this pull request Apr 22, 2026
…311975)

* ci: switch PR workflows back to 1ES self-hosted runners with JobId

Reverts the GitHub-hosted runner switch for ubuntu/windows jobs in pr*.yml
and adds a unique JobId label per job, per the IcM mitigation. The JobId
ensures 1ES pool runs are scoped to a specific GitHub Actions run+attempt,
which prevents the cancellation issues that occurred with bare pool labels.

Pool labels:
- 1es-vscode-oss-ubuntu-22.04-x64
- 1es-vscode-oss-windows-2022-x64

macOS jobs (pr-darwin-test.yml, pr-node-modules macOS) remain on
GitHub-hosted runners as no 1ES macOS pool exists.

Co-authored-by: Copilot <[email protected]>

* ci: keep pr-linux-test.yml on ubuntu-24.04 GH-hosted runner

Linux electron tests were stabilized by moving to ubuntu-24.04 in #308495
and #309451. Keep that runner GH-hosted while the rest of the PR workflows
use 1ES self-hosted pools.

Co-authored-by: Copilot <[email protected]>

* ci: include inputs.job_name in JobId for reusable test workflows

pr-win32-test.yml is invoked 3x from pr.yml (Electron/Browser/Remote) and
without a per-invocation discriminator all 3 jobs share the same JobId
within a run, defeating the 1ES per-job scoping. Add inputs.job_name to
the JobId prefix so each invocation is distinct. Apply the same defense
to pr-linux-cli-test.yml for safety.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators May 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants