Skip to content

fix(rest/python): derive unsupported test version dynamically - #161

Merged
carolinerg1 merged 1 commit into
Universal-Commerce-Protocol:mainfrom
quanwenshuang:fix/rest-python-unsupported-version-test-v2
Aug 4, 2026
Merged

fix(rest/python): derive unsupported test version dynamically#161
carolinerg1 merged 1 commit into
Universal-Commerce-Protocol:mainfrom
quanwenshuang:fix/rest-python-unsupported-version-test-v2

Conversation

@quanwenshuang

Copy link
Copy Markdown
Contributor

Summary

  • derive the unsupported client version from app.version instead of hard-coding a date
  • use unsupported_version consistently in the request header and expected error response
  • keep the change scoped to the existing integration test

Testing

  • uv run --directory rest/python/server pytest -v (20 passed)

Known check

  • pre-commit reports E501 for the two lines containing unsupported_version; they remain unchanged apart from the requested variable rename

@google-cla

google-cla Bot commented Aug 3, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

The unsupported-version integration test hard-coded 2026-04-09 and therefore depended on the discovery profile remaining at 2026-04-08. Once the profile version advanced, the request could be accepted and the test would fail even though version negotiation was correct.

Derive the requested version as one day after app.version and use it in both the UCP-Agent header and expected error response.

Tests: uv run --directory rest/python/server pytest -v
@damaz91 damaz91 added the status:needs-triage Signal that the PR is ready for human triage label Aug 3, 2026
@quanwenshuang
quanwenshuang force-pushed the fix/rest-python-unsupported-version-test-v2 branch from 0555fc1 to a1a4dfb Compare August 3, 2026 15:32
@damaz91 damaz91 added status:under-review and removed status:needs-triage Signal that the PR is ready for human triage labels Aug 4, 2026
@carolinerg1
carolinerg1 self-requested a review August 4, 2026 16:15
@carolinerg1
carolinerg1 merged commit fd17e35 into Universal-Commerce-Protocol:main Aug 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants