Skip to content

feat: added remote connection options#63

Merged
petruki merged 1 commit into
masterfrom
staging
Jul 7, 2026
Merged

feat: added remote connection options#63
petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Jul 7, 2026

Copy link
Copy Markdown
Member

This pull request introduces new configuration options for remote HTTP connection limits, updates the default values for these options, and adds corresponding tests to ensure correct behavior. It also updates the package version to 1.2.0 and improves test specificity for raised exceptions.

Remote connection configuration improvements:

  • Added new options to RemoteOptions (max_keepalive_connections, max_connections, keepalive_expiry) with default values, allowing users to control HTTP connection pooling and limits. [1] [2]
  • Updated the Remote class to use these new options when building the HTTP client, and ensured the client is rebuilt when these options change. [1] [2] [3]

Documentation updates:

  • Updated the README.md to document the new remote connection options and their default values. [1] [2]

Testing improvements:

  • Added tests to verify that the remote client uses the default connection limit options and is rebuilt when these options change.
  • Improved test assertions to check for specific exception types (RemoteCriteriaError) instead of generic exceptions. [1] [2] [3]

Version updates:

  • Bumped the package version to 1.2.0 in switcher_client/version.py, sonar-project.properties, and related workflow/documentation files. [1] [2] [3]

Workflow and build fixes:

  • Fixed a typo in the conda build command in the release workflow (conda-build instead of conda build).

@petruki petruki added this to the v1.2.0 milestone Jul 7, 2026
@petruki petruki self-assigned this Jul 7, 2026
@petruki petruki added enhancement New feature or request ai-generated Indicates that AI tools were used to generate this change labels Jul 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

@petruki petruki merged commit aaf7b76 into master Jul 7, 2026
15 checks passed
@petruki petruki deleted the staging branch July 7, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Indicates that AI tools were used to generate this change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant