-
Notifications
You must be signed in to change notification settings - Fork 45
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
Throttle Logs Endpoint from CLI #1734
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
amandeepsingh333
force-pushed
the
PPLT_3337
branch
2 times, most recently
from
September 19, 2024 10:57
fa84987
to
5655d4f
Compare
amandeepsingh333
force-pushed
the
PPLT_3337
branch
from
September 20, 2024 04:16
7c3bb83
to
553b416
Compare
packages/core/test/percy.test.js
Outdated
])); | ||
}); | ||
|
||
it('should not call getErrorAnalysis after exceeding the rate limit', async () => { |
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.
can you update this case for checking multiple logs are not getting printed if we cross threshold
amandeepsingh333
force-pushed
the
PPLT_3337
branch
2 times, most recently
from
September 20, 2024 09:23
ec44d8b
to
8303588
Compare
amandeepsingh333
force-pushed
the
PPLT_3337
branch
from
September 20, 2024 09:53
8303588
to
1e1e6fc
Compare
chinmay-browserstack
approved these changes
Sep 20, 2024
ninadbstack
approved these changes
Sep 23, 2024
prklm10
approved these changes
Sep 23, 2024
Amit3200
pushed a commit
that referenced
this pull request
Sep 29, 2024
chinmay-browserstack
pushed a commit
that referenced
this pull request
Sep 30, 2024
* Fixed cookies parsing bug (#1727) * v1.29.4-beta.3 (#1729) * adding secure flag for cookies that starts with __Secure (#1730) * releasing v1.29.4-beta.4 (#1731) * updating path-to-regexp to 6.3.0 where the vulnerabilities are fixed (#1733) * releasing v1.29.4-beta.5 (#1735) * ⬆️ Bump micromatch from 4.0.7 to 4.0.8 (#1706) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.7...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump @babel/preset-env from 7.19.4 to 7.25.4 (#1704) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.19.4 to 7.25.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.25.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump axios from 1.6.7 to 1.7.7 (#1737) Bumps [axios](https://github.com/axios/axios) from 1.6.7 to 1.7.7. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.6.7...v1.7.7) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump body-parser from 1.19.0 to 1.20.3 (#1720) Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.19.0 to 1.20.3. - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.19.0...1.20.3) --- updated-dependencies: - dependency-name: body-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump eslint-plugin-import from 2.29.1 to 2.30.0 (#1740) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.29.1 to 2.30.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.29.1...v2.30.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️👷 Bump github/codeql-action from 3.25.10 to 3.26.8 (#1741) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.10 to 3.26.8. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@23acc5c...294a9d9) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: packages/core/package.json to reduce vulnerabilities (#1732) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MICROMATCH-6838728 Co-authored-by: snyk-bot <snyk-bot@snyk.io> * ⬆️ Bump tsd from 0.28.1 to 0.31.2 (#1738) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.28.1 to 0.31.2. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](tsdjs/tsd@v0.28.1...v0.31.2) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Throttle Logs Endpoint from CLI (#1734) * v1.29.4-beta.6 (#1742) * Multi DOM Capture JS-utils --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ninadbstack <60422475+ninadbstack@users.noreply.github.com> Co-authored-by: Pradum Kumar <pradumraj360@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AgnellusX1 <43168803+AgnellusX1@users.noreply.github.com> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Amandeep singh <amandeep@browserstack.com>
chinmay-browserstack
added a commit
that referenced
this pull request
Sep 30, 2024
…in single asset discovery phase (#1728) * [Defer Uploads v2] Added support for handling multiple root resource in single asset discovery phase * update domSnapshot structure in config + reload page in case on multidom * Fix test * Added tests for widths endpoint + multiple root resources * add multi dom case * Added case for percyCSS with multiple root resource * Remove extra code and improve coverage * Fix coverage * Coverage resolved * Addressed comments * Minor improvement * Addressed comments * wait for page navigation while force reloading * Updated test to have different resource in different doms * Add logging for test browser userAgent * Fix tests * Change userAgent condition for responsiveSnapshotCapture * Added test endpoint for changing widths * Added waitForResize script * Add flag for changing config in test api * Added tests for waitForResize * Added defer uploads option in test config endpoint * Responsive DOM SDK Utils (#1746) * Fixed cookies parsing bug (#1727) * v1.29.4-beta.3 (#1729) * adding secure flag for cookies that starts with __Secure (#1730) * releasing v1.29.4-beta.4 (#1731) * updating path-to-regexp to 6.3.0 where the vulnerabilities are fixed (#1733) * releasing v1.29.4-beta.5 (#1735) * ⬆️ Bump micromatch from 4.0.7 to 4.0.8 (#1706) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.7...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump @babel/preset-env from 7.19.4 to 7.25.4 (#1704) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.19.4 to 7.25.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.25.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump axios from 1.6.7 to 1.7.7 (#1737) Bumps [axios](https://github.com/axios/axios) from 1.6.7 to 1.7.7. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.6.7...v1.7.7) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump body-parser from 1.19.0 to 1.20.3 (#1720) Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.19.0 to 1.20.3. - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.19.0...1.20.3) --- updated-dependencies: - dependency-name: body-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️ Bump eslint-plugin-import from 2.29.1 to 2.30.0 (#1740) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.29.1 to 2.30.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.29.1...v2.30.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ⬆️👷 Bump github/codeql-action from 3.25.10 to 3.26.8 (#1741) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.10 to 3.26.8. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@23acc5c...294a9d9) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: packages/core/package.json to reduce vulnerabilities (#1732) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MICROMATCH-6838728 Co-authored-by: snyk-bot <snyk-bot@snyk.io> * ⬆️ Bump tsd from 0.28.1 to 0.31.2 (#1738) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.28.1 to 0.31.2. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](tsdjs/tsd@v0.28.1...v0.31.2) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Throttle Logs Endpoint from CLI (#1734) * v1.29.4-beta.6 (#1742) * Multi DOM Capture JS-utils --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ninadbstack <60422475+ninadbstack@users.noreply.github.com> Co-authored-by: Pradum Kumar <pradumraj360@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AgnellusX1 <43168803+AgnellusX1@users.noreply.github.com> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Amandeep singh <amandeep@browserstack.com> * Handle case when cookie is passed as object from sdk * Remove unnecessary fields from cookies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Amit Singh Sansoya <tusharamit@yahoo.com> Co-authored-by: ninadbstack <60422475+ninadbstack@users.noreply.github.com> Co-authored-by: Pradum Kumar <pradumraj360@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AgnellusX1 <43168803+AgnellusX1@users.noreply.github.com> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Amandeep singh <amandeep@browserstack.com>
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.
problem :
if large number(500) of snapshots are failing or have some issues for the customer then we are causing Rate limiting to get triggered on
api/v1/suggestions/from_logs
as we fetch suggestions for all snapshots. This triggers alert on our side.approach:
To tackle this we have CLI in a way that we dont ask for more than 10 suggestions per build. We are basically limiting the maximum suggestions we can suggest per build. The idea is that if all snapshots are getting some suggestions in build they would be probably same.
implementation:
we have stored a counter of suggestionsCalls and will stop the call to end the count is > 10.