Skip to content

date64 test skip for 24-4 #21609

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

Merged
merged 4 commits into from
Jul 28, 2025
Merged

date64 test skip for 24-4 #21609

merged 4 commits into from
Jul 28, 2025

Conversation

XJIE6
Copy link
Collaborator

@XJIE6 XJIE6 commented Jul 24, 2025

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copy link

github-actions bot commented Jul 24, 2025

2025-07-24 08:31:23 UTC Pre-commit check linux-x86_64-release-asan for c28b5fc has started.
2025-07-24 08:31:38 UTC Artifacts will be uploaded here
2025-07-24 08:34:06 UTC ya make is running...
🟢 2025-07-24 08:35:46 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16 16 0 0 0 0

🟢 2025-07-24 08:35:53 UTC Build successful.
🟢 2025-07-24 08:36:08 UTC ydbd size 3.9 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 9911a2e merge: c28b5fc diff diff %
ydbd size 4 218 876 648 Bytes 4 218 876 552 Bytes -96 Bytes -0.000%
ydbd stripped size 1 461 975 544 Bytes 1 461 975 480 Bytes -64 Bytes -0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

🟢 2025-07-24 08:31:27 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Jul 24, 2025

2025-07-24 08:31:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for c28b5fc has started.
2025-07-24 08:31:52 UTC Artifacts will be uploaded here
2025-07-24 08:34:24 UTC ya make is running...
🟢 2025-07-24 08:35:50 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
18 18 0 0 0 0

🟢 2025-07-24 08:35:57 UTC Build successful.
🟢 2025-07-24 08:36:08 UTC ydbd size 2.2 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 9911a2e merge: c28b5fc diff diff %
ydbd size 2 399 470 712 Bytes 2 399 470 712 Bytes 0 Bytes 0.000%
ydbd stripped size 501 723 016 Bytes 501 723 016 Bytes 0 Bytes 0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

])
def test_tpch1(self, store_type, date_args):
def test_tpch1(self, store_type, date_args, is_date64):
if is_date64 and min(self.versions) < (25, 1):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ну как-то избыточно получается. Давай date_args тогда удалим из параметров теста и будем крафтить эту переменную в тесте на основе is_date64

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Поправил

@maximyurchuk maximyurchuk requested a review from Copilot July 24, 2025 09:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements conditional skipping for date64 test cases in compatibility tests for YDB version 24-4. The changes ensure that tests using 64-bit datetime types are skipped when running against older YDB versions that don't support this feature.

  • Added version-based skipping logic for date64 tests
  • Updated test parameterization to include a date64 flag for better control
  • Removed outdated comments referencing 24-4 limitations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ydb/tests/compatibility/test_stress.py Added is_date64 parameter and skip logic for test_tpch1 and test_tpcds1 methods
ydb/tests/compatibility/test_compatibility.py Added is_date64 parameter and skip logic for test_tpch1 method

@pytest.mark.parametrize("store_type, date_args, is_date64", [
pytest.param("row", ["--datetime-types=dt32"], False, id="row"),
pytest.param("column", ["--datetime-types=dt32"], False, id="column"),
pytest.param("column", ["--datetime-types=dt64"], True, id="column-date64")
Copy link
Preview

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

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

[nitpick] Inconsistent spacing in the True parameter. Should use single space like other parameters for consistency.

Suggested change
pytest.param("column", ["--datetime-types=dt64"], True, id="column-date64")
pytest.param("column", ["--datetime-types=dt64"], True, id="column-date64")

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented Jul 27, 2025

2025-07-27 13:59:33 UTC Pre-commit check linux-x86_64-release-asan for 4a2de97 has started.
2025-07-27 13:59:46 UTC Artifacts will be uploaded here
2025-07-27 14:02:10 UTC ya make is running...
🟢 2025-07-27 14:03:46 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
18 18 0 0 0 0

🟢 2025-07-27 14:03:53 UTC Build successful.
🟢 2025-07-27 14:04:06 UTC ydbd size 3.9 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 77fff9b merge: 4a2de97 diff diff %
ydbd size 4 225 096 448 Bytes 4 225 096 352 Bytes -96 Bytes -0.000%
ydbd stripped size 1 463 473 016 Bytes 1 463 472 952 Bytes -64 Bytes -0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jul 27, 2025

2025-07-27 14:01:44 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4a2de97 has started.
2025-07-27 14:02:00 UTC Artifacts will be uploaded here
2025-07-27 14:04:29 UTC ya make is running...
🟢 2025-07-27 14:05:53 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
22 22 0 0 0 0

🟢 2025-07-27 14:06:00 UTC Build successful.
🟢 2025-07-27 14:06:09 UTC ydbd size 2.2 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 77fff9b merge: 4a2de97 diff diff %
ydbd size 2 403 138 904 Bytes 2 403 138 904 Bytes 0 Bytes 0.000%
ydbd stripped size 502 224 264 Bytes 502 224 264 Bytes 0 Bytes 0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@XJIE6 XJIE6 enabled auto-merge (squash) July 27, 2025 15:26
@XJIE6 XJIE6 requested a review from maximyurchuk July 28, 2025 07:01
@XJIE6 XJIE6 merged commit 95c5567 into ydb-platform:main Jul 28, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants