Skip to content

[rust] Change default TTL_drivers from 86400s (1 day) to 3600s (1 hour)#12394

Merged
diemol merged 2 commits intotrunkfrom
se_mgr_driver_ttl
Jul 21, 2023
Merged

[rust] Change default TTL_drivers from 86400s (1 day) to 3600s (1 hour)#12394
diemol merged 2 commits intotrunkfrom
se_mgr_driver_ttl

Conversation

@bonigarcia
Copy link
Copy Markdown
Member

Description

This PR changes the default TTL_drivers from 86400 seconds (i.e., 1 day) to 3600 seconds (i.e., 1 hour).

Motivation and Context

The recent advent of the CfT endpoints has revealed that the rate of change of the recommended chromedriver versions changes more quickly than it used to. To avoid problems related to the cached resolved chromedriver versions, I recommend lowering the default value to TTL_drivers. I propose to use 1 hour for this value.

Also, I do not recommend disabling this TLL totally (it would be TTL_drivers to 0), but doing that way, for a test suite, there will be a network request to discover the chromedriver, each time a ChromeDriver object is created. As a result, the overall performance would be worse. I believe 1 hour is a good balance between performance and update.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@bonigarcia bonigarcia added the C-rust Rust code is mostly Selenium Manager label Jul 21, 2023
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Patch and project coverage have no change.

Comparison is base (b22d08d) 57.28% compared to head (297a3d0) 57.28%.

❗ Current head 297a3d0 differs from pull request most recent head eccc20f. Consider uploading reports for the commit eccc20f to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #12394   +/-   ##
=======================================
  Coverage   57.28%   57.28%           
=======================================
  Files          86       86           
  Lines        5333     5333           
  Branches      193      193           
=======================================
  Hits         3055     3055           
  Misses       2085     2085           
  Partials      193      193           
Impacted Files Coverage Δ
py/selenium/webdriver/support/wait.py 70.58% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-rust Rust code is mostly Selenium Manager

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants