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

Validate that all node IDs are unique #191

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

dbwiddis
Copy link
Member

Description

Adds a validation check that all workflow nodes have a unique ID.

Issues Resolved

Fixes #189

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

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

LGTM thanks Dan!

Copy link
Member

@amitgalitz amitgalitz left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@dbwiddis dbwiddis merged commit 0a30431 into opensearch-project:main Nov 22, 2023
19 checks passed
@dbwiddis dbwiddis deleted the dupe-ids branch November 22, 2023 22:14
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 22, 2023
* Validate that all node IDs are unique

Signed-off-by: Daniel Widdis <[email protected]>

* Use node map instead of a throwaway set

Signed-off-by: Daniel Widdis <[email protected]>

* Remove unneeded diff argument since ignoreExitValue is used

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 0a30431)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshpalis pushed a commit that referenced this pull request Nov 22, 2023
Validate that all node IDs are unique (#191)

* Validate that all node IDs are unique



* Use node map instead of a throwaway set



* Remove unneeded diff argument since ignoreExitValue is used



---------


(cherry picked from commit 0a30431)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot
Copy link

The backport to feature/agent_framework failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/flow-framework/backport-feature/agent_framework feature/agent_framework
# Navigate to the new working tree
pushd ../.worktrees/flow-framework/backport-feature/agent_framework
# Create a new branch
git switch --create backport/backport-191-to-feature/agent_framework
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0a30431e11dc538d3ff4315bdc5f41f70945f058
# Push it to GitHub
git push --set-upstream origin backport/backport-191-to-feature/agent_framework
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/flow-framework/backport-feature/agent_framework

Then, create a pull request where the base branch is feature/agent_framework and the compare/head branch is backport/backport-191-to-feature/agent_framework.

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.

[BUG] Validate that all step IDs are unique
3 participants