Skip to content

test/rgw/lua: ignore hours for zero mtime - #67432

Merged
kshtsk merged 1 commit into
ceph:mainfrom
kshtsk:wip-test-lua-ignore-tz
Feb 23, 2026
Merged

kshtsk merged 1 commit into
ceph:mainfrom
kshtsk:wip-test-lua-ignore-tz

Conversation

@kshtsk

@kshtsk kshtsk commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

When creating MTime from zero it is equivalent to datetime string "1970-01-01 00:00:00", but if the environment is configured with different timezone than UTC, for example, CET (i.e. UTC+1), the corresponding string is already equal to "1970-01-01 01:00:00". The testing machine and can operate in different timezone rather than python test running, so we just ignore hours.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@kshtsk

kshtsk commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

I've got successful run against my repo branch wip-test-lua-ignore-tz and latest main build for sha1 5ccdd6a to avoid regressions:
https://pulpito.ceph.com/kyr-2026-02-19_20:56:26-rgw-main-distro-default-trial/

Teuthology command was used:

teuthology-suite --ceph main --suite rgw --filter lua --suite-repo https://github.com/kshtsk/ceph --suite-branch wip-test-lua-ignore-tz -m trial --sha1 5ccdd6ad168c6041124374f1890c59924a1f3a58

@yuvalif

yuvalif commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@kshtsk

kshtsk commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@yuvalif I am sorry, this patch won't work for the case, for example, if machine configured with UTC-X, like most of USA locations, the 0 timestamp turns into "1969-12-31" instead of "1970-01-01".

Check mtime for zero timestamp only date part if corresponds
to 1970-01-01 for UTC and ahead of UTC, and to 1969-12-31
for cases behind UTC.

Fixes: https://tracker.ceph.com/issues/75039
Signed-off-by: Kyr Shatskyy <[email protected]>
@kshtsk
kshtsk force-pushed the wip-test-lua-ignore-tz branch from b88d2e5 to d39a2ee Compare February 21, 2026 17:30
@yuvalif

yuvalif commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

can you please rerun the test?

@kshtsk

kshtsk commented Feb 22, 2026

Copy link
Copy Markdown
Contributor Author

@yuvalif

yuvalif commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuvalif

yuvalif commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@kshtsk
kshtsk merged commit d7dce08 into ceph:main Feb 23, 2026
6 checks passed
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.

2 participants