add log checking to refactored integration check (#700)

In practice, Application Insights can take up to 3 minutes before something sent to it is available via KQL.

This PR logs a start and stop marker such that the integration tests only search for logs during the integration tests. This reduces the complexity when using the integration tests during the development process.

Note: this migrated the new functionality from #356 into the latest integration test tools.
This commit is contained in:
bmc-msft
2021-04-02 17:49:19 -04:00
committed by GitHub
parent 9c1540aca8
commit ca12904684
7 changed files with 147 additions and 24 deletions

View File

@ -214,9 +214,6 @@ def on_worker_event_done(machine_id: UUID, event: WorkerDoneEvent) -> Result[Non
node.debug_keep_node = True
node.save()
else:
logging.error(
"task failed. %s:%s status:%s", task.job_id, task.task_id, event.exit_status
)
task.mark_failed(
Error(
code=ErrorCode.TASK_FAILED,