Skip to content

Remove billing from the list of AWS light metricsets#21164

Merged
jsoriano merged 1 commit intoelastic:masterfrom
jsoriano:aws-billing-registration
Sep 18, 2020
Merged

Remove billing from the list of AWS light metricsets#21164
jsoriano merged 1 commit intoelastic:masterfrom
jsoriano:aws-billing-registration

Conversation

@jsoriano
Copy link
Copy Markdown
Member

On tests, loading any metricset from the AWS module is trying
to load the billing metricset as light metricset, what fails. This
shouldn't happen after #15011, but it is probably happening
because on tests, not all metricsets are registered.

billing metricset was refactored to a native implementation
recently, in #20527.

By now I am removing billing from the list so tests can be executed.

Integration tests fail with errors like this one:

go test -tags=integration,aws ./x-pack/metricbeat/module/aws/sns/
--- FAIL: TestData (0.00s)
    modules.go:111: failed to create new MetricSet 1 error: failed to obtain registration for non-registered metricset 'aws/sns': loading module 'aws': loading metric sets for light module 'aws': loading light metricset 'billing': loading metricset manifest from '../../../module/aws/billing/manifest.yml': open ../../../module/aws/billing/manifest.yml: no such file or directory
FAIL
FAIL	github.com/elastic/beats/v7/x-pack/metricbeat/module/aws/sns	0.013s
FAIL

Thanks @v1v for reporting!

At least on tests, loading any metricset from the AWS module is trying
to load the billing metricset as light metricset, what fails. This
shouldn't happen, but I am removing billing from the list by now so
tests can be executed.
@jsoriano jsoriano added Metricbeat Metricbeat needs_backport PR is waiting to be backported to other branches. :Testing Team:Platforms Label for the Integrations - Platforms team labels Sep 18, 2020
@jsoriano jsoriano self-assigned this Sep 18, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 18, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 18, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by user Jaime Soriano Pastor]

  • Start Time: 2020-09-18T10:35:52.369+0000

  • Duration: 57 min 47 sec

Test stats 🧪

Test Results
Failed 0
Passed 852
Skipped 93
Total 945

Copy link
Copy Markdown
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

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

Thank you for fixing it!! Sorry I missed it when I changed billing metricset recently.

@jsoriano
Copy link
Copy Markdown
Member Author

Thank you for fixing it!! Sorry I missed it when I changed billing metricset recently.

No prob, this list of light metricsets has proven to be problematic!

@jsoriano jsoriano merged commit 43f9bbc into elastic:master Sep 18, 2020
@jsoriano jsoriano deleted the aws-billing-registration branch September 18, 2020 12:43
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Sep 18, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Sep 18, 2020
On tests, loading any metricset from the AWS module is trying
to load the billing metricset as light metricset, what fails. This
shouldn't happen after elastic#15011, but it is probably happening
because on tests, not all metricsets are registered.

billing metricset was refactored to a native implementation
recently, in elastic#20527.

By now, remove billing from the list so tests can be executed.

(cherry picked from commit 43f9bbc)
jsoriano added a commit that referenced this pull request Sep 18, 2020
On tests, loading any metricset from the AWS module is trying
to load the billing metricset as light metricset, what fails. This
shouldn't happen after #15011, but it is probably happening
because on tests, not all metricsets are registered.

billing metricset was refactored to a native implementation
recently, in #20527.

By now, remove billing from the list so tests can be executed.

(cherry picked from commit 43f9bbc)
v1v added a commit to v1v/beats that referenced this pull request Sep 18, 2020
…ne-2.0

* upstream/master:
  Remove billing from the list of AWS light metricsets (elastic#21164)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team :Testing v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants