Skip to content

Choose Xcode version based on MacOS version#1542

Merged
fweikert merged 1 commit intobazelbuild:masterfrom
fweikert:xcode
Jan 31, 2023
Merged

Choose Xcode version based on MacOS version#1542
fweikert merged 1 commit intobazelbuild:masterfrom
fweikert:xcode

Conversation

@fweikert
Copy link
Copy Markdown
Member

Due to an ongoing infra update we're operating multiple different versions of MacOS, which unfortunately are not all compatible with the same Xcode versions. Consequently, this commit improves the Xcode version selection logic by determining the Xcode version based on the MacOS version.

This behavior can be avoided by explicitly specifying an Xcode version in the task config.

Eventually we will run the same versions on all machines in the MacOS fleet.

Progress towards #1540

Due to an ongoing infra update we're operating multiple different versions of MacOS, which unfortunately are not all compatible with the same Xcode versions.
Consequently, this commit improves the Xcode version selection logic by determining the Xcode version based on the MacOS version.

This behavior can be avoided by explicitly specifying an Xcode version in the task config.

Eventually we will run the same versions on all machines in the MacOS fleet.

Progress towards bazelbuild#1540
@fweikert fweikert merged commit f11f2bf into bazelbuild:master Jan 31, 2023
copybara-service Bot pushed a commit to bazelbuild/bazel that referenced this pull request Feb 1, 2023
[#1542](bazelbuild/continuous-integration#1542) added some logic to pick the best Xcode version based on the MacOS version (which unfortunately differs between machines).

This should fix the failures related to [#1540](bazelbuild/continuous-integration#1540) in both pre- and post-submit pipelines.

PiperOrigin-RevId: 506279891
Change-Id: I4f22c1bfdf616a2cc4d06a1e6a242556c3863882
fweikert added a commit that referenced this pull request Feb 1, 2023
The problem has been solved by #1542 and #1543.

Fixes #1540
@ted-xie
Copy link
Copy Markdown
Contributor

ted-xie commented Feb 1, 2023

Should this and #1543 be merged into release-6.1.0?

@ted-xie
Copy link
Copy Markdown
Contributor

ted-xie commented Feb 1, 2023

Nevermind, I thought this was in bazelbuild/bazel for some reason. Disregard my previous comment.

ted-xie pushed a commit to ted-xie/bazel that referenced this pull request Feb 2, 2023
[bazelbuild#1542](bazelbuild/continuous-integration#1542) added some logic to pick the best Xcode version based on the MacOS version (which unfortunately differs between machines).

This should fix the failures related to [bazelbuild#1540](bazelbuild/continuous-integration#1540) in both pre- and post-submit pipelines.

PiperOrigin-RevId: 506279891
Change-Id: I4f22c1bfdf616a2cc4d06a1e6a242556c3863882
ted-xie pushed a commit to ted-xie/bazel that referenced this pull request Feb 2, 2023
[bazelbuild#1542](bazelbuild/continuous-integration#1542) added some logic to pick the best Xcode version based on the MacOS version (which unfortunately differs between machines).

This should fix the failures related to [bazelbuild#1540](bazelbuild/continuous-integration#1540) in both pre- and post-submit pipelines.

PiperOrigin-RevId: 506279891
Change-Id: I4f22c1bfdf616a2cc4d06a1e6a242556c3863882
fweikert added a commit to fweikert/continuous-integration that referenced this pull request Feb 6, 2023
bazelbuild#1542 relied on platform.mac_ver() to detect the MacOS version, which did not work as expected.
Consequently, the previous PR led the CI to activate an incorrect version of Xcode.
This behavior has been fixed by this change.

Related to bazelbuild#1431.
fweikert added a commit that referenced this pull request Feb 7, 2023
#1542 relied on
platform.mac_ver() to detect the MacOS version, which did not work as
expected. Consequently, the previous PR led the CI to activate an
incorrect version of Xcode. This behavior has been fixed by this change.

Related to #1431.

Users can still request a specific Xcode version in their CI config.
hvadehra pushed a commit to bazelbuild/bazel that referenced this pull request Feb 14, 2023
[#1542](bazelbuild/continuous-integration#1542) added some logic to pick the best Xcode version based on the MacOS version (which unfortunately differs between machines).

This should fix the failures related to [#1540](bazelbuild/continuous-integration#1540) in both pre- and post-submit pipelines.

PiperOrigin-RevId: 506279891
Change-Id: I4f22c1bfdf616a2cc4d06a1e6a242556c3863882
fmeum pushed a commit to fmeum/continuous-integration that referenced this pull request Dec 10, 2023
Due to an ongoing infra update we're operating multiple different
versions of MacOS, which unfortunately are not all compatible with the
same Xcode versions. Consequently, this commit improves the Xcode
version selection logic by determining the Xcode version based on the
MacOS version.

This behavior can be avoided by explicitly specifying an Xcode version
in the task config.

Eventually we will run the same versions on all machines in the MacOS
fleet.

Progress towards bazelbuild#1540
fmeum pushed a commit to fmeum/continuous-integration that referenced this pull request Dec 10, 2023
fmeum pushed a commit to fmeum/continuous-integration that referenced this pull request Dec 10, 2023
bazelbuild#1542 relied on
platform.mac_ver() to detect the MacOS version, which did not work as
expected. Consequently, the previous PR led the CI to activate an
incorrect version of Xcode. This behavior has been fixed by this change.

Related to bazelbuild#1431.

Users can still request a specific Xcode version in their CI config.
fweikert added a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
Due to an ongoing infra update we're operating multiple different
versions of MacOS, which unfortunately are not all compatible with the
same Xcode versions. Consequently, this commit improves the Xcode
version selection logic by determining the Xcode version based on the
MacOS version.

This behavior can be avoided by explicitly specifying an Xcode version
in the task config.

Eventually we will run the same versions on all machines in the MacOS
fleet.

Progress towards bazelbuild#1540
fweikert added a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
fweikert added a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
bazelbuild#1542 relied on
platform.mac_ver() to detect the MacOS version, which did not work as
expected. Consequently, the previous PR led the CI to activate an
incorrect version of Xcode. This behavior has been fixed by this change.

Related to bazelbuild#1431.

Users can still request a specific Xcode version in their CI config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants