From ecc9a4fc98743e0d865175b7a3706396570d01e3 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 8 Jun 2026 10:37:33 +0200 Subject: [PATCH] Add support for Depot runners --- README.md | 24 ++------------------ conda_forge_admin_requests/__init__.py | 1 + conda_forge_admin_requests/access_control.py | 3 ++- examples/example-gha-self-hosted.yml | 2 +- scripts/create_feedstocks.py | 1 + 5 files changed, 7 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 3ad0e5bf1..2f1125e71 100644 --- a/README.md +++ b/README.md @@ -85,30 +85,10 @@ Available opt-in resources: ### Larger runners for Github Actions - We have partnered with different providers for [self-hosted runners for Github Actions](https://conda-forge.org/docs/how-to/advanced/self-hosted-runners/). -- `action` key: `namespace` ([namespace.so](https://namespace.so)) or `blacksmith` ([blacksmith.sh](https://blacksmith.sh)) +- `action` key: `namespace` ([namespace.so](https://namespace.so)), `blacksmith` ([blacksmith.sh](https://blacksmith.sh)), or `depot` ([depot.dev](https://depot.dev)) - Example `examples/example-gha-self-hosted.yml` -Github Actions labels for `conda_build_config.yaml`: - -| `github_actions_labels` value | Platform | CPUs | RAM | Storage | -| :----------------------------------------- | :-------------: | :-----: | :---: | :-----: | -| `namespace-profile-8cpu-on-linux-64` | `linux-64` | 8 | 32 GB | 160 GB | -| `namespace-profile-16cpu-on-linux-64` | `linux-64` | 16 | 64 GB | 288 GB | -| `namespace-profile-8cpu-on-linux-aarch64` | `linux-aarch64` | 8 | 32 GB | 160 GB | -| `namespace-profile-16cpu-on-linux-aarch64` | `linux-aarch64` | 16 | 64 GB | 288 GB | -| `namespace-profile-6cpu-on-osx-arm64` | `osx-arm64` | 6 | 14 GB | 104 GB | -| `namespace-profile-12cpu-on-osx-arm64` | `osx-arm64` | 12 | 28 GB | 160 GB | -| `namespace-profile-8cpu-on-win-64` | `win-64` | 8 | 32 GB | 160 GB | -| `namespace-profile-16cpu-on-win-64` | `win-64` | 16 | 64 GB | 288 GB | -| | | | | | -| `blacksmith-8vcpu-ubuntu-2404` | `linux-64` | 8 | 32 GB | 160 GB | -| `blacksmith-16vcpu-ubuntu-2404` | `linux-64` | 16 | 64 GB | 750 GB | -| `blacksmith-8vcpu-ubuntu-2404-arm` | `linux-aarch64` | 8 | 24 GB | 160 GB | -| `blacksmith-16vcpu-ubuntu-2404-arm` | `linux-aarch64` | 16 | 48 GB | 750 GB | -| `blacksmith-6vcpu-macos-latest` | `osx-arm64` | 6 | 24 GB | 150 GB | -| `blacksmith-12vcpu-macos-latest` | `osx-arm64` | 12 | 48 GB | 250 GB | -| `blacksmith-8vcpu-windows-2025` | `win-64` | 8 | 28 GB | 130 GB | -| `blacksmith-16vcpu-windows-2025` | `win-64` | 16 | 56 GB | 130 GB | +Github Actions labels for `conda_build_config.yaml` are listed in [Reference> Build runners](https://conda-forge.org/docs/reference/runners/). > Other providers may be available via [cirun.io](https://cirun.io) (`action: cirun`). Check the [`conda-forge/.cirun`](https://github.com/conda-forge/.cirun) repository for more details. See `examples/example-cirun.yml`. diff --git a/conda_forge_admin_requests/__init__.py b/conda_forge_admin_requests/__init__.py index 10362fc05..f62c780df 100644 --- a/conda_forge_admin_requests/__init__.py +++ b/conda_forge_admin_requests/__init__.py @@ -36,6 +36,7 @@ def register_actions(): register_action("blacksmith", access_control) register_action("cirrus_runners", access_control) register_action("namespace", access_control) + register_action("depot", access_control) register_action("cfep3_copy", cfep3_copy) register_action("add_feedstock_output", feedstock_outputs) for pkg in pkgutil.iter_modules(): diff --git a/conda_forge_admin_requests/access_control.py b/conda_forge_admin_requests/access_control.py index 5ffd5dbe1..8fd4f4307 100644 --- a/conda_forge_admin_requests/access_control.py +++ b/conda_forge_admin_requests/access_control.py @@ -32,6 +32,7 @@ "blacksmith", "cirun", "cirrus_runners", + "depot", "namespace", ) VALID_ACTIONS = ("travis", *GHA_PROVIDERS) @@ -172,7 +173,7 @@ def _process_request_for_feedstock( if action == "travis": register_ci_cmd.append("--with-travis") - elif action in ("blacksmith", "namespace"): + elif action in ("blacksmith", "namespace", "depot"): register_ci_cmd.append(f"--with-{action}") if revoke: register_ci_cmd.append("--remove") diff --git a/examples/example-gha-self-hosted.yml b/examples/example-gha-self-hosted.yml index 6518ab168..3b0f13091 100644 --- a/examples/example-gha-self-hosted.yml +++ b/examples/example-gha-self-hosted.yml @@ -1,4 +1,4 @@ -action: pick-one-of #: blacksmith, namespace +action: pick-one-of #: blacksmith, namespace, depot feedstocks: # list of feedstock names (sans `-feedstock` suffix) - pytorch-cpu diff --git a/scripts/create_feedstocks.py b/scripts/create_feedstocks.py index ec0d24557..be8e89084 100755 --- a/scripts/create_feedstocks.py +++ b/scripts/create_feedstocks.py @@ -467,6 +467,7 @@ def write_token(name, token): "--without-cirrus-runners", "--without-namespace", "--without-blacksmith", + "--without-depot", "--without-webservice", "--feedstock_directory", feedstock_dir,