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

Merged
merged 5 commits into from
Jun 17, 2025

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)

07souravkunda
07souravkunda previously approved these changes Jun 10, 2025
yashdsaraf
yashdsaraf previously approved these changes Jun 17, 2025
@amaanbs amaanbs dismissed stale reviews from yashdsaraf and 07souravkunda via 7d49dfb June 17, 2025 14:21
@amaanbs amaanbs force-pushed the Change_Binary_Download_Distribution branch from 7d49dfb to f668027 Compare June 17, 2025 14:33
@yashdsaraf yashdsaraf merged commit 35afb53 into master Jun 17, 2025
5 checks passed
@yashdsaraf yashdsaraf deleted the Change_Binary_Download_Distribution branch June 17, 2025 15:05
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