-
Notifications
You must be signed in to change notification settings - Fork 86
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
refactor: migate scenario tests to models pacakge #4139
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
b42319a
to
669cc99
Compare
8b6af33
to
ea2792f
Compare
testCase := scenario.WasmHelloWorld(suite.T()) | ||
testCase.Stack = &scenario.StackConfig{ | ||
DevStackOptions: &devstack.DevStackOptions{ | ||
NumberOfHybridNodes: 1, | ||
NumberOfComputeOnlyNodes: 2, | ||
}, | ||
} | ||
testCase.Deal = model.Deal{Concurrency: 2} | ||
testCase.Job.Count = 2 | ||
testCase.Job.Task().Publisher = publisher_local.NewSpecConfig() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we need to set a publisher?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because this tests expects the results of the job to be downloaded and checked, and a publisher is required to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've modified this slightly such that the testCase being used contains a publisher already
pkg/test/executor/test_runner.go
Outdated
// TODO(forrest) [fixme]: if we are allocating resources based on name, probably need more randomness | ||
execution.AllocateResources(job.Task().Name, models.Resources{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task name but within job. if we randomize job ids, then these can be fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this test case the jobID is random. But Task.Name
doesn't take into account the job ID - its a field users provide. I guess if the mapping of execution to task is 1-1 then we need not worry.
closes #4140
part of #3832