Repository navigation
Add device variables and support for multi-device execution in AI Scriptless - #50
Draft
3dgiordano wants to merge 2 commits into
Draft
3dgiordano wants to merge 2 commits into
3dgiordano wants to merge 2 commits into
Conversation
Collaborator
Author
|
@copilot resolve the merge conflicts in this pull request |
…DEVICE_VARIABLES # Conflicts: # tools/ai_scriptless_manager.py Co-authored-by: 3dgiordano <797057+3dgiordano@users.noreply.github.com>
Merged |
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.
This pull request introduces significant improvements to device variable handling and validation in the scriptless automation tooling. The changes add support for a new "device" variable type, enhance validation and error messaging around device assignments, and expose new utility functions for device management and analysis. Additionally, comprehensive tests have been added to ensure correctness of the new behaviors.
Device variable support and validation:
None(runtime picker) rather than an empty string (tools/ai_scriptless/variables.py). [1] [2]tools/ai_scriptless/variables.py).Device-related utility functions:
device_declarationsto enumerate all declared device variables and their assignments, andreferenced_variable_namesto find all variable names referenced by steps for argument binding (tools/ai_scriptless/variables.py,tools/ai_scriptless/__init__.py). [1] [2] [3]Validation and error messaging:
handset_constant_note, a function that warns when a device parameter is pinned to a literal device id, which is not supported by the backend and will cause test execution to fail (tools/ai_scriptless/definitions.py,tools/ai_scriptless/__init__.py). [1] [2] [3]Testing enhancements:
tests/test_ai_scriptless_script.py,tests/test_ai_scriptless_definitions.py). [1] [2] [3]Internal API and import updates:
tools/ai_scriptless/__init__.py,tools/ai_scriptless_manager.py). [1] [2] [3] [4] [5]These changes collectively enhance the robustness and clarity of device variable management in scriptless automation, improving both developer experience and runtime reliability.