Skip to content

Change Binary Download Distribution #57

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

amaanbs
Copy link
Collaborator

@amaanbs amaanbs commented Jun 6, 2025

No description provided.

@amaanbs amaanbs requested a review from a team as a code owner June 6, 2025 01:45
@07souravkunda 07souravkunda requested a review from Copilot June 10, 2025 13:11
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the distribution method for the BrowserStack Local binary, including changes to the binary download URL and retry logic while adding additional error context. Key changes include:

  • Adding a new fetch_source_url method in LocalBinary to dynamically determine the binary distribution endpoint.
  • Changing the LocalBinary constructor to require a key (and optionally an error object) for better error context handling.
  • Modifying the LocalBinary usage in local.py to retry the binary retrieval on failure.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
browserstack/local_binary.py Updates to the binary download logic, endpoint fetching, and improved error messaging.
browserstack/local.py Updated initialization of LocalBinary with retry logic based on exception handling.
Comments suppressed due to low confidence (1)

browserstack/local.py:76

  • [nitpick] The variable name 'l' is too terse and may reduce code readability; consider renaming it to 'local_binary' for clarity.
l = LocalBinary(self.key)

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.

2 participants