Add BaseDeviceConnector and DeviceConnectorProtocol for standardized device connector patterns#3
Draft
Copilot wants to merge 6 commits intocopilot-hackathonfrom
Draft
Add BaseDeviceConnector and DeviceConnectorProtocol for standardized device connector patterns#3Copilot wants to merge 6 commits intocopilot-hackathonfrom
Copilot wants to merge 6 commits intocopilot-hackathonfrom
Conversation
Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
…e tests and documentation Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] can you please take ...
Add BaseDeviceConnector and DeviceConnectorProtocol for standardized device connector patterns
Nov 3, 2025
Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
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.
Phase 1 of device connector refactoring (#2). Adds foundation classes for standardizing configuration loading, logging, error handling, and serial logger management across 16+ device connectors without breaking existing implementations.
Changes
New Base Classes
DeviceConnectorProtocol: Runtime-checkable Protocol (PEP 544) defining the device connector interface for type checkingBaseDeviceConnector: Base class providing:load_config(path)/load_job_data(path)- Standardized YAML/JSON loadingrun_phase(name, func, *args, **kwargs)- Consistent BEGIN/END logging and error handlingcreate_serial_logger(config, filename)- Unified serial logger lifecycleget_provision_data()/get_test_data()/get_test_username()- Safe data extractionUsage Pattern
Documentation
docs/NEW_BASE_CLASSES.md- API reference, usage patterns, migration guidedocs/EXAMPLES.md- Three implementation patterns with error handling examplesTesting
Design
Non-breaking: Existing
DefaultDeviceunchanged, all current connectors work without modification. New classes are additive and optional, enabling incremental adoption in future phases.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.shcurl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from VS Code via the GitHub Pull Request extension.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.