swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
66.71k stars 10.28k forks source link

CI Builds for Debian 12 Failing #74613

Open futurejones opened 2 weeks ago

futurejones commented 2 weeks ago

Description

CI builds for Debian 12 are consistently failing at the same point. https://ci.swift.org/job/oss-swift-package-debian-12-aarch64/

Reproduction

N/A

Expected behavior

Successful builds

Environment

Debian 12

Additional information

The issue is being caused by being unable to find the host Swift install for bootstrapping. See build logs - -- Warning: {} Host toolchain could not locate a compiler to build swift-driver.

This problem seems to be unique to Debian Docker containers being started via ssh e.g. a Jenkins pipeline build. When the container is started via ssh the saved env PATH is overwritten.

The solution is to add the PATH to /etc/profile

Added fix here - https://github.com/swiftlang/swift-docker/pull/397

futurejones commented 1 week ago

@shahmishal