Skip to content

Commit

Permalink
[Entity Analytics] Add more logging to flaky test (#183753)
Browse files Browse the repository at this point in the history
## Summary

Closes #181402 (for now)

This test has only failed once so far, there is nothing obvious in the
logs as to why the transform is in a stopped state, I have added some
more logging so we can dig further if it fails again.

---------

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
hop-dev and kibanamachine authored May 29, 2024
1 parent 4741e29 commit c75560b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ export default ({ getService }: FtrProviderContext): void => {
transform_id: 'risk_score_latest_transform_default',
});

expect(transformStats.transforms[0].state).to.eql('started');
expect(transformStats.transforms.length).to.eql(1);
const latestTransform = transformStats.transforms[0];
if (latestTransform.state !== 'started') {
log.error('Transform state is not started, logging the transform');
log.info(`latestTransform: ${JSON.stringify(latestTransform)}`);
}

expect(latestTransform.state).to.eql('started');
});

describe('@skipInServerlessMKI disabling and re-enabling the risk engine', () => {
Expand Down

0 comments on commit c75560b

Please sign in to comment.