Skip to content
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

Adding check for correct SDK for percy product #1522

Merged
merged 4 commits into from
Feb 21, 2024
Merged

Conversation

rishigupta1599
Copy link
Contributor

@rishigupta1599 rishigupta1599 commented Feb 17, 2024

Added validation for the case where the correct token and cli flow is used but sdk used is wrong.
For exp: -> App Percy Token is used and cli server is also started using app:exec which will create correct App Percy Build but as percy_screenshot is common in both App Percy and Percy on Automate it can be possible to trigger percy_screenshot using Automate SDK which should not be the case ideally.

We are relying on build type and the endpoint called to determine which SDK would have been used and in which build

@rishigupta1599 rishigupta1599 marked this pull request as ready for review February 19, 2024 05:37
@rishigupta1599 rishigupta1599 requested a review from a team as a code owner February 19, 2024 05:37
@rishigupta1599 rishigupta1599 requested review from prklm10, pankaj443, a team, yashdsaraf and chinmay-browserstack and removed request for a team February 19, 2024 05:37
@chinmay-browserstack
Copy link
Contributor

So we already have checks in all SDK's if command called and projectType is same. if it's not same it should throw error. so this might not be required.

@rishigupta1599 rishigupta1599 merged commit 4b8480c into master Feb 21, 2024
36 checks passed
@rishigupta1599 rishigupta1599 deleted the PPLT-2770 branch February 21, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants