Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/native-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uv venv .native-venv
uv pip install --python .native-venv/bin/python "powercontext[cli,server] @ file://$PWD/$wheel" pytest
uv venv .native-source-venv
uv pip install --python .native-source-venv/bin/python "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5"
uv pip install --python .native-source-venv/bin/python "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5" --constraint tests/release_upgrades/compatibility-constraints.txt
echo "POWERCONTEXT_NATIVE_UPGRADE_SOURCE_PYTHON=$PWD/.native-source-venv/bin/python" >> "$GITHUB_ENV"

- name: Exercise the real systemd user lifecycle
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
# runs the cold-start lifecycle under its bounded startup deadline.
uv pip install --compile-bytecode --python .native-venv/bin/python "powercontext[cli,server] @ file://$PWD/$wheel" pytest
uv venv .native-source-venv
uv pip install --compile-bytecode --python .native-source-venv/bin/python "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5"
uv pip install --compile-bytecode --python .native-source-venv/bin/python "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5" --constraint tests/release_upgrades/compatibility-constraints.txt
echo "POWERCONTEXT_NATIVE_UPGRADE_SOURCE_PYTHON=$PWD/.native-source-venv/bin/python" >> "$GITHUB_ENV"

- name: Exercise the real LaunchAgent lifecycle
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
uv venv .native-venv
uv pip install --python .native-venv\Scripts\python.exe "powercontext[cli,server] @ $wheelUri" pytest
uv venv .native-source-venv
uv pip install --python .native-source-venv\Scripts\python.exe "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5"
uv pip install --python .native-source-venv\Scripts\python.exe "powercontext[cli,server] @ https://files.pythonhosted.org/packages/30/bd/463f998f8794bc7f8ff588d47157ca0e62dd03a9f3ae466e2eb34fb66045/powercontext-1.3.0-py3-none-any.whl#sha256=8da7983763f3a6ab80b413c770a4973a46c557a54e1a1fa675099e58d47305e5" --constraint tests/release_upgrades/compatibility-constraints.txt
"POWERCONTEXT_NATIVE_UPGRADE_SOURCE_PYTHON=$PWD\.native-source-venv\Scripts\python.exe" >> $env:GITHUB_ENV

- name: Verify binary cursor persistence and restart compatibility
Expand Down
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ header:
- '**/*.mermaid'
# license-eye cannot determine the comment style of uv requirements files.
- 'e2e/bub/source-overrides.txt'
- 'tests/release_upgrades/compatibility-constraints.txt'
- 'integrations/dify/plugin/requirements.txt'
- 'integrations/dify/plugin/.difyignore'

Expand Down
4 changes: 2 additions & 2 deletions e2e/bub/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions evaluation/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ server = [
"httpx>=0.28,<1",
"jinja2>=3.1.6,<4",
"markdown-it-py>=4,<5",
"opentelemetry-api>=1.30,<2",
# FastAPI 0.165.1 passes logger arguments positionally; 1.46 makes them keyword-only.
"opentelemetry-api>=1.30,<1.46",
"opentelemetry-sdk>=1.30,<2",
"platformdirs>=4,<5",
"powercontext[builtin]",
Expand Down
2 changes: 2 additions & 0 deletions scripts/upgrade_release_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ def run_case(root: Path, wheel: Path, case: dict[str, Any], output: Path) -> dic
)
python = venv / ("Scripts/python.exe" if os.name == "nt" else "bin/python")
install = ["uv", "pip", "install", "--python", str(python), package, *engine_requirement]
if role == "source":
install.extend(["--constraint", str(root / "tests/release_upgrades/compatibility-constraints.txt")])
if installer := environment.get("PC_CI_PYTHON_INSTALLER"):
install = [sys.executable, installer, "uv-pip", *install[2:]]
run_owned(
Expand Down
5 changes: 4 additions & 1 deletion tests/release_upgrades/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ owned-descendant cleanup remain unchanged. Wall time depends on the slowest case
not the sum of twelve cases. This increases concurrent runner use and does not promise a fixed speedup.

The runner creates separate source/target environments, installs the exact published source package and the built
target wheel, pins both seekDB environments to the `pylibseekdb` version in the checkout's `uv.lock`, verifies their versions, then executes the reviewed suite in an isolated working directory. Repository
target wheel. Historical source environments apply `compatibility-constraints.txt` for known upstream dependency
incompatibilities that cannot be corrected in already-published wheel metadata; the source artifact and hash remain
unchanged. The current Server wheel declares its compatible dependency range in package metadata. The runner
pins both seekDB environments to the `pylibseekdb` version in the checkout's `uv.lock`, verifies their versions, then executes the reviewed suite in an isolated working directory. Repository
pytest configuration and deployment environment variables are excluded. The suite must exercise those installed
processes, not import the current checkout's runtime in place of either version. Use `-I` when invoking their Python.

Expand Down
17 changes: 17 additions & 0 deletions tests/release_upgrades/compatibility-constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2026 OceanBase.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Released wheels retain their original metadata. Keep their Server environment
# compatible with FastAPI 0.165.1, which calls the pre-1.46 logger API positionally.
opentelemetry-api<1.46
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading