Repository navigation
feat(cli/exp): add app testing to scaletest workspace-traffic - #11633
Merged
Merged
Conversation
mafredri
force-pushed
the
mafredri/scaletest-workspace-app-traffic
branch
2 times, most recently
from
January 16, 2024 12:50
96f25c3 to
748843c
Compare
mafredri
force-pushed
the
mafredri/scaletest-workspace-app-traffic
branch
from
January 16, 2024 12:51
748843c to
ef5cb9a
Compare
mtojek
reviewed
Jan 18, 2024
mtojek
left a comment
Member
There was a problem hiding this comment.
I understand the idea of app scaletests using an echo WebSocket server, but I can see it only in tests. Do you plan to deploy a similar solution in prod?
Member
Author
The PR message contains an example for deploying it in prod, this is already added to a template in |
mafredri
marked this pull request as ready for review
January 19, 2024 11:25
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This implementation is quite specific to our usage and only supports app communication over WebSocket. An example command/workspace template could look like this:
coder exp scaletest workspace-traffic --template scaletest-ws --app wsec --bytes-per-tick $((1024*100)) --tick-interval 1ms --job-timeout 10sCloses #11175 by relaxing the read/write assertion in tests, the exact byte count is unimportant since our goal is to produce load.