Skip to content

[ci-scan] Build break: crossgen2_comparison.py fails with Python 3.14 asyncio.get_event_loop() removal #128992

@github-actions

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1447200
Build error leg or test failing: osx-arm64 checked crossgen2 outerloop - Run native crossgen and compare output to baseline

Error Details

crossgen2_comparison.py crashes on macOS arm64 because Python 3.14 removed the implicit event loop in asyncio.get_event_loop() when no current event loop is set. The script calls asyncio.get_event_loop() from the main thread without first creating a loop, which worked in Python <= 3.13 but raises RuntimeError in Python 3.14+.

Traceback (most recent call last):
  File "crossgen2_comparison.py", line 1007, in <module>
  File "crossgen2_comparison.py", line 741, in crossgen_framework
  File "crossgen2_comparison.py", line 250, in run_to_completion
    loop = asyncio.get_event_loop()
RuntimeError: There is no current event loop in thread 'MainThread'.

Affected legs:

  • runtime-coreclr crossgen2 outerloop (def 134): osx-arm64 checked

Error Message

true only for clear infra flakes. ExcludeConsoleLog skips helix log scanning. -->

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

First build it occurred


Filed by ci-failure-scan, which scans dnceng-public outer-loop pipelines on main and converts stable failures into KBEs.

Note

🔒 Integrity filter blocked 13 items

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

  • #5158 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #7096 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #5984 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #5101 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #5318 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #44158 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #5637 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #7231 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #5130 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #128959 search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #116358 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #86273 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".

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 · ● 90M ·

Report

Summary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions