Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ap_verify
-
Story Points:4
-
Epic Link:
-
Sprint:AP F20-5 (October)
-
Team:Alert Production
-
Urgent?:No
Description
In Gen 3 mode, ap_verify relies on ctrl_mpexec for running the AP pipeline, but there is as yet no API to support pipeline execution from within a larger program (DM-26239). ap_verify hacked around this by calling CmdLineFwk's command-line parser, but this code was removed in DM-26874.
Following discussion on #dm-middleware, attempt to use click.testing.CliRunner as an almost-drop-in replacement for CmdLineFwk.parseAndRun. If this breaks important pipeline features (parallelism, logging, etc.), fall back to manually calling the scripts at https://github.com/lsst/ctrl_mpexec/tree/master/python/lsst/ctrl/mpexec/cli/script.
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link |
|
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Reviewers | Nate Pease [ npease ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
If time permits, consider changing test_driver.py to mock only at lower levels; previously, all of CmdLineFwk was replaced with a mock, which is why the problem didn't get caught in unit tests.