Skip to content

feat: Add disable_command_verification config file and environment variable option to enable speeding up automation scripts - #428

Merged
nfelt14 merged 5 commits into
tektronix:mainfrom
nfelt14:config-flag-for-command-verification
May 7, 2025
Merged

nfelt14 merged 5 commits into
tektronix:mainfrom
nfelt14:config-flag-for-command-verification

Conversation

@nfelt14

@nfelt14 nfelt14 commented May 6, 2025 •

Copy link
Copy Markdown
Collaborator

Proposed changes

feat: Add disable_command_verification config file and environment variable option to enable speeding up automation scripts

Addresses #424

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Functionality update (non-breaking change which updates or changes existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • CI/CD update (an update to the CI/CD workflows, scripts, and/or configurations)
  • Documentation update (an update to enhance the user experience when reading through the docs)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have followed the guidelines in the CONTRIBUTING document
  • I have signed the CLA
  • I have checked to ensure there aren't other open Pull Requests for the same update/change
  • I have created (or updated) an Issue to track the status of this update/change and updated the link in this PR description (see above in the Proposed changes section) using the wording Addresses #<issue_number>
  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • Basic linting passes locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added necessary documentation (if appropriate)
  • I have updated the Changelog with a brief description of my changes

…riable option to enable speeding up automation scripts
@nfelt14
nfelt14 requested review from a team as code owners May 6, 2025 19:33
@nfelt14
nfelt14 temporarily deployed to package-build May 6, 2025 19:33 — with GitHub Actions Inactive
@codecov

codecov Bot commented May 6, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d67db32) to head (5fe21fb).
⚠️ Report is 34 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #428   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          161       161           
  Lines         4692      4714   +22     
  Branches       781       784    +3     
=========================================
+ Hits          4692      4714   +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nfelt14
nfelt14 temporarily deployed to package-build May 6, 2025 20:13 — with GitHub Actions Inactive
@nfelt14
nfelt14 enabled auto-merge (squash) May 6, 2025 20:17
…l command verification within a context block
@nfelt14
nfelt14 temporarily deployed to package-build May 6, 2025 20:40 — with GitHub Actions Inactive
@nfelt14
nfelt14 disabled auto-merge May 6, 2025 20:40
@nfelt14
nfelt14 temporarily deployed to package-build May 6, 2025 20:43 — with GitHub Actions Inactive
michaelwagoner
michaelwagoner previously approved these changes May 6, 2025
@github-actions

github-actions Bot commented May 6, 2025 •

Copy link
Copy Markdown

Breaking API Changes

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(verbose_visa):
Positional parameter was moved
  Details: position: from 5 to 6 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(retry_visa_connection):
Positional parameter was moved
  Details: position: from 6 to 7 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(default_visa_timeout):
Positional parameter was moved
  Details: position: from 7 to 8 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(check_for_updates):
Positional parameter was moved
  Details: position: from 8 to 9 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_console_level):
Positional parameter was moved
  Details: position: from 9 to 10 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_file_level):
Positional parameter was moved
  Details: position: from 10 to 11 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_file_directory):
Positional parameter was moved
  Details: position: from 11 to 12 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_file_name):
Positional parameter was moved
  Details: position: from 12 to 13 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_colored_output):
Positional parameter was moved
  Details: position: from 13 to 14 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_pyvisa_messages):
Positional parameter was moved
  Details: position: from 14 to 15 (+1)

src/tm_devices/helpers/constants_and_dataclasses.py:0: DMConfigOptions.__init__(log_uncaught_exceptions):
Positional parameter was moved
  Details: position: from 15 to 16 (+1)

Link to workflow run

@github-actions

github-actions Bot commented May 6, 2025 •

Copy link
Copy Markdown

Test Results (ubuntu)

path passed subtotal
tests/test_afgs.py 2 2
tests/test_alias_dict.py 1 1
tests/test_all_device_drivers.py 101 101
tests/test_alternative_connection_addresses.py 19 19
tests/test_awgs.py 4 4
tests/test_config_parser.py 40 40
tests/test_device_manager.py 17 17
tests/test_devices_legacy_tsp_ieee_cmds.py 3 3
tests/test_extension_mixin.py 1 1
tests/test_generate_waveform.py 6 6
tests/test_helpers.py 76 76
tests/test_ieee_scpi_cmds.py 1 1
tests/test_logging.py 4 4
tests/test_margin_testers.py 5 5
tests/test_pi_device.py 1 1
tests/test_psu.py 1 1
tests/test_rest_api_device.py 10 10
tests/test_scopes.py 9 9
tests/test_singleton.py 1 1
tests/test_smu.py 4 4
tests/test_ss.py 1 1
tests/test_tm_devices.py 425 425
tests/test_unsupported_device_type.py 1 1
tests/test_verification_functions.py 6 6
TOTAL 739 739

Link to workflow run

@github-actions

github-actions Bot commented May 6, 2025 •

Copy link
Copy Markdown

Test Results (macos)

path passed subtotal
tests/test_afgs.py 2 2
tests/test_alias_dict.py 1 1
tests/test_all_device_drivers.py 101 101
tests/test_alternative_connection_addresses.py 19 19
tests/test_awgs.py 4 4
tests/test_config_parser.py 40 40
tests/test_device_manager.py 17 17
tests/test_devices_legacy_tsp_ieee_cmds.py 3 3
tests/test_extension_mixin.py 1 1
tests/test_generate_waveform.py 6 6
tests/test_helpers.py 76 76
tests/test_ieee_scpi_cmds.py 1 1
tests/test_logging.py 4 4
tests/test_margin_testers.py 5 5
tests/test_pi_device.py 1 1
tests/test_psu.py 1 1
tests/test_rest_api_device.py 10 10
tests/test_scopes.py 9 9
tests/test_singleton.py 1 1
tests/test_smu.py 4 4
tests/test_ss.py 1 1
tests/test_tm_devices.py 425 425
tests/test_unsupported_device_type.py 1 1
tests/test_verification_functions.py 6 6
TOTAL 739 739

Link to workflow run

@github-actions

github-actions Bot commented May 6, 2025 •

Copy link
Copy Markdown

Test Results (windows)

path passed subtotal
tests\test_afgs.py 2 2
tests\test_alias_dict.py 1 1
tests\test_all_device_drivers.py 101 101
tests\test_alternative_connection_addresses.py 19 19
tests\test_awgs.py 4 4
tests\test_config_parser.py 40 40
tests\test_device_manager.py 17 17
tests\test_devices_legacy_tsp_ieee_cmds.py 3 3
tests\test_extension_mixin.py 1 1
tests\test_generate_waveform.py 6 6
tests\test_helpers.py 76 76
tests\test_ieee_scpi_cmds.py 1 1
tests\test_logging.py 4 4
tests\test_margin_testers.py 5 5
tests\test_pi_device.py 1 1
tests\test_psu.py 1 1
tests\test_rest_api_device.py 10 10
tests\test_scopes.py 9 9
tests\test_singleton.py 1 1
tests\test_smu.py 4 4
tests\test_ss.py 1 1
tests\test_tm_devices.py 425 425
tests\test_unsupported_device_type.py 1 1
tests\test_verification_functions.py 6 6
TOTAL 739 739

Link to workflow run

@nfelt14
nfelt14 merged commit 047ee00 into tektronix:main May 7, 2025
@nfelt14
nfelt14 deleted the config-flag-for-command-verification branch May 7, 2025 16:43

This branch was previously deployed

1 inactive deployment
package-build — 5fe21fb2 Deployed May 6, 2025 by nfelt14
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.

3 participants