Skip to content

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

Closed

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

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Jun 4, 2026
  2. added
    untriaged
    on Jun 4, 2026
  3. added a commit that references this issue on Jun 5, 2026
    472192a
  4. jeffschwMSFT commented on Jun 5, 2026

    @jeffschwMSFT
    Member

    closing as it has not failed since opening

  5. removed
    untriaged
    on Jun 5, 2026
  6. locked and limited conversation to collaborators on Jul 6, 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-workflowsarea-ReadyToRunblocking-clean-ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions