Skip to content

Improve LocalStateMonitoring for tests. #66997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

martijnvg
Copy link
Member

@martijnvg martijnvg commented Jan 5, 2021

Adds data-streams plugin and dummy stats actions for ccr and enrich to LocalStateMonitoring.

The data stream plugin and dummy transport actions that are added to LocalStateMonitoring
will allow for monitoring java integration tests to function properly without printing error
messages that make debugging harder. For example the data stream plugin was added so that
index templates with data streams can be added without failing constantly in the background and
enrich stats dummy transport action so that the EnrichStatsCollector doesn't fail.

Also unmutes tests that were muted via #66586, to have another opportunity to look at logs without all the noise,
perhaps all these errors contributed to the test failures.

@martijnvg martijnvg added >test Issues or PRs that are addressing/adding tests :Data Management/Monitoring v8.0.0 labels Jan 5, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jan 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@martijnvg
Copy link
Member Author

Only targeting master branch now, to see how the CI runs the tests that are unmuted. If tests do fail then I will mute these tests again. I will backport the changes to LocalStateMonitoring separately to the 7.x branch later this week.

@martijnvg martijnvg force-pushed the improve_LocalStateMonitoring branch from dff2394 to a62b2aa Compare January 5, 2021 14:01
…ons for ccr and enrich.

The data stream plugin and dummy transport actions that are added to LocalStateMonitoring
will allow for monitoring java integration tests to function properly without printing error
messages that make debugging harder. For example the data stream plugin was added so that
index templates with data streams can be added without failing constantly in the background and
enrich stats dummy transport action so that the EnrichStatsCollector doesn't fail.

Also unmutes tests that were muted via elastic#66586, to have another opportunity to look at logs without all the noise,
perhaps all these errors contributed to the test failures.
@martijnvg martijnvg force-pushed the improve_LocalStateMonitoring branch from a62b2aa to 3aa7297 Compare January 5, 2021 14:59
@martijnvg martijnvg changed the title Adds more plugins to LocalStateMonitoring and re-enables tests. Improve LocalStateMonitoring for tests. Jan 5, 2021

@Override
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() {
var actions = super.getActions();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional note: It is not possible to add the ccr / enrich plugins (like with data streams), because the monitoring gradle project can't rely on these gradle modules, because both ccr and enrich gradle projects already depend on the monitoring gradle project.

Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Martijn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Monitoring Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants