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(host): remove extra component_scaled events #1968

Merged
merged 3 commits into from Apr 25, 2024

Conversation

yerzham
Copy link
Contributor

@yerzham yerzham commented Apr 21, 2024

Signed-off-by: Yerzhan Zhamashev yerzhan.contribs@novel.systems

Problem

When a component is scaled to a max instances value of 0, we emit two component_scaled events that assert that it was scaled to zero.

Similarly, an extra component_scaled event with max_instances: 0 is emitted for wash scale and wash update.

Related Issues

#1888

Release Information

wasmCloud v1.0

Consumer Impact

Extra component_scaled event with max_instances: 0 is no longer emitted when a component is updated or scaled (and scaled to 0 i.e stopped)

Testing

All tests should work as expected

Manual Verification

Listening to wasmbus.evt.> on NATS while performing wash start, wash scale, wash update, and wash stop on a component.

@yerzham yerzham requested a review from a team as a code owner April 21, 2024 12:10
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

image

With some testing, looks great! I left two comments + requests to remove the TODO comments if they aren't tied to an open issue so we don't accumulate questions around the codebase without action items 😄

crates/host/src/wasmbus/mod.rs Outdated Show resolved Hide resolved
crates/host/src/wasmbus/mod.rs Outdated Show resolved Hide resolved
@brooksmtownsend
Copy link
Member

Thank you @yerzham ! It looks like the only other thing you need here is a DCO signoff, which you had in the first commit. The DCO failed action will give you the easy fix for this https://github.com/wasmCloud/wasmCloud/pull/1968/checks?check_run_id=24113309713

@yerzham
Copy link
Contributor Author

yerzham commented Apr 22, 2024

oops, will fix that

Signed-off-by: Yerzhan Zhamashev <yerzhan.contribs@novel.systems>
Signed-off-by: Yerzhan Zhamashev <yerzhan.contribs@novel.systems>
Signed-off-by: Yerzhan Zhamashev <yerzhan.contribs@novel.systems>
@brooksmtownsend
Copy link
Member

Should be good to cut this as a patch release 🚀

@brooksmtownsend brooksmtownsend merged commit bdb519f into wasmCloud:main Apr 25, 2024
49 checks passed
@yerzham yerzham deleted the fix/publish-component-scaled branch April 25, 2024 21:34
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.

None yet

2 participants