Skip to content

fix(external_account): convert executable timeout_millis to seconds for Timeout.timeout - #604

Draft
torreypayne wants to merge 1 commit into
mainfrom
fix/pluggable-timeout-millis
Draft

torreypayne wants to merge 1 commit into
mainfrom
fix/pluggable-timeout-millis

Conversation

@torreypayne

@torreypayne torreypayne commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

PluggableAuthCredentials passed timeout_millis directly to Timeout.timeout, which expects seconds, causing a configured 30000 ms timeout to wait 30,000 seconds.

This converts @credential_source_executable_timeout_millis to seconds (timeout_millis / 1000.0) when invoking subprocess_with_timeout, and adds unit specs verifying that Timeout.timeout receives the converted seconds value for both configured and default timeouts.

Thanks to @OskarEichler for the report and proposed correction.

Fixes #595

…or Timeout.timeout

External-account executable configuration defines timeout_millis in
milliseconds, but PluggableAuthCredentials#subprocess_with_timeout
passes the value to Timeout.timeout, which expects seconds.

Convert @credential_source_executable_timeout_millis to seconds
(timeout_millis / 1000.0) when invoking subprocess_with_timeout, and
add specs verifying the converted timeout duration.

Fixes #595
@torreypayne
torreypayne force-pushed the fix/pluggable-timeout-millis branch from 440bc15 to 704442d Compare October 21, 2026 17:31
@torreypayne torreypayne changed the title fix(external_account): enforce executable timeout_millis in milliseconds fix(external_account): convert executable timeout_millis to seconds for Timeout.timeout Oct 21, 2026
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.

Executable credential timeout_millis is treated as seconds

1 participant