Skip to content

test(io): stop probing the EC2 metadata service in S3 tests - #897

Open
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:test-s3-disable-imds
Open

test(io): stop probing the EC2 metadata service in S3 tests#897
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:test-s3-disable-imds

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

Off EC2, every S3 client build in the test suite waits several seconds for the instance metadata probe to time out before falling back. No test in this binary wants those credentials, and the wait dominated the run: file_io_test goes from ~54s to 0.3s locally, in CI included.

Set without overwriting, so a run that does want instance credentials can still export `AWS_EC2_METADATA_DISABLED=false

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable for local run speedup. In the future, perhaps we can introduce a RAII approach to set and restore envs just like Arrow C++ does.

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.

2 participants