-
Notifications
You must be signed in to change notification settings - Fork 0
feat(orchestrator): add pipeline stage controllers #63
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,18 @@ const ( | |
| TopicRequest Topic = "request" | ||
| // TopicToBatch is where validated requests are published for batching. | ||
| TopicToBatch Topic = "to-batch" | ||
| // TopicBatched is where batched requests are published for speculation. | ||
| TopicBatched Topic = "batched" | ||
|
behinddwalls marked this conversation as resolved.
|
||
| // TopicBuild is where requests are published for builds. | ||
| TopicBuild Topic = "build" | ||
| // TopicBuildSignal is where build signals are published for processing. | ||
| TopicBuildSignal Topic = "build-signal" | ||
| // TopicToMerge is where requests are published for merging. | ||
| TopicToMerge Topic = "to-merge" | ||
| // TopicMergeSignal is where merge signals are published for processing. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from the description, not clear the difference from the previous one |
||
| TopicMergeSignal Topic = "merge-signal" | ||
| // TopicFinalize is where requests are published for finalization. | ||
| TopicFinalize Topic = "finalize" | ||
| ) | ||
|
|
||
| // String returns the topic name as a string. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| load("@rules_go//go:def.bzl", "go_library", "go_test") | ||
|
|
||
| go_library( | ||
| name = "batch", | ||
| srcs = ["batch.go"], | ||
| importpath = "github.com/uber/submitqueue/orchestrator/controller/batch", | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "//core/consumer", | ||
| "//entity", | ||
| "//entity/queue", | ||
| "@com_github_uber_go_tally_v4//:tally", | ||
| "@org_uber_go_zap//:zap", | ||
| ], | ||
| ) | ||
|
|
||
| go_test( | ||
| name = "batch_test", | ||
| srcs = ["batch_test.go"], | ||
| embed = [":batch"], | ||
| deps = [ | ||
| "//core/consumer", | ||
| "//entity", | ||
| "//entity/queue", | ||
| "//extension/queue/mock", | ||
| "@com_github_stretchr_testify//assert", | ||
| "@com_github_stretchr_testify//require", | ||
| "@com_github_uber_go_tally_v4//:tally", | ||
| "@org_uber_go_mock//gomock", | ||
| "@org_uber_go_zap//zaptest", | ||
| ], | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.