feat: Add technique shorthand to schema scripts#1178
Merged
Conversation
Allow passing "plate-reader 2026/03" instead of full purl URLs to download-schema and generate-schemas scripts. Supports fuzzy matching of technique names against the GitLab directory listing with user confirmation, and automatically discovers all schema files in a technique+version directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When the GitLab API is unreachable (SSL errors, network issues), the technique resolver now falls back to the local schema cache for both technique listing and schema file discovery. Errors are surfaced as clean click.ClickException messages instead of raw tracebacks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The hatch scripts environment uses a Python installation with its own OpenSSL cert bundle that may not include corporate proxy certificates. Add _get_ssl_context() that falls back to system cert locations (macOS, Debian, RHEL) when the default context fails. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
stephenworlow
approved these changes
Apr 16, 2026
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
download-schemaandgenerate-schemasscripts — e.g."plate-reader 2026/03"instead of full purl URLsdifflib.get_close_matches) and user confirmationpcr→qpcr+dpcr) are automatically discovered and resolvedREC, optionally specified as"pcr WD/2025/06"or"chromatography BENCHLING/2024/11"Test plan
tests/schema_gen/test_technique_resolver.py(all mocked, no network)hatch run scripts:download-schema "plate-reader 2026/03"downloads schema + depshatch run scripts:download-schema "plate_reader 2026/03"triggers fuzzy match → confirm → downloadhatch run scripts:generate-schemas "pcr 2026/03"resolves to qpcr + dpcr schemashatch run lintpasseshatch run lint:typingpasses🤖 Generated with Claude Code