Skip to content

tests: support testenv setup in non-anonymous mode #15130

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

Conversation

ijon
Copy link
Collaborator

@ijon ijon commented Feb 27, 2025

Add support for fully authenticated setup operations to tests/library/.
Before that library could only execute cluster setup, configuration and database manipulation in anonymous mode or in the mode every user is cluster admin.
Now tests/library/ can operate when administration_allowed_lists is not empty and enforce_user_token_requirement=True.

Copy link

🟢 2025-02-27 12:09:30 UTC The validation of the Pull Request description is successful.

@ijon ijon force-pushed the tests-support-setup-in-non-anonymous-mode branch from 471660a to 8d1fd76 Compare February 27, 2025 13:47
@ydb-platform ydb-platform deleted a comment from github-actions bot Feb 27, 2025
@ydb-platform ydb-platform deleted a comment from github-actions bot Feb 27, 2025
Copy link

github-actions bot commented Feb 27, 2025

2025-02-27 15:25:35 UTC Pre-commit check linux-x86_64-release-asan for 0cfe09b has started.
2025-02-27 15:25:54 UTC Artifacts will be uploaded here
2025-02-27 15:28:15 UTC ya make is running...
🟡 2025-02-27 15:51:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1887 1865 0 10 3 9

2025-02-27 15:52:05 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-02-27 16:03:13 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25 (only retried tests) 19 0 1 0 5

2025-02-27 16:03:22 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-02-27 16:08:08 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10 (only retried tests) 6 0 0 0 4

🟢 2025-02-27 16:08:15 UTC Build successful.
🟢 2025-02-27 16:08:31 UTC ydbd size 3.7 GiB changed* by -128 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: c5b2980 merge: 0cfe09b diff diff %
ydbd size 3 985 411 216 Bytes 3 985 411 088 Bytes -128 Bytes -0.000%
ydbd stripped size 1 387 765 576 Bytes 1 387 765 512 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 Feb 27, 2025

2025-02-27 15:28:03 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0cfe09b has started.
2025-02-27 15:28:21 UTC Artifacts will be uploaded here
2025-02-27 15:30:44 UTC ya make is running...
🟢 2025-02-27 15:53:31 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
4952 4836 0 0 36 80

🟢 2025-02-27 15:54:02 UTC Build successful.
🟢 2025-02-27 15:54:13 UTC ydbd size 2.1 GiB changed* by -64 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: c5b2980 merge: 0cfe09b diff diff %
ydbd size 2 286 685 160 Bytes 2 286 685 096 Bytes -64 Bytes -0.000%
ydbd stripped size 479 417 824 Bytes 479 417 824 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

@ijon ijon enabled auto-merge (squash) February 27, 2025 16:23
@ijon ijon requested a review from azevaykin February 27, 2025 16:24
@ijon ijon merged commit 1d43db6 into ydb-platform:main Feb 27, 2025
12 of 13 checks passed
@ijon ijon deleted the tests-support-setup-in-non-anonymous-mode branch February 27, 2025 16:26
ijon added a commit to ijon/ydb that referenced this pull request Feb 28, 2025
Add support for fully authenticated setup operations to `tests/library/`.
Before that library could only execute cluster setup, configuration and database manipulation in anonymous mode or in the mode when every user is a cluster admin.
Now `tests/library/` can operate when `administration_allowed_lists` is not empty and `enforce_user_token_requirement=True`.
lberserq pushed a commit to lberserq/ydb that referenced this pull request Mar 3, 2025
Add support for fully authenticated setup operations to `tests/library/`.
Before that library could only execute cluster setup, configuration and database manipulation in anonymous mode or in the mode when every user is a cluster admin.
Now `tests/library/` can operate when `administration_allowed_lists` is not empty and `enforce_user_token_requirement=True`.
blinkov pushed a commit that referenced this pull request Mar 21, 2025
Add support for fully authenticated setup operations to `tests/library/`.
Before that library could only execute cluster setup, configuration and database manipulation in anonymous mode or in the mode when every user is a cluster admin.
Now `tests/library/` can operate when `administration_allowed_lists` is not empty and `enforce_user_token_requirement=True`.
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