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

fix comparing stream annotations and improve unit test #2820

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Dec 17, 2024

The annotation comparison for streams was not ready yet, for comparing new annotations. Only the current ones were copied to desiredAnnotations. This was not caught because unit test compared either different streams with different specs, and we did not compare the full reason string. By extending the latter, tests started failing.

After fixing the annotation comparison the stream generator function started failing because the current code did not set the resource annotation when they were missing before. Only when a value could be found for comparison (which is impossible when setting the annotation does not work, of course 🤪 )

I refactored the code and created a new pass by reference function setResourceAnnotation so that the FES generation code remains readable.

@FxKu FxKu added the bugfix label Dec 17, 2024
@FxKu FxKu added this to the 1.14.0 milestone Dec 17, 2024
@idanovinda
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Dec 18, 2024

👍

@FxKu FxKu merged commit 8cc6796 into master Dec 18, 2024
10 checks passed
@FxKu FxKu deleted the fes-scaling-fix branch December 18, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants