Skip to content

GH-55356: [C++] Compare mtime at second precision in GetFileInfoSelector test - #55433

Merged
kou merged 4 commits into
apache:mainfrom
tadeja:GetFileInfoSelector-ms
Nov 8, 2026
Merged

kou merged 4 commits into
apache:mainfrom
tadeja:GetFileInfoSelector-ms

Conversation

@tadeja

@tadeja tadeja commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

#55356 - TestS3FSGeneric.GetFileInfoSelector fails with AWS SDK 1.11.900 and newer.
See aws/aws-sdk-cpp#3934
ListObjectsV2 results keep milliseconds while HeadObject's Last-Modified header only has seconds.

What changes are included in this PR?

Floor the listing mtime from milliseconds to seconds in GetFileInfoSelector test when the single file mtime has only seconds.

Are these changes tested?

Locally on macOS arm64 with AWS SDK 1.11.900 and MinIO.

Are there any user-facing changes?

No.

Was AI used for this PR?

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

⚠️ GitHub issue #55356 has been automatically assigned in GitHub to PR creator.

@tadeja tadeja changed the title GH-55356: Truncate S3 mtimes to seconds GH-55356: [C++] Compare mtime at second precision in GetFileInfoSelector test Nov 6, 2026
@tadeja tadeja changed the title GH-55356: [C++] Compare mtime at second precision in GetFileInfoSelector test GH-55356: [C++] Compare mtime at s precision in GetFileInfoSelector test Nov 6, 2026
@tadeja tadeja changed the title GH-55356: [C++] Compare mtime at s precision in GetFileInfoSelector test GH-55356: [C++] Compare mtime at second precision in GetFileInfoSelector test Nov 6, 2026
Comment thread cpp/src/arrow/filesystem/test_util.cc Resolved
Co-authored-by: Rok Mihevc <rok@mihevc.org>
@tadeja
tadeja marked this pull request as ready for review November 7, 2026 14:55
Copilot AI balanced review requested due to automatic review settings November 7, 2026 14:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the test-only change accommodating differing S3 timestamp precision.

No open issues 🎉

What changed in this PR

Updates the shared C++ filesystem selector test to accommodate differing S3 timestamp precision with AWS SDK 1.11.900 and newer, addressing GH-55356 without changing production behavior.

Changes:

  • Floors the listing timestamp to seconds when the single-file timestamp has second precision and the listing timestamp has millisecond precision.
File Description
cpp/​src/​arrow/​filesystem/​test_util.cc Conditionally normalizes timestamp precision before comparing selector and single-file results.

Review effort: Balanced

@kou kou 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.

+1

@kou
kou merged commit 19f5e06 into apache:main Nov 8, 2026
69 of 74 checks passed
@kou kou removed the awaiting merge label Nov 8, 2026
@tadeja

tadeja commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Thank you, @rok and @kou!

@tadeja
tadeja deleted the GetFileInfoSelector-ms branch November 8, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants