Skip to content

Poor performance of Python socket module on MacOS 15 runner #12162

Open
@MetRonnie

Description

@MetRonnie

Description

socket.getfqdn() is taking more than 1 minute to run for some reason!

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

macos-15-arm64 20250428.1341

https://github.com/MetRonnie/muldoon/actions/runs/14890924049/job/41822518502

Is it regression?

Yes, see macos-14-arm64 20250505.1431 run: https://github.com/MetRonnie/muldoon/actions/runs/14890924049/job/41822518514

Expected behavior

socket.getfqdn() should take ~1s or less

Actual behavior

It's taking more than 1 minute to run.

Repro steps

- shell: python
  run: |
    import socket
    socket.getfqdn()

(I have checked that import socket does not take an undue amount of time by running it alone in a different step)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions