Skip to content

[ci-scan] Test failure: crossgen2_comparison.py asyncio incompatibility with Python 3.14 #129171

Closed as duplicate

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1453419
Build error leg or test failing: Test crossgen2-comparison osx arm64 Release to arm64 OSX - WorkItem

Error Details

The crossgen2_comparison.py script fails with a Python 3.14 asyncio incompatibility on the osx_arm64 Helix queue. The macOS Helix agents have been upgraded to Python 3.14.4, which removed the deprecated asyncio.get_event_loop() behavior in non-async contexts.

  File "/tmp/helix/working/AA5F0999/p/crossgen2_comparison.py", line 250, in run_to_completion
    loop = asyncio.get_event_loop()
  File "/opt/homebrew/Cellar/[email protected]/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

Same failure also affects Test crossgen2-comparison windows x86 Release to x86 windows in the same pipeline.

First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1453419
Confirmed in follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1455403

Error Message

{
  "ErrorMessage": "RuntimeError: There is no current event loop in thread 'MainThread'.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • dotnet.github.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "dotnet.github.io"

See Network Configuration for more information.

Note

🔒 Integrity filter blocked 6 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #125825 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #128392 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #85747 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #41647 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #43227 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #114222 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by CI Outer-Loop Failure Scanner · ● 60.5M · ◷

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Jun 9, 2026
  2. jkotas commented on Jun 9, 2026

    @jkotas
    Member

    Duplicate of #128992 .

  3. locked and limited conversation to collaborators on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Erroragentic-workflowsblocking-clean-ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions