vod: vodloadtester (DirectUploads, ResumableUploads, Import)#197
Open
gioelecerati wants to merge 25 commits intomasterfrom
Open
vod: vodloadtester (DirectUploads, ResumableUploads, Import)#197gioelecerati wants to merge 25 commits intomasterfrom
gioelecerati wants to merge 25 commits intomasterfrom
Conversation
Member
Author
|
Fixes livepeer/studio#1211 |
victorges
reviewed
Nov 2, 2022
| StartDelayDuration time.Duration | ||
| } | ||
|
|
||
| type vodLoadTester struct { |
Contributor
There was a problem hiding this comment.
Could we move this struct to its own package under internal/app/vodloadtester? That's the pattern we've been following in this project, and I think it's indeed cleaner to separate the business logic of the load tester from the code that only deals with the "command line interface" parsing/serializing of results etc.
victorges
reviewed
Nov 3, 2022
Contributor
victorges
left a comment
There was a problem hiding this comment.
sorry had to send a partial review tuesday on a rush. coming back to this now
victorges
reviewed
Nov 3, 2022
Contributor
victorges
left a comment
There was a problem hiding this comment.
Overall LGTM, but the concurrency logic needs some fixes
cmd/vodloadtester/vodloadtester.go
Outdated
| return err | ||
| } | ||
|
|
||
| func (vt *vodLoadTester) checkTaskProcessing(taskPollDuration time.Duration, processingTask api.TaskOnlyId) error { |
Contributor
There was a problem hiding this comment.
Feel like we have this function repeated somewhere else 🤔
victorges
reviewed
Dec 4, 2022
cmd/vodloadtester/vodloadtester.go
Outdated
|
|
||
| } | ||
|
|
||
| func (vt *vodLoadTester) importFromJSON(jsonFile string, runnerInfo string) { |
… at the end of task processing to avoid panics on api fail
… files from folder
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Notion doc for usage:
https://www.notion.so/livepeer/How-to-run-a-VOD-load-test-using-vodloadtester-0b3db771393a46a384ce7e05b614150a#4fa99de44d34404fb134c515c48faf93
Example output: