Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issues related to driver dependency #1109

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

zhenyu-ms
Copy link
Contributor

@zhenyu-ms zhenyu-ms commented Jul 2, 2024

Bug / Requirement Description

  • fix exception handling within pre_resource steps
  • fix driver flag setting when driver dependency presents
  • make dependencies arg accept None or callable returning None (sort of optional)

Solution description

  • extra self_exception attribute for step skipping
  • make use of cfg (as cfg should only be set during construction)
  • close logfile handler after post run checks to save proc thrd info in logfile

Checklist:

  • Test
  • Example (both test_plan.py and .rst)
  • Documentation (API)
  • News fragment present for release notes
  • MS info leakage check
  • For new driver: driver index page
  • For new assertion: ui/pdf/std renderers, documentation
  • For new cmdline arg: documentation

@zhenyu-ms zhenyu-ms requested a review from a team as a code owner July 2, 2024 09:27
zhenyu-ms added 2 commits July 3, 2024 20:25
- fix exception handling within pre_resource steps
- fix driver flag setting when driver dependency presents
@zhenyu-ms zhenyu-ms force-pushed the fix-pre-resources branch from e5f1ad0 to 9fb6112 Compare July 3, 2024 12:25
else:
self.resources._initial_context = self.cfg.initial_context
except Exception as e:
self.resources.self_exception = e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we re-use the try-except in _execute_step rather than adding try-except to every single step?

@zhenyu-ms zhenyu-ms force-pushed the fix-pre-resources branch from 7451189 to 1356e61 Compare July 15, 2024 02:24
@zhenyu-ms zhenyu-ms changed the title Fix/two issues related to driver dependency Fix/issues related to driver dependency Jul 16, 2024
@zhenyu-ms zhenyu-ms merged commit 2adf385 into morganstanley:main Jul 16, 2024
15 checks passed
zhenyu-ms added a commit to zhenyu-ms/testplan that referenced this pull request Jul 16, 2024
* fix two bugs

- fix exception handling within pre_resource steps
- fix driver flag setting when driver dependency presents

* have post_run_checks warning written to log file

* address review comments; add support of dependencies=None

* really address review comments; bugfix
@zhenyu-ms zhenyu-ms deleted the fix-pre-resources branch July 16, 2024 06:30
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