-
Notifications
You must be signed in to change notification settings - Fork 256
CLDSRV-918: raise SDK request timeout in functional test client #6187
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
Draft
tcarmet
wants to merge
2
commits into
development/9.3
Choose a base branch
from
bugfix/CLDSRV-918-raise-test-request-timeout
base: development/9.3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+537
−59
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,15 +22,23 @@ const DEFAULT_GLOBAL_OPTIONS = { | |
| httpOptions, | ||
| }; | ||
|
|
||
| // The SDK v2 config set no timeout, so tests ran with the v2 default of | ||
| // 120s; the v3 migration introduced a 5s timeout that heavy server-side | ||
| // operations (multi-megabyte UploadPartCopy, 1000-key batch deletes) exceed | ||
| // under CI load, as the server sends no response bytes until they complete. | ||
| // 30s stays below mocha's 40s global timeout so a genuine hang still | ||
| // surfaces as the SDK TimeoutError rather than a generic mocha timeout. | ||
|
Comment on lines
+25
to
+30
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would argue that when we read this comment in the future, we will not care about the history (migration changed it to 5s), but only about why we chose 30s as the value. |
||
| const REQUEST_TIMEOUT = 30000; | ||
|
|
||
| const DEFAULT_MEM_OPTIONS = { | ||
| endpoint: `${transport}://127.0.0.1:8000`, | ||
| port: 8000, | ||
| forcePathStyle: true, | ||
| region: 'us-east-1', | ||
| region: 'us-east-1', | ||
| maxAttempts: 3, | ||
| requestHandler: new NodeHttpHandler({ | ||
| connectionTimeout: 5000, | ||
| requestTimeout: 5000, | ||
| requestTimeout: REQUEST_TIMEOUT, | ||
| httpAgent: new (ssl ? https : http).Agent({ | ||
| maxSockets: 200, | ||
| keepAlive: true, | ||
|
|
@@ -44,7 +52,7 @@ const DEFAULT_AWS_OPTIONS = { | |
| maxAttempts: 3, | ||
| requestHandler: new NodeHttpHandler({ | ||
| connectionTimeout: 5000, | ||
| socketTimeout: 5000, | ||
| requestTimeout: REQUEST_TIMEOUT, | ||
| httpAgent: new https.Agent({ | ||
| maxSockets: 200, | ||
| keepAlive: true, | ||
|
|
@@ -64,9 +72,7 @@ function _getMemCredentials(profile) { | |
| function _getMemConfig(profile, config) { | ||
| const credentials = _getMemCredentials(profile); | ||
|
|
||
| const memConfig = Object.assign({} | ||
| , DEFAULT_GLOBAL_OPTIONS, DEFAULT_MEM_OPTIONS | ||
| , { credentials }, config); | ||
| const memConfig = Object.assign({}, DEFAULT_GLOBAL_OPTIONS, DEFAULT_MEM_OPTIONS, { credentials }, config); | ||
|
|
||
| if (process.env.IP) { | ||
| memConfig.endpoint = `${transport}://${process.env.IP}:8000`; | ||
|
|
@@ -78,9 +84,7 @@ function _getMemConfig(profile, config) { | |
| function _getAwsConfig(profile, config) { | ||
| const credentials = getAwsCredentials(profile); | ||
|
|
||
| const awsConfig = Object.assign({} | ||
| , DEFAULT_GLOBAL_OPTIONS, DEFAULT_AWS_OPTIONS | ||
| , { credentials }, config); | ||
| const awsConfig = Object.assign({}, DEFAULT_GLOBAL_OPTIONS, DEFAULT_AWS_OPTIONS, { credentials }, config); | ||
|
|
||
| return awsConfig; | ||
| } | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arsenal is pinned to a commit hash instead of a tag. Git-based dependencies should be pinned to a released tag. Tags 8.4.5 and 8.4.6 already exist — if the ARSN-594 fix is included in one of them, pin to that tag instead.
— Claude Code