Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Backport: Fix the profile API returns prematurely. (#340) #343

Conversation

kaituo
Copy link
Member

@kaituo kaituo commented Dec 29, 2020

Issue #, if available:

Description of changes:
Besides backporting, this PR also:
First, it fixes another premature return in AnomalyDetectorProfileRunner.onInittedEver.
Second, it replaces set-env with GITHUB_ENV so that backport PR can invoke CI. The set-env command is disabled.

Testing done:

  1. Verfied manually the new early return bug is fixed..
  2. Manual tests to run profile calls for single-stream and multi-entity detectors for different phases of the detector lifecycle (disabled, init, running). Verified profile results make sense.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…asticsearch#340)

Besides backporting, this PR also:
First, it fixes another premature return in AnomalyDetectorProfileRunner.onInittedEver.
Second, it replaces set-env with GITHUB_ENV so that backport PR can invoke CI. The `set-env` command is disabled.

Testing done:
1. Verfied manually the new early return bug is fixed..
2. Manual tests to run profile calls for single-stream and multi-entity detectors for different phases of the detector lifecycle (disabled, init, running). Verified profile results make sense.
@codecov
Copy link

codecov bot commented Dec 29, 2020

Codecov Report

❗ No coverage uploaded for pull request base (opendistro-1.11@5d30bb9). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##             opendistro-1.11     #343   +/-   ##
==================================================
  Coverage                   ?   72.73%           
  Complexity                 ?     2009           
==================================================
  Files                      ?      201           
  Lines                      ?     9565           
  Branches                   ?      850           
==================================================
  Hits                       ?     6957           
  Misses                     ?     2198           
  Partials                   ?      410           
Flag Coverage Δ Complexity Δ
cli 79.27% <0.00%> (?) 0.00% <0.00%> (?%)
plugin 72.20% <0.00%> (?) 0.00% <0.00%> (?%)

Flags with carried forward coverage won't be shown. Click here to find out more.

@kaituo kaituo merged commit ad3e11d into opendistro-for-elasticsearch:opendistro-1.11 Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants