Skip to content

Address PR #335 review feedback: version compat, validation, error handling, tests#336

Merged
fcollman merged 2 commits intoskeleton_bulk_improvementsfrom
copilot/respond-to-open-pr-reviews
Mar 14, 2026
Merged

Address PR #335 review feedback: version compat, validation, error handling, tests#336
fcollman merged 2 commits intoskeleton_bulk_improvementsfrom
copilot/respond-to-open-pr-reviews

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 14, 2026

Addresses all 6 review comments from the Copilot reviewer on PR #335 (skeleton_bulk_improvements).

caveclient/skeletonservice.py

  • Version compatibility: Add @_check_version_compatibility(method_constraint=">=0.22.51") to get_cached_skeletons_bulk and get_skeleton_access_token — matches PR description's server requirement and prevents cryptic 404s on older servers
  • Skeleton version validation: Add self.get_versions() check to both methods, consistent with every other method in the class (get_bulk_skeletons, get_cache_contents, etc.)
  • Redundant verbose_level: Remove from URL query params, keep only in JSON body — consistent with generate_bulk_skeletons_async and other POST methods
  • Error handling in download_skeletons_with_token: Wrap per-skeleton download in try/except so one failure doesn't discard all results — matches pattern used in get_cached_skeletons_bulk (line 1041) and get_bulk_skeletons (line 756)

pyproject.toml

  • Bump version and current_version from 8.0.08.1.0 to match changelog

tests/test_skeletons.py

  • 9 new tests covering get_cached_skeletons_bulk (dict, swc, truncation, invalid format, invalid version), get_skeleton_access_token (success, invalid version), and download_skeletons_with_token (success, partial failure graceful handling)
Original prompt

Can you respond to the reviews of the open pull request on this branch?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

1. Bump version from 8.0.0 to 8.1.0 in pyproject.toml to match changelog
2. Add per-skeleton error handling in download_skeletons_with_token
3. Add @_check_version_compatibility(method_constraint=">=0.22.51") to
   get_cached_skeletons_bulk and get_skeleton_access_token
4. Remove redundant verbose_level from URL query params (keep in JSON body)
5. Add skeleton version validation via self.get_versions() to both new methods
6. Add comprehensive tests for all three new methods

Co-authored-by: fcollman <[email protected]>
Copilot AI changed the title [WIP] Respond to reviews of open pull request Address PR #335 review feedback: version compat, validation, error handling, tests Mar 14, 2026
Copilot AI requested a review from fcollman March 14, 2026 12:48
@fcollman fcollman marked this pull request as ready for review March 14, 2026 13:03
@fcollman fcollman merged commit 658fc3a into skeleton_bulk_improvements Mar 14, 2026
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.

2 participants