Skip to content

Add latest Connect release to integration version list #159

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cgraham-rs
Copy link
Contributor

❯ make -C ./integration print-versions

connect-preview
2025.05.0
2025.04.0

Unrelated to this change, I don't seem to be able to run the integration tests locally for some reason.

tests-1    | tests/posit/connect/test_deployments.py F
tests-1    | 
tests-1    | =================================== FAILURES ===================================
tests-1    | ________________ TestExtensionDeployment.test_extension_deploys ________________
tests-1    | 
tests-1    | self = <test_deployments.TestExtensionDeployment object at 0x7ffffd7da0d0>
tests-1    | 
tests-1    |     def test_extension_deploys(self):
tests-1    |         """Test that an Extension can be deployed and started successfully in Posit Connect."""
tests-1    |         # Get the bundle path using the container mount path
tests-1    |         bundle_path = Path(BUNDLE_BASE_PATH) / f"{self.extension_name}.tar.gz"
tests-1    |         if not bundle_path.exists():
tests-1    |             raise FileNotFoundError(f"Extension bundle not found at {bundle_path}")
tests-1    |     
tests-1    |         # Create bundle and deploy
tests-1    | >       bundle = self.content.bundles.create(str(bundle_path))
tests-1    | 
tests-1    | tests/posit/connect/test_deployments.py:45: 
tests-1    | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests-1    | .venv/lib/python3.13/site-packages/posit/connect/bundles.py:168: in create
tests-1    |     response = self._ctx.client.post(path, data=data)
tests-1    | .venv/lib/python3.13/site-packages/posit/connect/client.py:510: in post
tests-1    |     return self.session.post(url, **kwargs)
tests-1    | .venv/lib/python3.13/site-packages/posit/connect/sessions.py:77: in post
tests-1    |     response = super().post(url, data=data, json=json, **kwargs)
tests-1    | .venv/lib/python3.13/site-packages/requests/sessions.py:637: in post
tests-1    |     return self.request("POST", url, data=data, json=json, **kwargs)
tests-1    | .venv/lib/python3.13/site-packages/requests/sessions.py:589: in request
tests-1    |     resp = self.send(prep, **send_kwargs)
tests-1    | .venv/lib/python3.13/site-packages/requests/sessions.py:710: in send
tests-1    |     r = dispatch_hook("response", hooks, r, **kwargs)
tests-1    | .venv/lib/python3.13/site-packages/requests/hooks.py:30: in dispatch_hook
tests-1    |     _hook_data = hook(hook_data, **kwargs)
tests-1    | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests-1    | 
tests-1    | response = <Response [400]>, request_hook_args = ()
tests-1    | request_hook_kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': None, ...}
tests-1    | data = {'code': 135, 'error': 'Prohibited archive path reference', 'payload': None}
tests-1    | error_code = 135, message = 'Prohibited archive path reference', payload = None
tests-1    | http_status = 400, http_status_message = 'Bad Request'
tests-1    | 
tests-1    |     def handle_errors(
tests-1    |         response: Response,
tests-1    |         # Arguments for the hook callback signature
tests-1    |         *request_hook_args,  # noqa: ARG001
tests-1    |         **request_hook_kwargs,  # noqa: ARG001
tests-1    |     ) -> Response:
tests-1    |         if response.status_code >= 400:
tests-1    |             try:
tests-1    |                 data = response.json()
tests-1    |                 error_code = data["code"]
tests-1    |                 message = data["error"]
tests-1    |                 payload = data.get("payload")
tests-1    |                 http_status = response.status_code
tests-1    |                 http_status_message = responses[http_status]
tests-1    | >               raise ClientError(error_code, message, http_status, http_status_message, payload)
tests-1    | E               posit.connect.errors.ClientError: {"error_code": 135, "error_message": "Prohibited archive path reference", "http_status": 400, "http_message": "Bad Request", "payload": null}
tests-1    | 
tests-1    | .venv/lib/python3.13/site-packages/posit/connect/hooks.py:23: ClientError
tests-1    | -- generated xml file: /connect-extensions/integration/reports/2025.05.0.xml ---
tests-1    | =========================== short test summary info ============================
tests-1    | FAILED tests/posit/connect/test_deployments.py::TestExtensionDeployment::test_extension_deploys
tests-1    | ============================== 1 failed in 0.37s ===============================
tests-1    | make: *** [Makefile:310: test] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant