Sergei Trofimov
fe50d75858
fw/instrument: derive Instrument from TargetedPlugin
...
Change Instrument to derive from TargetedPlugin rather than Plugin,
which it should have been all along.
2020-02-04 13:28:48 +00:00
Marc Bonnici
8cd79f2ac4
fw/instrument: Fix compatibility with Python2
...
The Python2 inspect module does not contain the `getfullargspec` method so call
the appropriate method depending on Python version.
2018-09-05 15:44:48 +01:00
Sergei Trofimov
a062a39f78
fw/config: add installed aug configs to run config
...
Track configuration used for installed augmentations inside RunConfig.
2018-07-11 13:28:04 +01:00
Sergei Trofimov
c410d2e1a1
I lint, therefore I am
...
Implement fixes for the most recent pylint version.
2018-07-09 15:59:40 +01:00
Sergei Trofimov
f74b7ae78c
framework: fix pylint issues
...
Fix/disable checks for issues reported by pylint under wa/framework.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
8878cc20d4
Update copyright headers.
...
- Add copyright headers to files that did not already have them
- Update the year to the last year the file was modified in files with
existing headers.
2018-07-04 16:33:31 +01:00
Sergei Trofimov
ea97372ece
fw/exec: add JOB_QUEUE_EXECUTION signals
...
Add signals just before and just after commencing the execution of the
job queue.
2018-06-12 16:07:53 +01:00
Sergei Trofimov
5f7fde206d
fw/instrument: add hostside decorator
...
Add a decorator to indicate that a callback runs entirely host-side and
does not rely on a connection to the target. This means it will be
invoked even if the target was detected to be unresponsive.
2018-06-12 16:07:53 +01:00
Sergei Trofimov
2f99137ad5
fw/target: fix signals reboot on unresponsive
...
- Add "hard" parameter to TargetManager's reboot().
- Pass in context to TargetManager's reboot() and
verify_target_responsive() -- this is needed for signal dispatch.
- Call self.reboot() instead of self.target.reboot() when attempting a
reset for unresponsive targets inside TargetManager, in order to
ensure that appropriate signals are dispatched.
2018-06-12 16:07:53 +01:00
Sascha Bischoff
b6531feb52
framework/instrument: Fix typo for on_job_failure
2018-06-11 15:59:53 +01:00
Sergei Trofimov
b3de85455a
Add support for Python 3
...
Add support for running under Python 3, while maintaining compatibility
with Python 2.
See http://python-future.org/compatible_idioms.html for more details
behind these changes.
2018-06-07 14:48:40 +01:00
Marc Bonnici
b14c3d8868
framework/instrument: Fix lefover references to instrument proiorities
...
Update instrument proiorities to use signal proiorities instead.
2018-05-30 12:23:15 +01:00
Sergei Trofimov
864ded60ae
fw/instrument: use signal priorities
...
Use signal priorities to define priority decorators, rather than
defining own priority enum.
2018-05-30 12:02:28 +01:00
Sergei Trofimov
42bae98d50
fw/instrument: remove commented code
...
Remove the commented out mappings from WA2.
2018-05-29 11:56:39 +01:00
Sergei Trofimov
673b61342d
fw/instrument: add mappings for job/run signals
...
Add missing mappings for job and run signals.
2018-05-29 11:56:39 +01:00
Sergei Trofimov
e90b12e984
fw/instrument: add job output mappings
...
Add method name mappings for JOB_OUTPUT_PROCESSED signals.
2018-05-29 11:56:39 +01:00
Sergei Trofimov
43d047eeb5
fw: implement reboot signals
...
- Wire up reboot signals via the TargetManager
- Add instrument mappings for the same.
2018-05-29 11:56:39 +01:00
Sergei Trofimov
9f36d543e1
fw/instrument: Add log signal maps
...
Add method name mappings for ERROR_LOGGED and WARNING_LOGGED signals.
2018-05-29 11:56:39 +01:00
Sergei Trofimov
573c6abcb5
fw/signal: add job signals
...
Add matched signals for before-after job execution. These are the
equivalent of "spec" signals in WA2.
2018-05-29 11:56:39 +01:00
Marc Bonnici
dc41af1f3f
framework/tm: Ensure RebootPolicy is respected with unresponsive target
...
Expose the RebootPolicy as an attribute of the ExectionContext and ensure
that that the target is not automatically rebooted if the reboot
policy is set to "Never".
2018-05-23 10:14:34 +01:00
Sergei Trofimov
6fe31d6cad
fw/execution: Handle unresponsive targets
...
If a target error occurs, check whether the target is unresponsive. If
it is, attempt to hard reset it if possible, or gracefully terminate
execution if not.
2018-03-08 11:18:12 +00:00
Sergei Trofimov
12a33c8aeb
framework: move instruments -> instrument
...
Use the singular to be consistent with other modules in wa.framework.
2018-02-22 08:41:04 +00:00