Repository navigation
Conversation
Enable Session renewal via Python and CLI, optional raise-on-failure batch errors, and caller-owned httpx2 transport injection for #329.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #331 +/- ##
==========================================
+ Coverage 90.92% 91.19% +0.27%
==========================================
Files 61 64 +3
Lines 4286 4454 +168
Branches 508 529 +21
==========================================
+ Hits 3897 4062 +165
Misses 258 258
- Partials 131 134 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Session.renew/AsyncSession.renewandcanfar renewto reset interactive Session lifetimes (parity with Science Portal / Skahaaction=renew).errors/CANFAR_ERRORSand per-callerrors=on lifecycle methods, raisingSessionRequestErrorwith partial results after every request runs.HTTPClient(transport=...)for shared connection pools (Bearer tokens only; clients never close the transport).Closes #329
Test plan
uv run ruff check . --no-cacheanduv run ty check canfaruv run pytest tests -m "not slow" --no-cov -quv run pytest tests/test_skills.py --no-cov -q -n0uv run --group docs mkdocs buildcanfar renew SESSION_IDrenews without a prompt and prints success/failure summariesSession(errors="raise").destroy([...])raisesSessionRequestErrorwith partial resultshttpx2.HTTPTransport/AsyncHTTPTransportand confirm close does not shut down the pool