Skip to content

Tests update #12946

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 5 commits into from
Dec 25, 2024
Merged

Tests update #12946

merged 5 commits into from
Dec 25, 2024

Conversation

SloNN
Copy link
Collaborator

@SloNN SloNN commented Dec 24, 2024

Changelog entry

...

Changelog category

  • New feature
  • Experimental feature
  • Improvement
  • Performance improvement
  • Bugfix
  • Backward incompatible change
  • Documentation (changelog entry is not required)
  • Not for changelog (changelog entry is not required)

Additional information

...

class TestYdbCrudOperations(object):

@classmethod
def setup_class(cls):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Много копипасты, мне кажется надо сделать базовый класс а в самих тестах только бомбить запросами

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

все так. ты обещал порефакторить

Copy link

github-actions bot commented Dec 24, 2024

2024-12-24 17:25:25 UTC Pre-commit check linux-x86_64-release-asan for 2d0fb9f has started.
2024-12-24 17:25:30 UTC Artifacts will be uploaded here
2024-12-24 17:27:51 UTC ya make is running...
🟡 2024-12-24 17:30:34 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

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

🟢 2024-12-24 17:30:43 UTC Build successful.
🟢 2024-12-24 17:30:58 UTC ydbd size 3.6 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: dbd2cf0 merge: 2d0fb9f diff diff %
ydbd size 3 866 370 760 Bytes 3 866 370 664 Bytes -96 Bytes -0.000%
ydbd stripped size 1 351 002 688 Bytes 1 351 002 624 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 Dec 24, 2024

2024-12-24 17:26:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2d0fb9f has started.
2024-12-24 17:26:51 UTC Artifacts will be uploaded here
2024-12-24 17:29:15 UTC ya make is running...
🟡 2024-12-24 17:31:46 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

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

2024-12-24 17:31:54 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-12-24 17:32:48 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
13 (only retried tests) 3 0 10 0 0

2024-12-24 17:32:56 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-12-24 17:33:53 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12 (only retried tests) 2 0 10 0 0

🟢 2024-12-24 17:34:00 UTC Build successful.
🟢 2024-12-24 17:34:09 UTC ydbd size 2.1 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: dbd2cf0 merge: 2d0fb9f diff diff %
ydbd size 2 235 398 528 Bytes 2 235 398 528 Bytes 0 Bytes 0.000%
ydbd stripped size 478 083 728 Bytes 478 083 728 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

rows = result[0].rows
assert len(rows) == 1 and rows[0].count == 100, f"Expected 100 rows, found: {rows[0].count}"

# def test_transactional_update(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ну вот наверное не надо комментить код просто так

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

это код про транзакции в ExecuteQuery. Как только разберусь - раскомменчу

PRIMARY KEY (id)
);"""
)
table_name = table_name = "{}/{}_{}_{}".format(self.table_path, type_, value, is_column)
Copy link
Collaborator

Choose a reason for hiding this comment

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

я бы ожидал, что в self.table_path уже лежит полное имя теста, и тебе самому не нужно конструировать путь с использованием параметров

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

это из-за параметризации теста. или таблицы удаляются после выхода из функции?

)

# Create (Insert)
self.pool.execute_with_retries(
Copy link
Collaborator

Choose a reason for hiding this comment

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

self.pool.execute_with_retries слишком вербозно. Желательно self.query(...)

Copy link

github-actions bot commented Dec 25, 2024

2024-12-25 10:15:55 UTC Pre-commit check linux-x86_64-release-asan for 1e62d36 has started.
2024-12-25 10:16:09 UTC Artifacts will be uploaded here
2024-12-25 10:18:36 UTC ya make is running...
🟡 2024-12-25 10:22:21 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
29 28 0 1 0 0

🟢 2024-12-25 10:22:27 UTC Build successful.
🟢 2024-12-25 10:22:39 UTC ydbd size 3.6 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: d4bdf37 merge: 1e62d36 diff diff %
ydbd size 3 864 670 008 Bytes 3 864 669 912 Bytes -96 Bytes -0.000%
ydbd stripped size 1 347 522 592 Bytes 1 347 522 528 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 Dec 25, 2024

2024-12-25 10:16:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1e62d36 has started.
2024-12-25 10:17:00 UTC Artifacts will be uploaded here
2024-12-25 10:19:30 UTC ya make is running...
🟡 2024-12-25 10:22:13 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31 30 0 1 0 0

2024-12-25 10:22:20 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-12-25 10:22:53 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
2 (only retried tests) 1 0 1 0 0

2024-12-25 10:23:00 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-12-25 10:23:33 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
2 (only retried tests) 1 0 1 0 0

🟢 2024-12-25 10:23:39 UTC Build successful.
🟢 2024-12-25 10:23:48 UTC ydbd size 2.1 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: d4bdf37 merge: 1e62d36 diff diff %
ydbd size 2 226 054 440 Bytes 2 226 054 440 Bytes 0 Bytes 0.000%
ydbd stripped size 467 407 152 Bytes 467 407 152 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

Copy link

github-actions bot commented Dec 25, 2024

2024-12-25 10:59:27 UTC Pre-commit check linux-x86_64-release-asan for 611656f has started.
2024-12-25 10:59:39 UTC Artifacts will be uploaded here
2024-12-25 11:02:00 UTC ya make is running...
🟡 2024-12-25 11:04:40 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
30 28 0 2 0 0

🟢 2024-12-25 11:04:46 UTC Build successful.
🟢 2024-12-25 11:04:59 UTC ydbd size 3.6 GiB changed* by +656 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: d0920bc merge: 611656f diff diff %
ydbd size 3 864 670 008 Bytes 3 864 670 664 Bytes +656 Bytes +0.000%
ydbd stripped size 1 347 522 592 Bytes 1 347 522 848 Bytes +256 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 Dec 25, 2024

2024-12-25 10:59:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for 611656f has started.
2024-12-25 10:59:50 UTC Artifacts will be uploaded here
2024-12-25 11:02:20 UTC ya make is running...
🟡 2024-12-25 11:04:21 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
32 30 0 2 0 0

2024-12-25 11:04:29 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-12-25 11:05:11 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3 (only retried tests) 1 0 2 0 0

2024-12-25 11:05:19 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-12-25 11:05:57 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3 (only retried tests) 1 0 2 0 0

🟢 2024-12-25 11:06:03 UTC Build successful.
🟢 2024-12-25 11:06:12 UTC ydbd size 2.1 GiB changed* by +272 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: d0920bc merge: 611656f diff diff %
ydbd size 2 226 054 440 Bytes 2 226 054 712 Bytes +272 Bytes +0.000%
ydbd stripped size 467 407 152 Bytes 467 407 216 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 Dec 25, 2024

2024-12-25 11:45:08 UTC Pre-commit check linux-x86_64-release-asan for 7d3e8ca has started.
2024-12-25 11:45:19 UTC Artifacts will be uploaded here
2024-12-25 11:47:41 UTC ya make is running...
🟢 2024-12-25 11:50:13 UTC Tests successful.

Test history | Ya make output | Test bloat

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

🟢 2024-12-25 11:50:20 UTC Build successful.
🟢 2024-12-25 11:50:31 UTC ydbd size 3.6 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: fd6bcad merge: 7d3e8ca diff diff %
ydbd size 3 864 178 544 Bytes 3 864 178 448 Bytes -96 Bytes -0.000%
ydbd stripped size 1 347 268 464 Bytes 1 347 268 400 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 Dec 25, 2024

2024-12-25 11:45:17 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7d3e8ca has started.
2024-12-25 11:45:30 UTC Artifacts will be uploaded here
2024-12-25 11:48:03 UTC ya make is running...
🟢 2024-12-25 11:49:56 UTC Tests successful.

Test history | Ya make output | Test bloat

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

🟢 2024-12-25 11:50:03 UTC Build successful.
🟢 2024-12-25 11:50:12 UTC ydbd size 2.1 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: fd6bcad merge: 7d3e8ca diff diff %
ydbd size 2 225 799 264 Bytes 2 225 799 264 Bytes 0 Bytes 0.000%
ydbd stripped size 467 334 160 Bytes 467 334 160 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

@SloNN SloNN merged commit 65567d3 into ydb-platform:main Dec 25, 2024
12 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.

3 participants