From 0f9fdbaabe9951f22218398161dd7971c02e2f9c Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 3 Dec 2026 16:04:11 +0000 Subject: [PATCH 1/4] Allow prerelease Python SDKs in release tests Include published SDK prereleases when testing release builds and installed packages, while preserving editable SDK installs for normal CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/skills/testing/SKILL.md | 2 +- .github/workflows/README.md | 3 ++- .pipelines/README.md | 2 +- tests/sandbox/sandbox.sh | 8 ++++---- tests/test_install.sh | 2 +- tests/tests.sh | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/skills/testing/SKILL.md b/.github/skills/testing/SKILL.md index 2916a6dfed71..bc8fdde2bc28 100644 --- a/.github/skills/testing/SKILL.md +++ b/.github/skills/testing/SKILL.md @@ -30,7 +30,7 @@ Labels include `unit`, `e2e`, `partitions`, `perf`, `benchmark`, `cft_scenario`, `cft_model_test` runs the same scenarios with the [consensus model driver](../../../tests/cft_model/README.md), which binds their commands to the Lean model of the protocol and not to the implementation. CMake registers it only when configured with `-DCFT_MODEL_DRIVER=ON`. -The release workflow sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1` so `tests.sh`, installed-package tests, and sandboxes install the latest released `ccf` package from PyPI with `uv pip install --upgrade --reinstall-package ccf ccf`, replacing any previously installed editable SDK. +The release workflow sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1` so `tests.sh`, installed-package tests, and sandboxes install the latest published `ccf` package from PyPI, including prereleases, with `uv pip install --upgrade --reinstall-package ccf --prerelease allow ccf`, replacing any previously installed editable SDK. Without this flag, development and normal CI tests retain their editable local SDK installation. Installed sandboxes still default to the SDK version matching the installed CCF release. An existing caller-supplied `VENV_DIR` is reused without reinstalling packages; `tests.sh` selects the SDK before exporting its environment to child sandboxes. diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 93dd6f971297..0929c230175b 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -258,7 +258,8 @@ The release therefore does not test that the RPM is reproducible, and does not p Python packages are built and published separately by the [OneBranch pipeline](../../.pipelines/README.md), without attestations. -Release-build tests, installed-package tests, and the recovery benchmark use the latest released `ccf` Python package from PyPI. The release job sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1`; normal development and CI tests continue to use the local package. +Release-build tests, installed-package tests, and the recovery benchmark use the latest published `ccf` Python package from PyPI, including prereleases. +The release job sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1`; normal development and CI tests continue to use the local package. File: `release.yml` 3rd party dependencies: None diff --git a/.pipelines/README.md b/.pipelines/README.md index 65968fb575a0..a06294236d74 100644 --- a/.pipelines/README.md +++ b/.pipelines/README.md @@ -28,7 +28,7 @@ The proxy and its package-download destinations must be reachable under OneBranc This pipeline is the only Python package publisher. GitHub Actions no longer builds, attaches, or publishes Python wheels as part of the main CCF release. -Release-build tests use the latest package already released on PyPI; normal development and CI tests continue to use the local package. +Release-build tests use the latest package already published on PyPI, including prereleases; normal development and CI tests continue to use the local package. Attestation is disabled for Python packages published to PyPI. A GitHub workflow that downloads an already-built wheel cannot establish OneBranch build provenance. diff --git a/tests/sandbox/sandbox.sh b/tests/sandbox/sandbox.sh index 56f56f3a65a3..8be0dd7c73c2 100755 --- a/tests/sandbox/sandbox.sh +++ b/tests/sandbox/sandbox.sh @@ -77,8 +77,8 @@ if [ ! -f "${VENV_DIR}/bin/activate" ]; then fi if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - echo "Installing latest released ccf package..." - uv pip install -q --upgrade --reinstall-package ccf ccf + echo "Installing latest published ccf package, including prereleases..." + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf elif [ -f "${VERSION_FILE}" ]; then VERSION=$(<"${VERSION_FILE}") VERSION=${VERSION#"ccf-"} @@ -111,8 +111,8 @@ else # shellcheck disable=SC1090 source "${VENV_DIR}/bin/activate" if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" && -z "$venv_dir_supplied" ]]; then - echo "Installing latest released ccf package..." - uv pip install -q --upgrade --reinstall-package ccf ccf + echo "Installing latest published ccf package, including prereleases..." + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf fi echo "Python environment already setup under ${VENV_DIR}" fi diff --git a/tests/test_install.sh b/tests/test_install.sh index 4087aef0e87a..d3dbca086028 100755 --- a/tests/test_install.sh +++ b/tests/test_install.sh @@ -57,7 +57,7 @@ bash "$INSTALL_PREFIX"/bin/install_uv.sh "$PWD"/env/bin # shellcheck source=/dev/null source env/bin/activate if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - uv pip install --upgrade --reinstall-package ccf ccf + uv pip install --upgrade --reinstall-package ccf --prerelease allow ccf else uv pip install -e ../../../python fi diff --git a/tests/tests.sh b/tests/tests.sh index 2730c8223afe..a4b55d5ab593 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -20,7 +20,7 @@ if [ -n "${PIP_INDEX_URL:-}" ] && [ -z "${UV_INDEX_URL:-}" ]; then export UV_INDEX_URL="$PIP_INDEX_URL" fi if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - uv pip install -q --upgrade --reinstall-package ccf ccf + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf else uv pip install -q -e ../python/ fi From d327887f0990f79c0d6ccfa46ec41a6ba3df01bb Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 3 Dec 2026 16:17:11 +0000 Subject: [PATCH 2/4] Cap released SDK selection at the CCF version under test Normalize the build version into a job-wide SDK upper bound. Permit prereleases and older-major SDKs, but never select an SDK newer than the CCF version being tested. Add local-wheel resolver regressions for all release install paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/skills/testing/SKILL.md | 4 +- .github/workflows/README.md | 3 +- .github/workflows/release.yml | 7 + .pipelines/README.md | 2 +- scripts/derive_python_version.py | 8 ++ scripts/tests/released_python_package_test.py | 121 ++++++++++++++++++ tests/sandbox/sandbox.sh | 8 +- tests/test_install.sh | 2 +- tests/tests.sh | 2 +- 9 files changed, 148 insertions(+), 9 deletions(-) create mode 100644 scripts/tests/released_python_package_test.py diff --git a/.github/skills/testing/SKILL.md b/.github/skills/testing/SKILL.md index bc8fdde2bc28..c1e52c2b5414 100644 --- a/.github/skills/testing/SKILL.md +++ b/.github/skills/testing/SKILL.md @@ -30,7 +30,9 @@ Labels include `unit`, `e2e`, `partitions`, `perf`, `benchmark`, `cft_scenario`, `cft_model_test` runs the same scenarios with the [consensus model driver](../../../tests/cft_model/README.md), which binds their commands to the Lean model of the protocol and not to the implementation. CMake registers it only when configured with `-DCFT_MODEL_DRIVER=ON`. -The release workflow sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1` so `tests.sh`, installed-package tests, and sandboxes install the latest published `ccf` package from PyPI, including prereleases, with `uv pip install --upgrade --reinstall-package ccf --prerelease allow ccf`, replacing any previously installed editable SDK. +The release workflow sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1` and derives `CCF_PYTHON_PACKAGE_MAX_VERSION` from the build's `VERSION_LONG`, normalized to a public Python version. +With this flag, `tests.sh`, installed-package tests, and sandboxes install the latest published `ccf` package from PyPI no newer than that upper bound, including prereleases, replacing any previously installed editable SDK. +Older-major SDKs are eligible; there is no lower bound. Without this flag, development and normal CI tests retain their editable local SDK installation. Installed sandboxes still default to the SDK version matching the installed CCF release. An existing caller-supplied `VENV_DIR` is reused without reinstalling packages; `tests.sh` selects the SDK before exporting its environment to child sandboxes. diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 0929c230175b..768055cfc6d5 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -258,7 +258,8 @@ The release therefore does not test that the RPM is reproducible, and does not p Python packages are built and published separately by the [OneBranch pipeline](../../.pipelines/README.md), without attestations. -Release-build tests, installed-package tests, and the recovery benchmark use the latest published `ccf` Python package from PyPI, including prereleases. +Release-build tests, installed-package tests, and the recovery benchmark use the latest published `ccf` Python package from PyPI no newer than the CCF version under test, including prereleases. +Older-major SDKs are eligible, but newer SDKs are not. The release job sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1`; normal development and CI tests continue to use the local package. File: `release.yml` diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bbac1ce7f12..c1696fef98c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -136,6 +136,13 @@ jobs: cmake -GNinja -DCLIENT_PROTOCOLS_TEST=ON -DCMAKE_BUILD_TYPE=Release .. ninja -v | tee build.log + - name: "Set Python SDK upper bound" + shell: bash + run: | + set -exo pipefail + version=$(uv run --no-project --with packaging python scripts/derive_python_version.py --public "$(> "$GITHUB_ENV" + - name: "Test" run: | set -ex diff --git a/.pipelines/README.md b/.pipelines/README.md index a06294236d74..923445c15df3 100644 --- a/.pipelines/README.md +++ b/.pipelines/README.md @@ -28,7 +28,7 @@ The proxy and its package-download destinations must be reachable under OneBranc This pipeline is the only Python package publisher. GitHub Actions no longer builds, attaches, or publishes Python wheels as part of the main CCF release. -Release-build tests use the latest package already published on PyPI, including prereleases; normal development and CI tests continue to use the local package. +Release-build tests use the latest package already published on PyPI no newer than the CCF version under test, including prereleases; normal development and CI tests continue to use the local package. Attestation is disabled for Python packages published to PyPI. A GitHub workflow that downloads an already-built wheel cannot establish OneBranch build provenance. diff --git a/scripts/derive_python_version.py b/scripts/derive_python_version.py index 0d753612ecf4..ffcd281c22c8 100755 --- a/scripts/derive_python_version.py +++ b/scripts/derive_python_version.py @@ -19,6 +19,11 @@ def main() -> None: "tag", help="CCF release tag, optionally prefixed with refs/tags/.", ) + parser.add_argument( + "--public", + action="store_true", + help="Discard local version suffixes, for SDK compatibility bounds.", + ) args = parser.parse_args() tag = args.tag.removeprefix("refs/tags/") @@ -28,6 +33,9 @@ def main() -> None: version = to_python_version(tag) except ValueError as exc: parser.error(str(exc)) + if args.public: + print(version.public) + return if version.local is not None: parser.error(f"PyPI does not accept local versions: {version}") print(version) diff --git a/scripts/tests/released_python_package_test.py b/scripts/tests/released_python_package_test.py new file mode 100644 index 000000000000..edc246af892f --- /dev/null +++ b/scripts/tests/released_python_package_test.py @@ -0,0 +1,121 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache 2.0 License. + +import os +from pathlib import Path +import shlex +import subprocess +import sys +import tempfile +import unittest +import zipfile + +ROOT = Path(__file__).resolve().parents[2] +VERSION_SCRIPT = ROOT / "scripts/derive_python_version.py" +INSTALL_COMMANDS = [ + (path, line.strip()) + for path in ("tests/tests.sh", "tests/test_install.sh", "tests/sandbox/sandbox.sh") + for line in (ROOT / path).read_text().splitlines() + if "uv pip install" in line and "--reinstall-package ccf" in line +] + + +def run(*command: str, **kwargs) -> subprocess.CompletedProcess[str]: + return subprocess.run(command, capture_output=True, text=True, **kwargs) + + +def create_wheel(directory: Path, version: str) -> None: + info = f"ccf-{version}.dist-info" + with zipfile.ZipFile(directory / f"ccf-{version}-py3-none-any.whl", "w") as wheel: + wheel.writestr( + f"{info}/METADATA", + f"Metadata-Version: 2.1\nName: ccf\nVersion: {version}\n", + ) + wheel.writestr( + f"{info}/WHEEL", + "Wheel-Version: 1.0\nRoot-Is-Purelib: true\nTag: py3-none-any\n", + ) + wheel.writestr(f"{info}/RECORD", "") + + +class ReleasedPythonPackageTest(unittest.TestCase): + def test_selection_bounds(self): + cases = [ + ("ccf-7.0.50", ["6.0.0", "7.0.49", "7.0.51", "8.0.5"], "7.0.49"), + ("ccf-7.0.50", ["6.0.0", "8.0.5"], "6.0.0"), + ( + "ccf-8.0.0-dev2", + ["7.0.50", "8.0.0.dev1", "8.0.0.dev3", "8.0.0"], + "8.0.0.dev1", + ), + ("ccf-8.0.0", ["7.0.50", "8.0.0.dev1", "8.0.5"], "8.0.0.dev1"), + ("ccf-8.0.0", ["8.0.0.dev1", "8.0.0", "8.0.5"], "8.0.0"), + ("ccf-7.0.50", ["8.0.5"], None), + ] + self.assertTrue(INSTALL_COMMANDS) + for tag, versions, expected in cases: + maximum = run( + sys.executable, str(VERSION_SCRIPT), "--public", tag, check=True + ).stdout.strip() + with tempfile.TemporaryDirectory() as temporary: + directory = Path(temporary) + index = directory / "wheels" + index.mkdir() + for version in versions: + create_wheel(index, version) + python = directory / "env/bin/python" + run( + "uv", + "venv", + "--offline", + "--python", + sys.executable, + str(python.parent.parent), + check=True, + ) + for path, command in INSTALL_COMMANDS: + with self.subTest(tag=tag, versions=versions, path=path): + result = run( + "bash", + "-euc", + command + + " " + + shlex.join( + [ + "--python", + str(python), + "--no-index", + "--find-links", + str(index), + ] + ), + env={ + **os.environ, + "CCF_PYTHON_PACKAGE_MAX_VERSION": maximum, + }, + ) + if expected is None: + self.assertNotEqual(result.returncode, 0) + self.assertIn("No solution found", result.stderr) + else: + self.assertEqual(result.returncode, 0, result.stderr) + installed = run( + str(python), + "-c", + "from importlib.metadata import version; " + "print(version('ccf'))", + check=True, + ).stdout.strip() + self.assertEqual(installed, expected) + + def test_public_bound_preserves_publishing_validation(self): + tag = "ccf-8.0.0-dev2-5-gabcdef" + result = run(sys.executable, str(VERSION_SCRIPT), "--public", tag, check=True) + self.assertEqual(result.stdout.strip(), "8.0.0.dev2") + result = run(sys.executable, str(VERSION_SCRIPT), tag) + self.assertNotEqual(result.returncode, 0) + self.assertIn("PyPI does not accept local versions", result.stderr) + + +if __name__ == "__main__": + unittest.main() diff --git a/tests/sandbox/sandbox.sh b/tests/sandbox/sandbox.sh index 8be0dd7c73c2..563438397416 100755 --- a/tests/sandbox/sandbox.sh +++ b/tests/sandbox/sandbox.sh @@ -77,8 +77,8 @@ if [ ! -f "${VENV_DIR}/bin/activate" ]; then fi if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - echo "Installing latest published ccf package, including prereleases..." - uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf + echo "Installing latest published ccf package no newer than ${CCF_PYTHON_PACKAGE_MAX_VERSION:?Set the CCF version under test}, including prereleases..." + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow "ccf<=${CCF_PYTHON_PACKAGE_MAX_VERSION}" elif [ -f "${VERSION_FILE}" ]; then VERSION=$(<"${VERSION_FILE}") VERSION=${VERSION#"ccf-"} @@ -111,8 +111,8 @@ else # shellcheck disable=SC1090 source "${VENV_DIR}/bin/activate" if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" && -z "$venv_dir_supplied" ]]; then - echo "Installing latest published ccf package, including prereleases..." - uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf + echo "Installing latest published ccf package no newer than ${CCF_PYTHON_PACKAGE_MAX_VERSION:?Set the CCF version under test}, including prereleases..." + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow "ccf<=${CCF_PYTHON_PACKAGE_MAX_VERSION}" fi echo "Python environment already setup under ${VENV_DIR}" fi diff --git a/tests/test_install.sh b/tests/test_install.sh index d3dbca086028..2ec93b9874af 100755 --- a/tests/test_install.sh +++ b/tests/test_install.sh @@ -57,7 +57,7 @@ bash "$INSTALL_PREFIX"/bin/install_uv.sh "$PWD"/env/bin # shellcheck source=/dev/null source env/bin/activate if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - uv pip install --upgrade --reinstall-package ccf --prerelease allow ccf + uv pip install --upgrade --reinstall-package ccf --prerelease allow "ccf<=${CCF_PYTHON_PACKAGE_MAX_VERSION:?Set the CCF version under test}" else uv pip install -e ../../../python fi diff --git a/tests/tests.sh b/tests/tests.sh index a4b55d5ab593..e45c9a677c5b 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -20,7 +20,7 @@ if [ -n "${PIP_INDEX_URL:-}" ] && [ -z "${UV_INDEX_URL:-}" ]; then export UV_INDEX_URL="$PIP_INDEX_URL" fi if [[ "${CCF_USE_RELEASED_PYTHON_PACKAGE:-0}" == "1" ]]; then - uv pip install -q --upgrade --reinstall-package ccf --prerelease allow ccf + uv pip install -q --upgrade --reinstall-package ccf --prerelease allow "ccf<=${CCF_PYTHON_PACKAGE_MAX_VERSION:?Set the CCF version under test}" else uv pip install -q -e ../python/ fi From 3814d2971d24ed9f636a8082e2ffa70a6aca7960 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 3 Dec 2026 16:19:35 +0000 Subject: [PATCH 3/4] Remove excessive SDK selection test harness Keep local resolver checks as manual validation rather than adding a wheel-generation test framework for release scripts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/tests/released_python_package_test.py | 121 ------------------ 1 file changed, 121 deletions(-) delete mode 100644 scripts/tests/released_python_package_test.py diff --git a/scripts/tests/released_python_package_test.py b/scripts/tests/released_python_package_test.py deleted file mode 100644 index edc246af892f..000000000000 --- a/scripts/tests/released_python_package_test.py +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache 2.0 License. - -import os -from pathlib import Path -import shlex -import subprocess -import sys -import tempfile -import unittest -import zipfile - -ROOT = Path(__file__).resolve().parents[2] -VERSION_SCRIPT = ROOT / "scripts/derive_python_version.py" -INSTALL_COMMANDS = [ - (path, line.strip()) - for path in ("tests/tests.sh", "tests/test_install.sh", "tests/sandbox/sandbox.sh") - for line in (ROOT / path).read_text().splitlines() - if "uv pip install" in line and "--reinstall-package ccf" in line -] - - -def run(*command: str, **kwargs) -> subprocess.CompletedProcess[str]: - return subprocess.run(command, capture_output=True, text=True, **kwargs) - - -def create_wheel(directory: Path, version: str) -> None: - info = f"ccf-{version}.dist-info" - with zipfile.ZipFile(directory / f"ccf-{version}-py3-none-any.whl", "w") as wheel: - wheel.writestr( - f"{info}/METADATA", - f"Metadata-Version: 2.1\nName: ccf\nVersion: {version}\n", - ) - wheel.writestr( - f"{info}/WHEEL", - "Wheel-Version: 1.0\nRoot-Is-Purelib: true\nTag: py3-none-any\n", - ) - wheel.writestr(f"{info}/RECORD", "") - - -class ReleasedPythonPackageTest(unittest.TestCase): - def test_selection_bounds(self): - cases = [ - ("ccf-7.0.50", ["6.0.0", "7.0.49", "7.0.51", "8.0.5"], "7.0.49"), - ("ccf-7.0.50", ["6.0.0", "8.0.5"], "6.0.0"), - ( - "ccf-8.0.0-dev2", - ["7.0.50", "8.0.0.dev1", "8.0.0.dev3", "8.0.0"], - "8.0.0.dev1", - ), - ("ccf-8.0.0", ["7.0.50", "8.0.0.dev1", "8.0.5"], "8.0.0.dev1"), - ("ccf-8.0.0", ["8.0.0.dev1", "8.0.0", "8.0.5"], "8.0.0"), - ("ccf-7.0.50", ["8.0.5"], None), - ] - self.assertTrue(INSTALL_COMMANDS) - for tag, versions, expected in cases: - maximum = run( - sys.executable, str(VERSION_SCRIPT), "--public", tag, check=True - ).stdout.strip() - with tempfile.TemporaryDirectory() as temporary: - directory = Path(temporary) - index = directory / "wheels" - index.mkdir() - for version in versions: - create_wheel(index, version) - python = directory / "env/bin/python" - run( - "uv", - "venv", - "--offline", - "--python", - sys.executable, - str(python.parent.parent), - check=True, - ) - for path, command in INSTALL_COMMANDS: - with self.subTest(tag=tag, versions=versions, path=path): - result = run( - "bash", - "-euc", - command - + " " - + shlex.join( - [ - "--python", - str(python), - "--no-index", - "--find-links", - str(index), - ] - ), - env={ - **os.environ, - "CCF_PYTHON_PACKAGE_MAX_VERSION": maximum, - }, - ) - if expected is None: - self.assertNotEqual(result.returncode, 0) - self.assertIn("No solution found", result.stderr) - else: - self.assertEqual(result.returncode, 0, result.stderr) - installed = run( - str(python), - "-c", - "from importlib.metadata import version; " - "print(version('ccf'))", - check=True, - ).stdout.strip() - self.assertEqual(installed, expected) - - def test_public_bound_preserves_publishing_validation(self): - tag = "ccf-8.0.0-dev2-5-gabcdef" - result = run(sys.executable, str(VERSION_SCRIPT), "--public", tag, check=True) - self.assertEqual(result.stdout.strip(), "8.0.0.dev2") - result = run(sys.executable, str(VERSION_SCRIPT), tag) - self.assertNotEqual(result.returncode, 0) - self.assertIn("PyPI does not accept local versions", result.stderr) - - -if __name__ == "__main__": - unittest.main() From 5b8515d64b8322aa60e09320c8ffdffd91de8ff1 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Thu, 3 Dec 2026 16:20:57 +0000 Subject: [PATCH 4/4] Trim redundant SDK selection guidance from testing skill Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/skills/testing/SKILL.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/skills/testing/SKILL.md b/.github/skills/testing/SKILL.md index c1e52c2b5414..3ce716abd49c 100644 --- a/.github/skills/testing/SKILL.md +++ b/.github/skills/testing/SKILL.md @@ -32,7 +32,6 @@ CMake registers it only when configured with `-DCFT_MODEL_DRIVER=ON`. The release workflow sets `CCF_USE_RELEASED_PYTHON_PACKAGE=1` and derives `CCF_PYTHON_PACKAGE_MAX_VERSION` from the build's `VERSION_LONG`, normalized to a public Python version. With this flag, `tests.sh`, installed-package tests, and sandboxes install the latest published `ccf` package from PyPI no newer than that upper bound, including prereleases, replacing any previously installed editable SDK. -Older-major SDKs are eligible; there is no lower bound. Without this flag, development and normal CI tests retain their editable local SDK installation. Installed sandboxes still default to the SDK version matching the installed CCF release. An existing caller-supplied `VENV_DIR` is reused without reinstalling packages; `tests.sh` selects the SDK before exporting its environment to child sandboxes.