-
Notifications
You must be signed in to change notification settings - Fork 198
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
Run k6 against local Nuxt on PRs #4924
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
74d1dd6
Run k6 against local Nuxt on PRs
sarayourfriend c139072
Use sample of real query terms
sarayourfriend b489788
Write text summary during execution
sarayourfriend 011d738
Use talkback to prevent throttling of requests in CI
sarayourfriend c19150f
Make the tapes smaller (#4985)
obulat 315efb2
Try fix just recipe bad substitution
sarayourfriend b5cadeb
Use locales available in test for load testing
sarayourfriend 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
There are no files selected for viewing
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
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
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
91 changes: 91 additions & 0 deletions
91
...+Quixote+de+la+Mancha&license=by&extension=mp3&source=jamendo&peaks=true_keep-alive.json5
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
meta: { | ||
createdAt: '2024-09-20T02:47:13.176Z', | ||
host: 'https://api.openverse.org', | ||
resHumanReadable: true, | ||
resUncompressed: true, | ||
}, | ||
req: { | ||
headers: { | ||
connection: 'keep-alive', | ||
}, | ||
url: '/v1/audio/?q=Dom+Quixote+de+la+Mancha&license=by&extension=mp3&source=jamendo&peaks=true', | ||
method: 'GET', | ||
body: '', | ||
}, | ||
res: { | ||
status: 200, | ||
headers: { | ||
date: [ | ||
'Fri, 20 Sep 2024 02:47:13 GMT', | ||
], | ||
'content-type': [ | ||
'application/json', | ||
], | ||
'transfer-encoding': [ | ||
'chunked', | ||
], | ||
connection: [ | ||
'keep-alive', | ||
], | ||
vary: [ | ||
'Accept, Authorization, origin, Accept-Encoding', | ||
], | ||
allow: [ | ||
'GET, HEAD, OPTIONS', | ||
], | ||
'x-ratelimit-limit-anon_burst': [ | ||
'20/min', | ||
], | ||
'x-ratelimit-available-anon_burst': [ | ||
'17', | ||
], | ||
'x-ratelimit-limit-anon_sustained': [ | ||
'200/day', | ||
], | ||
'x-ratelimit-available-anon_sustained': [ | ||
'166', | ||
], | ||
'x-frame-options': [ | ||
'DENY', | ||
], | ||
'x-content-type-options': [ | ||
'nosniff', | ||
], | ||
'referrer-policy': [ | ||
'same-origin', | ||
], | ||
'cross-origin-opener-policy': [ | ||
'same-origin', | ||
], | ||
'x-request-id': [ | ||
'f03692b6-0328-4603-9737-771e9100765e', | ||
], | ||
'cf-cache-status': [ | ||
'HIT', | ||
], | ||
age: [ | ||
'1144', | ||
], | ||
'last-modified': [ | ||
'Fri, 20 Sep 2024 02:28:09 GMT', | ||
], | ||
server: [ | ||
'cloudflare', | ||
], | ||
'cf-ray': [ | ||
'8c5e7d536b31274b-ADL', | ||
], | ||
'content-encoding': [ | ||
'br', | ||
], | ||
}, | ||
body: { | ||
result_count: 0, | ||
page_count: 0, | ||
page_size: 20, | ||
page: 1, | ||
results: [], | ||
}, | ||
}, | ||
} |
91 changes: 91 additions & 0 deletions
91
frontend/test/tapes/search/audio/q=Dom+Quixote+de+la+Mancha&peaks=true_keep-alive.json5
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
meta: { | ||
createdAt: '2024-09-20T02:47:12.052Z', | ||
host: 'https://api.openverse.org', | ||
resHumanReadable: true, | ||
resUncompressed: true, | ||
}, | ||
req: { | ||
headers: { | ||
connection: 'keep-alive', | ||
}, | ||
url: '/v1/audio/?q=Dom+Quixote+de+la+Mancha&peaks=true', | ||
method: 'GET', | ||
body: '', | ||
}, | ||
res: { | ||
status: 200, | ||
headers: { | ||
date: [ | ||
'Fri, 20 Sep 2024 02:47:12 GMT', | ||
], | ||
'content-type': [ | ||
'application/json', | ||
], | ||
'transfer-encoding': [ | ||
'chunked', | ||
], | ||
connection: [ | ||
'keep-alive', | ||
], | ||
vary: [ | ||
'Accept, Authorization, origin, Accept-Encoding', | ||
], | ||
allow: [ | ||
'GET, HEAD, OPTIONS', | ||
], | ||
'x-ratelimit-limit-anon_burst': [ | ||
'20/min', | ||
], | ||
'x-ratelimit-available-anon_burst': [ | ||
'11', | ||
], | ||
'x-ratelimit-limit-anon_sustained': [ | ||
'200/day', | ||
], | ||
'x-ratelimit-available-anon_sustained': [ | ||
'6', | ||
], | ||
'x-frame-options': [ | ||
'DENY', | ||
], | ||
'x-content-type-options': [ | ||
'nosniff', | ||
], | ||
'referrer-policy': [ | ||
'same-origin', | ||
], | ||
'cross-origin-opener-policy': [ | ||
'same-origin', | ||
], | ||
'x-request-id': [ | ||
'43ea964c-6a59-4abb-8b12-8110e850d8fc', | ||
], | ||
'cf-cache-status': [ | ||
'HIT', | ||
], | ||
age: [ | ||
'1143', | ||
], | ||
'last-modified': [ | ||
'Fri, 20 Sep 2024 02:28:09 GMT', | ||
], | ||
server: [ | ||
'cloudflare', | ||
], | ||
'cf-ray': [ | ||
'8c5e7d4c599b274b-ADL', | ||
], | ||
'content-encoding': [ | ||
'br', | ||
], | ||
}, | ||
body: { | ||
result_count: 0, | ||
page_count: 0, | ||
page_size: 20, | ||
page: 1, | ||
results: [], | ||
}, | ||
}, | ||
} |
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.
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.
Maybe the load testing could be split to a separate action?
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.
Potentially, and it's something I plan to look into when adding the job to run k6 against staging in the next PR after this one. The steps to run k6 on a local environment are so different than running it against a remote environment, I wanted to make sure I didn't abstract too early 🙂