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

Fixed behaviour of PERCY_POSTINSTALL_BROWSER #1695

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

ninadbstack
Copy link
Contributor

@ninadbstack ninadbstack commented Aug 20, 2024

Context:
As per #1687 we are only looking at if PERCY_POSTINSTALL_BROWSER env var is set and not its value. Causing us to install browser even if PERCY_POSTINSTALL_BROWSER=false i.e. its set to false.

Updating check to confirm that the flag is set and value is not in 0 or false.

This still means something like PERCY_POSTINSTALL_BROWSER=no or PERCY_POSTINSTALL_BROWSER=abcdf or PERCY_POSTINSTALL_BROWSER=null would still trigger browser download but we are not trying to handle every possible condition and we want to be as backwards compatible as possible.

This PR does break backwards compatibility but in obviously correct cases [ which is more like a bug in older versions ]

@ninadbstack ninadbstack requested a review from a team as a code owner August 20, 2024 09:04
@ninadbstack ninadbstack added the 🐛 bug Something isn't working label Aug 20, 2024
@ninadbstack ninadbstack merged commit 5e9b413 into master Aug 20, 2024
36 checks passed
@ninadbstack ninadbstack deleted the iss-1687-fix-percy-postinstall-browser-flag branch August 20, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants