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

IWF-363: Support dynamic internal channel by prefix MVP version #47

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

longquanzheng
Copy link
Contributor

No description provided.

@longquanzheng longquanzheng changed the title IWF-363: Support dynamic internal channel by prefix by MVP IWF-363: Support dynamic internal channel by prefix MVP version Nov 21, 2024
Comment on lines +51 to +53
communication.publish_to_internal_channel(
test_channel_name_prefix + "abc", "str-value-for-prefix"
)

Choose a reason for hiding this comment

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

this confused me a bit, but it looks like we're using this WaitAnyWithPublishState state to write to the prefix internal channel and nothing else happens in WaitAnyWithPublishState for the prefix internal channel? But our WaitAllThenPublishState will see the write to the test-internal-channel-prefix-abc channel and have it's for_all_command_completed check satisfied?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right on the test workflow behavior.
This test is a bit crazy to test multiple things together. The initState basically goes to two states in parallel: WaitAnyWithPublishState and WaitAllThenPublishState.
WaitAllThenPublishState will start with waiting, and publishing on execute. WaitAnyWithPublishState will start with publishing+waiting, and then execute.

that way we can test the publshing on both waitUntil/execute, any/all waitingTypes etc.

iwf/command_results.py Outdated Show resolved Hide resolved
Co-authored-by: Samuel Caçador <[email protected]>
@longquanzheng longquanzheng merged commit 3e1938c into IWF-356 Nov 22, 2024
2 checks passed
longquanzheng added a commit that referenced this pull request Nov 22, 2024
* IWF-356: Add atomic checking decision for channels

* DONE

* DONE

* DONE

* DONE

* Fix mypy

* Fix bug

* fix env

* fix import

* IWF-363: Support dynamic internal channel by prefix MVP version (#47)

* Support dynamic internal channel by prefix

* fix ignore

* Update iwf/command_results.py

Co-authored-by: Samuel Caçador <[email protected]>

---------

Co-authored-by: Samuel Caçador <[email protected]>

---------

Co-authored-by: Samuel Caçador <[email protected]>
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.

3 participants