Skip to content
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

AWS CloudWatch - properly parse multiple values of dimensionName & dimensionValue lists #6313

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

zroubalik
Copy link
Member

A regression introduced in 2.15

Checklist

Fixes #6236

…`dimensionValue` lists

Signed-off-by: Zbynek Roubalik <[email protected]>
@zroubalik zroubalik requested a review from a team as a code owner November 6, 2024 10:07
@zroubalik
Copy link
Member Author

zroubalik commented Nov 6, 2024

/run-e2e aws_cloudwatch
Update: You can check the progress here

@zroubalik zroubalik enabled auto-merge (squash) November 6, 2024 10:09
@JorTurFer
Copy link
Member

Does it make sense adding an e2e test to cover this feature? (or updating the current one to use multi-dimensions, I'll asume that if multi-dimension works single dimension will work too)

@zroubalik
Copy link
Member Author

Does it make sense adding an e2e test to cover this feature? (or updating the current one to use multi-dimensions, I'll asume that if multi-dimension works single dimension will work too)

IMHO unit test is enough, but 🤷‍♂️

@JorTurFer
Copy link
Member

The current test only verifies that there aren't parsing errors, but it doesn't check the parsing result. I mean, the parsing didn't fail before either. If you remove the parser change and execute the test, it'll pass too.
To ensure this with unit tests, we need to include a verification of the parsed metadata

@JorTurFer
Copy link
Member

JorTurFer commented Nov 6, 2024

Basically, the (previous) value unsplitted is used
image
but there isn't parsing errors

That's why I said about adding support with e2e or testing the metadata result with unit tests

@zroubalik
Copy link
Member Author

zroubalik commented Nov 6, 2024

You are right, my previous version of test covered this, then I did some refactoring to include the new test into exisiting tests and missed this check, will add it.

🤦‍♂️

@zroubalik
Copy link
Member Author

@JorTurFer ptal

@JorTurFer
Copy link
Member

JorTurFer commented Nov 6, 2024

/run-e2e aws_cloudwatch
Update: You can check the progress here

@JorTurFer JorTurFer enabled auto-merge (squash) November 6, 2024 15:16
@JorTurFer
Copy link
Member

Thanks!

@JorTurFer JorTurFer merged commit 68b6ca8 into kedacore:main Nov 6, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to get metrics data from Cloudwach when using more than one dimension
3 participants