<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/build/plugins/pybuild.py, branch CLI_2.19.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.19.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.19.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-01-30T07:01:32Z</updated>
<entry>
<title>[build/plugins/pybuild] Avoid collision in module names in venv mode</title>
<updated>2025-01-30T07:01:32Z</updated>
<author>
<name>prettyboy</name>
<email>prettyboy@yandex-team.com</email>
</author>
<published>2025-01-30T06:41:16Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=63389c48bc8b9423279edaea502967abc8126bbc'/>
<id>urn:sha1:63389c48bc8b9423279edaea502967abc8126bbc</id>
<content type='text'>
commit_hash:c46828a2ae03a161b7aa2cc514ee2d83ac5d4c08
</content>
</entry>
<entry>
<title>Remove outstanding Testenv parts</title>
<updated>2025-01-17T18:45:41Z</updated>
<author>
<name>miroslav2</name>
<email>miroslav2@yandex-team.com</email>
</author>
<published>2025-01-17T16:59:52Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=6ddd7726ecd1e96930dd8fd50395e4bb7e7b91fc'/>
<id>urn:sha1:6ddd7726ecd1e96930dd8fd50395e4bb7e7b91fc</id>
<content type='text'>
commit_hash:5ef4be5db84fab0cc93a9435d7ab4b153c509dac
</content>
</entry>
<entry>
<title>Prototype - external python files mode for tests</title>
<updated>2025-01-16T19:26:51Z</updated>
<author>
<name>prettyboy</name>
<email>prettyboy@yandex-team.com</email>
</author>
<published>2025-01-16T18:01:45Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=2f3fd95aac24e27a3b0aa2badda49db82bf36cc5'/>
<id>urn:sha1:2f3fd95aac24e27a3b0aa2badda49db82bf36cc5</id>
<content type='text'>
Режим позволяет перезапускать python тесты или интеграционные тесты на питон программы при внесении изменений в python файлы без перекомпиляции.

Сценарий:
- прогнали тесты
- внесли изменение в `library/python/func/__init__.py`
- перезапустили, смотрим на времена

На примере интеграционного devtools/ya/handlers/analyze_make/tests в codenv (base конфигурация).

#|
||
ya m -rA
|
ya m -rA --ext-py
||
||
real    10m25,928s
user    0m53,465s
sys     1m14,791s

```
Total time by type:
[935171 ms] [LD] [count: 3, ave time 311723.67 msec]
[ 13657 ms] [prepare:AC] [count: 4, ave time 3414.25 msec]
[ 10436 ms] [TM] [count: 1, ave time 10436.00 msec]
[ 10387 ms] [prepare:get from local cache] [count: 1521, ave time 6.83 msec]
[  6480 ms] [TS] [count: 1, ave time 6480.00 msec]
[  3823 ms] [prepare:put into local cache, clean build dir] [count: 7, ave time 546.14 msec]
[  2279 ms] [CC] [count: 1, ave time 2279.00 msec]
[  1251 ms] [PY] [count: 1, ave time 1251.00 msec]
[   372 ms] [prepare:yt-store] [count: 2, ave time 186.00 msec]
[   154 ms] [AR] [count: 1, ave time 154.00 msec]
...
```

|

real    0m22,094s
user    0m26,372s
sys     0m3,363s

```
Total time by type:
[13140 ms] [TM] [count: 1, ave time 13140.00 msec]
[  351 ms] [prepare:yt-store] [count: 1, ave time 351.00 msec]
[   81 ms] [prepare:tools] [count: 8, ave time 10.12 msec]
[   32 ms] [prepare:AC] [count: 2, ave time 16.00 msec]
[   31 ms] [prepare:get from local cache] [count: 7, ave time 4.43 msec]
[   16 ms] [prepare:clean] [count: 3, ave time 5.33 msec]
```

||
|#

В codenv в base конфигуарции (4cpu) невероятно долго идёт линковка. Тот же самый сценарий, но на mous (54cpu)

#|
||
ya m -rA
|
ya m -rA --ext-py
||
||

real    0m25,435s
user    0m40,242s
sys     0m22,434s

```
Total time by type:
[30958 ms] [prepare:get from local cache] [count: 1521, ave time 20.35 msec]
[16293 ms] [prepare:AC] [count: 4, ave time 4073.25 msec]
[11161 ms] [LD] [count: 3, ave time 3720.33 msec]
[ 4256 ms] [TM] [count: 1, ave time 4256.00 msec]
[ 3529 ms] [TS] [count: 1, ave time 3529.00 msec]
[ 1542 ms] [CC] [count: 1, ave time 1542.00 msec]
[  635 ms] [PY] [count: 1, ave time 635.00 msec]
...
```

|

real    0m18,321s
user    0m21,673s
sys     0m3,204s

```
Total time by type:
[10786 ms] [TM] [count: 1, ave time 10786.00 msec]
[ 1568 ms] [prepare:yt-store] [count: 1, ave time 1568.00 msec]
[  151 ms] [prepare:tools] [count: 8, ave time 18.88 msec]
[   61 ms] [prepare:get from local cache] [count: 7, ave time 8.71 msec]
[   48 ms] [prepare:AC] [count: 2, ave time 24.00 msec]
[   14 ms] [prepare:clean] [count: 3, ave time 4.67 msec]
```

||
|#

В новом режиме тест ожидаемо замедляется, так как все питон программы при каждом старте вынуждены читать файлы с фс (ещё через арк), а потом ещё и компилировать байткод, т.е. холодный запуск
commit_hash:24c5a46a8385d3c065abfb6fc5b40f7ad24bb1cb
</content>
</entry>
<entry>
<title>Never compress python build resources to speedup python configuration and build</title>
<updated>2024-12-13T06:07:25Z</updated>
<author>
<name>spreis</name>
<email>spreis@yandex-team.com</email>
</author>
<published>2024-12-13T05:25:28Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=e90b83df32a421a93c021eaa91710c1193585f9a'/>
<id>urn:sha1:e90b83df32a421a93c021eaa91710c1193585f9a</id>
<content type='text'>
There is no runtime perf impact, but
- The change reduces build graph by removing 2 nodes out of 5 for python which accelerates both configuration and build
- surprisingly in all experiments there were positive impact on binary size about 2MiB
commit_hash:909fdeeb91b7f20c749177d638e97d5a469e422d
</content>
</entry>
<entry>
<title>tempo fix for win (pybuild)</title>
<updated>2024-11-22T17:41:05Z</updated>
<author>
<name>kuzmich321</name>
<email>kuzmich321@yandex-team.com</email>
</author>
<published>2024-11-22T17:28:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=770ab0b6bc25adf6a5282f70ac856d222f273ff1'/>
<id>urn:sha1:770ab0b6bc25adf6a5282f70ac856d222f273ff1</id>
<content type='text'>
Предлагаю пока так отрубить для винды. Хочется, чтобы покрытие работало
commit_hash:9b3ec4a246f6597795dc0b2d12d6524bb688e129
</content>
</entry>
<entry>
<title>Python linting macroses</title>
<updated>2024-09-12T06:53:26Z</updated>
<author>
<name>alevitskii</name>
<email>alevitskii@yandex-team.com</email>
</author>
<published>2024-09-12T06:41:59Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f3fc9bb5ecb70b4b2a340d935ea06c92307da3b1'/>
<id>urn:sha1:f3fc9bb5ecb70b4b2a340d935ea06c92307da3b1</id>
<content type='text'>
Init
93a5052a4192d230f52b4b27c41c9c77bf8d5880
</content>
</entry>
<entry>
<title>Add another part SDC contrib to allow NO_LINT</title>
<updated>2024-08-21T09:02:23Z</updated>
<author>
<name>kochanov-s-a</name>
<email>kochanov-s-a@yandex-team.com</email>
</author>
<published>2024-08-21T08:47:21Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=84b94f3b97a138085aafa50e6b06a49a8d742256'/>
<id>urn:sha1:84b94f3b97a138085aafa50e6b06a49a8d742256</id>
<content type='text'>
Еще одна пачка проектных контрибов.
53591f2d7360aa45b12fa2215945c9fc3569df19
</content>
</entry>
<entry>
<title>Enable windows long manifest for all pyprograms</title>
<updated>2024-07-30T12:59:42Z</updated>
<author>
<name>v-korovin</name>
<email>v-korovin@yandex-team.com</email>
</author>
<published>2024-07-30T12:40:00Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f4ea68421d222127ba002ba4721b2c7f991badd3'/>
<id>urn:sha1:f4ea68421d222127ba002ba4721b2c7f991badd3</id>
<content type='text'>
d773653083f7c4c70a99266c290e3d22ab070ba2
</content>
</entry>
<entry>
<title>[build] pybuild: Allow NO_LINT in sdg/sdc/contrib</title>
<updated>2024-06-24T04:19:37Z</updated>
<author>
<name>deshevoy</name>
<email>deshevoy@yandex-team.com</email>
</author>
<published>2024-06-24T04:07:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=42a569433b9070da71d2b5f2f7bb619bd35c5274'/>
<id>urn:sha1:42a569433b9070da71d2b5f2f7bb619bd35c5274</id>
<content type='text'>
dd6af97985a0184ae82d875be6732b1ca6c56962
</content>
</entry>
<entry>
<title>PR from branch users/denvr/YT-21293_fork_python3_only_source8</title>
<updated>2024-04-17T11:57:20Z</updated>
<author>
<name>denvr</name>
<email>denvr@yandex-team.com</email>
</author>
<published>2024-04-17T11:45:46Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=9b1470229ddab1b35b19c0372103f0f44ceafaa8'/>
<id>urn:sha1:9b1470229ddab1b35b19c0372103f0f44ceafaa8</id>
<content type='text'>
YT-21293 - Remove unused py2 components (examples)
(cherry picked from commit 44a5892bd46d37a013673c2af37e93a1b222fb6f)

YT-21293 - Fixt test (py2 namespace)
(cherry picked from commit d47f9446d3046823d3a9d1c2fea74a83436db4be)

YT-21293 - Update arcadia policy
(cherry picked from commit e0bbbfbd9b25eceff5c0631dd1bccc0334a10058)

YT-21293 - Recursion for python2, and common checks
(cherry picked from commit f5eaef0c51ac9e7a987a363fc59820026f470c4f)
77f526405863a4923b663a336a3ebeddecbab116
</content>
</entry>
</feed>
