-
Notifications
You must be signed in to change notification settings - Fork 129
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
test: add load tests #93
Merged
Merged
Conversation
This file contains 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
sinedied
requested changes
Oct 27, 2023
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.
LGTM besides the 2 small comments
Thanks for the review @sinedied! I've addressed the 2 comments. |
sinedied
approved these changes
Oct 27, 2023
shibbas
force-pushed
the
feature/load-tests
branch
from
October 27, 2023 15:29
c509cce
to
c283511
Compare
anfibiacreativa
approved these changes
Oct 27, 2023
anfibiacreativa
pushed a commit
that referenced
this pull request
Oct 30, 2023
* setup env for k6 * test: load tests to package.json * test: add tests * test: add load test * test: granualize metrics * test: have a standard workload * test: load 50 users 1 request/sec/user * test: log the response failures * test: randomize the iteration interval * test: adjust the load scenario * test: doc update * test: move globals to shared esconfig
anfibiacreativa
added a commit
that referenced
this pull request
Oct 31, 2023
* chore: update followup questions preliminary * chore: update styles * chore: restyle followup questions * chore: fix parser for follow up questions (before TC) * chore: fix bug and adapt styles * chore: add margin to citations * chore: remove commented regex * fix: remove unnecessary regex and replace * chore: update global config * chore: add question icon * chore: update styles * chore: update comments to reflect decisions * chore: refine cosmetic styles * chore: replace icons with iconcloud set * fix: fix minor bug with index replacement * test: add E2E playwright tests for web app (#89) * added initial test support for the playwright tests * add snapshot and thought process test along with default network response * playwright config update * ux update * test screenshot updates * update tests * no stream har files * embed the body in the har files * stream har file updated * update the screenshot for response formatting * add screenshots for firefox and webkit tests * fix the testid attribute * remove playwright workflow for now * add the github action for running local tests and fix a broken test * only upload artifacts on failure * ensure playwright browsers are installed in devcontainer * move the tests to a e2e * update types * keep playwright tests separate * cleanup tests * docs: update readme with auth info * test: add load tests (#93) * setup env for k6 * test: load tests to package.json * test: add tests * test: add load test * test: granualize metrics * test: have a standard workload * test: load 50 users 1 request/sec/user * test: log the response failures * test: randomize the iteration interval * test: adjust the load scenario * test: doc update * test: move globals to shared esconfig * test: add playwright test for ask interaction (#94) * ci: disable playwright for demo * ci: revert previous commit and disable from UI --------- Co-authored-by: shibbas <[email protected]>
anfibiacreativa
added a commit
that referenced
this pull request
Oct 31, 2023
* chore: update followup questions preliminary * chore: update styles * chore: restyle followup questions * chore: fix parser for follow up questions (before TC) * chore: fix bug and adapt styles * chore: add margin to citations * chore: remove commented regex * fix: remove unnecessary regex and replace * chore: update global config * chore: add question icon * chore: update styles * chore: update comments to reflect decisions * chore: refine cosmetic styles * chore: replace icons with iconcloud set * fix: fix minor bug with index replacement * test: add E2E playwright tests for web app (#89) * added initial test support for the playwright tests * add snapshot and thought process test along with default network response * playwright config update * ux update * test screenshot updates * update tests * no stream har files * embed the body in the har files * stream har file updated * update the screenshot for response formatting * add screenshots for firefox and webkit tests * fix the testid attribute * remove playwright workflow for now * add the github action for running local tests and fix a broken test * only upload artifacts on failure * ensure playwright browsers are installed in devcontainer * move the tests to a e2e * update types * keep playwright tests separate * cleanup tests * docs: update readme with auth info * test: add load tests (#93) * setup env for k6 * test: load tests to package.json * test: add tests * test: add load test * test: granualize metrics * test: have a standard workload * test: load 50 users 1 request/sec/user * test: log the response failures * test: randomize the iteration interval * test: adjust the load scenario * test: doc update * test: move globals to shared esconfig * test: add playwright test for ask interaction (#94) * ci: disable playwright for demo * ci: revert previous commit and disable from UI --------- Co-authored-by: shibbas <[email protected]>
Closes #13 |
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.
Purpose
Uses k6 to perform load testing for the start page as well as the /chat endpoint
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Set the following environment variables to point to the deployment.
Once set, you can now run load tests using the following command: