Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update to latest intel osx runner and download 10.15 SDK #5387

Merged
merged 33 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7234ddc
ci: use latest osx sdk and see what happens
beckermr Jun 24, 2024
a931503
Update pyproject.toml
beckermr Jun 24, 2024
eea2c6b
Merge branch 'main' into mac12
beckermr Jun 24, 2024
949c564
test: ensure glob file test can run on osx-arm
beckermr Jun 24, 2024
43e8349
Merge branch 'mac12' of https://github.com/beckermr/conda-build into …
beckermr Jun 24, 2024
9785427
test: try to run under rosetta emulating intel
beckermr Jun 24, 2024
9498b0c
test: try a recent python
beckermr Jun 24, 2024
7d6d874
Update .github/workflows/tests.yml
beckermr Jun 24, 2024
30be095
test: use intel macs for now
beckermr Jun 24, 2024
17c42f1
ci: use 13.3 SDK
beckermr Jun 25, 2024
e13d7f7
style: spacing
beckermr Jun 25, 2024
8546360
style: spacing
beckermr Jun 25, 2024
d73cb02
doc: add changelog entry
beckermr Jun 25, 2024
a99f0b1
ci: stop after first several failures to debug
beckermr Jun 25, 2024
0f7738a
fix: try using 11.3 sdk
beckermr Jun 25, 2024
9f0d19e
fix: wrong compression on sdk
beckermr Jun 25, 2024
d33cc00
fix: wrong sha
beckermr Jun 25, 2024
abd3d96
ci: point xcode at correct SDK
beckermr Jun 25, 2024
c5049cd
fix: use SDKROOT
beckermr Jun 25, 2024
214fad8
ci: try 10.15 sdk
beckermr Jun 25, 2024
95f43a8
fix: extra sha check
beckermr Jun 25, 2024
419050e
fix: make sure tests point to new SDK
beckermr Jun 25, 2024
bcd2a33
Merge branch 'main' into mac12
beckermr Jun 25, 2024
044c4fb
fix: python syntax error
beckermr Jun 25, 2024
e3bf5ab
debug: testing setting sdkroot and conda_build_sysroot by default
beckermr Jun 26, 2024
32a0e78
test: set osx info
beckermr Jun 26, 2024
3261d10
fix: set variants in default config, not metadata
beckermr Jun 26, 2024
e827df8
fix: clean up debug stuff
beckermr Jun 26, 2024
6c7a8ba
fix: clean up changes not needed
beckermr Jun 26, 2024
9afd22f
debug: try ci without SDKROOT
beckermr Jun 26, 2024
6d45507
fix: no need to set the SDKROOT
beckermr Jun 26, 2024
83e2ecc
refactor: simpler code
beckermr Jun 26, 2024
cbe5d3a
refactor: keep old behavior for future testing
beckermr Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,10 @@ jobs:
needs: changes
if: github.event_name == 'schedule' || needs.changes.outputs.code == 'true'

# Old macOS needed for old SDK (see xcode step below)
# This is needed for some MACOSX_DEPLOYMENT_TARGET tests
# We could also install SDKs from a external provider in the future
# if we want to update this runner to a non-deprecated version
runs-on: macos-11
# we still need intel macs so we are stuck on macos-13 (not -14 or -latest)
# the issue is that there are recipes that depend on packages
# that do not exist for osx-arm64 - see #5388
runs-on: macos-13
defaults:
run:
# https://github.com/conda-incubator/setup-miniconda#use-a-default-shell
Expand Down Expand Up @@ -384,10 +383,10 @@ jobs:
with:
condarc-file: .github/condarc
run-post: false # skip post cleanup

# this step installs the 13.3 SDK
beckermr marked this conversation as resolved.
Show resolved Hide resolved
# see https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
- name: Xcode Install
run: sudo xcode-select --switch /Applications/Xcode_11.7.app

run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
beckermr marked this conversation as resolved.
Show resolved Hide resolved
- name: Conda Install
run: >
conda install
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ filterwarnings = [
# ignore conda-index error
"ignore::PendingDeprecationWarning:conda_index",
"ignore::DeprecationWarning:conda_index",
"ignore:Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata:DeprecationWarning",
]
markers = [
"serial: execute test serially (to avoid race conditions)",
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/test_main_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ def test_no_force_upload(

@pytest.mark.slow
def test_conda_py_no_period(testing_workdir, testing_metadata, monkeypatch):
monkeypatch.setenv("CONDA_PY", "36")
monkeypatch.setenv("CONDA_PY", "311")
beckermr marked this conversation as resolved.
Show resolved Hide resolved
testing_metadata.meta["requirements"] = {"host": ["python"], "run": ["python"]}
api.output_yaml(testing_metadata, "meta.yaml")
outputs = api.build(testing_workdir, notest=True)
assert any("py36" in output for output in outputs)
assert any("py311" in output for output in outputs)
beckermr marked this conversation as resolved.
Show resolved Hide resolved


def test_build_skip_existing(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ requirements:
# installed.
- {{ compiler('c') }} # [linux or osx]
host:
- libpng 1.6.34.*
- libpng 1.6.39.*
beckermr marked this conversation as resolved.
Show resolved Hide resolved

outputs:
- name: subpackage
Expand Down
6 changes: 3 additions & 3 deletions tests/test_api_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def test_list_skeletons():


def test_pypi_with_entry_points(tmp_path: Path):
api.skeletonize("planemo", repo="pypi", python_version="3.7", output_dir=tmp_path)
api.skeletonize("planemo", repo="pypi", python_version="3.11", output_dir=tmp_path)
beckermr marked this conversation as resolved.
Show resolved Hide resolved
assert (tmp_path / "planemo").is_dir()


Expand All @@ -411,7 +411,7 @@ def test_pypi_with_extra_specs(tmp_path: Path, testing_config):
"pypi",
extra_specs=extra_specs,
version="0.1.24",
python="3.6",
python="3.11",
beckermr marked this conversation as resolved.
Show resolved Hide resolved
config=testing_config,
output_dir=tmp_path,
)
Expand All @@ -434,7 +434,7 @@ def test_pypi_with_version_inconsistency(tmp_path: Path, testing_config):
"pypi",
extra_specs=extra_specs,
version="0.0.10",
python="3.6",
python="3.11",
beckermr marked this conversation as resolved.
Show resolved Hide resolved
config=testing_config,
output_dir=tmp_path,
)
Expand Down
Loading