{"id":482444,"date":"2026-06-04T18:27:26","date_gmt":"2026-06-04T18:27:26","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482444"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482444","title":{"rendered":"FlakyDetector 2.0: \u041e\u0434\u0438\u043d \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u043b \u043c\u043e\u0451 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u0430\u0445"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1ae\/4a2\/c82\/1ae4a2c829e461e69a219427b923312c.png\" width=\"2818\" height=\"1522\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/1ae\/4a2\/c82\/1ae4a2c829e461e69a219427b923312c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1ae\/4a2\/c82\/1ae4a2c829e461e69a219427b923312c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<blockquote>\n<p><em>\u041a\u0430\u043a \u043c\u044b \u0441 \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440, \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0434\u043e 42 \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0432\u0438\u0434\u0435\u0442\u044c order dependency \u0434\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d\u0430 \u0440\u0443\u0448\u0438\u0442 CI<\/em><\/p>\n<\/blockquote>\n<h3>\ud83d\udd25 \u041b\u0438\u0434: \u00ab\u0410 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u043c \u0442\u0435\u0441\u0442 flaky \u0438 \u0437\u0430\u0431\u0443\u0434\u0435\u043c\u00bb<\/h3>\n<p>\u041f\u043e\u043b\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u00a0<a href=\"https:\/\/habr.com\/ru\/articles\/969354\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u043e FlakyDetector<\/a>\u00a0\u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0449\u0435\u0442 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043b\u0438\u0448\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u041f\u043e\u0442\u043e\u043c \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"https:\/\/habr.com\/ru\/articles\/1035782\/\" rel=\"noopener noreferrer nofollow\">FlakyDetector 2.0<\/a> . AST + CatBoost, 37 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432, \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0432\u0441\u0451 \u043a\u0440\u0443\u0442\u043e.<\/p>\n<p><em>\u041d\u043e \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043c\u0435\u043d\u044f \u0434\u043e\u0431\u0438\u043b.<\/em><\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a0<strong>Ariless<\/strong>\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0435\u0439\u0441: \u0432 \u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0442\u0435\u0441\u0442 \u043f\u0430\u0434\u0430\u043b \u0441\u00a0<code>SLOT_OVERLAP<\/code>\u00a0\u2014 \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0442\u0435\u0441\u0442\u0430 \u0431\u044b\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043b\u043e\u0445\u043e\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0<strong>\u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430<\/strong>\u00a0\u0431\u044b\u043b\u0430 \u043e\u0431\u0449\u0430\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u043e\u0432 (shared scope). \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u0435\u0441\u0442 \u043d\u0435 \u0443\u0441\u043f\u0435\u043b \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u043e\u0442 \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u043f\u0430\u043b.<\/p>\n<blockquote>\n<p><em>\u00ab\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u043c, \u043d\u0435 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c. \u041a\u043e\u0434 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u043b\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 fixture \u0438\u0437 shared scope \u0432 function scope. SLOT_OVERLAP \u0438\u0441\u0447\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e\u00bb.<\/em><\/p>\n<\/blockquote>\n<p><em>\u0418 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0441\u0434\u0435\u043b\u0430\u043b:<\/em><\/p>\n<blockquote>\n<p><strong><em>\u00abFlakiness as a signal\u00bb<\/em><\/strong><em>\u00a0\u2014 \u0442\u0435\u0441\u0442 \u043f\u0430\u0434\u0430\u043b \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0431\u044b\u043b \u043f\u043b\u043e\u0445\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u0444\u0435\u043a\u0442 \u0432 \u0434\u0438\u0437\u0430\u0439\u043d\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0435\u0433\u043e flaky \u0438 \u0437\u0430\u0433\u043b\u0443\u0448\u0438\u0442\u044c, \u0442\u043e \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/em><\/p>\n<\/blockquote>\n<p><em>\u042f \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u0441\u0432\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440. \u0418 \u043f\u043e\u043d\u044f\u043b:\u00a0\u043c\u043e\u0439 FlakyDetector 2.0 \u0431\u044b\u043b \u0441\u043b\u0435\u043f \u043a \u044d\u0442\u043e\u043c\u0443 \u043a\u0435\u0439\u0441\u0443.<\/em><\/p>\n<p><em>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u0430, \u0430 \u043d\u0435 \u043d\u0430\u00a0\u0441\u0432\u044f\u0437\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b.<\/em><\/p>\n<h3>\u041a\u0430\u043a FlakyDetector 2.0 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b SLOT_OVERLAP<\/h3>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c\u00a0<code>flaky_v1_37d.cbm<\/code>\u00a0\u0431\u044b\u043b\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0430 \u043d\u0430 37 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u0445: \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438\u00a0<code>time.sleep<\/code>,\u00a0<a href=\"http:\/\/datetime.now\" rel=\"noopener noreferrer nofollow\"><code>datetime.now<\/code><\/a><code>()<\/code>, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0443\u0442\u0430\u0446\u0438\u0438, \u0446\u0438\u043a\u043b\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p>\u0412 \u043a\u0435\u0439\u0441\u0435 Ariless \u0442\u0435\u0441\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e:<\/p>\n<pre><code class=\"python\">def test_slot_creation(slot_fixture):    slot = slot_fixture.create()   # \u0447\u0438\u0441\u0442\u043e, \u043d\u0435\u0442 \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432    assert slot.is_empty()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0438\u00a0<code>sleep<\/code>, \u043d\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043d\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432. \u041c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0430 99% \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u0442\u0435\u0441\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u0435\u043d.<\/p>\n<p>\u0410 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0433\u0434\u0435-\u0442\u043e \u0432\u00a0<a href=\"http:\/\/conftest.py\" rel=\"noopener noreferrer nofollow\"><code>conftest.py<\/code><\/a>:<\/p>\n<pre><code class=\"python\">@pytest.fixture(scope=\"module\")  # \u2190 \u0432\u043e\u0442 \u043e\u043d, \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0437\u043b\u043e\u0434\u0435\u0439def slot_fixture():    return SharedSlot()           # \u2190 \u043d\u0435\u0442 yield, \u043d\u0435\u0442 teardown<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u00a0<code>SharedSlot<\/code>\u00a0\u2014 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442. \u0422\u0435\u0441\u0442 A \u0447\u0442\u043e-\u0442\u043e \u0432 \u043d\u0451\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u043b, \u0442\u0435\u0441\u0442 B \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u00a0<strong>order dependency<\/strong>.<\/p>\n<p>\u0411\u0435\u0437 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0444\u0438\u043a\u0441\u0442\u0443\u0440 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448\u0451\u043b. \u0421\u043f\u0430\u0441\u0438\u0431\u043e Ariless \u2014 \u043e\u043d \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f, \u0430 \u0434\u0430\u043b \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0443\u044e \u0438\u0434\u0435\u044e.<\/p>\n<h3>\u0427\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b: Sprint 1 \u2014 \u0430\u043d\u0430\u043b\u0438\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440 (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043e 42D)<\/h3>\n<p>\u0417\u0430 \u043e\u0434\u0438\u043d \u0441\u043f\u0440\u0438\u043d\u0442 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u00a0<strong>5 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0441\u044f\u0442 pytest-\u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b \u0447\u0435\u0440\u0435\u0437 AST:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u0437\u043d\u0430\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043e<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>has_session_or_module_fixture<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0415\u0441\u0442\u044c \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430 \u0441\u00a0<code>scope=\"module\"<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>\"session\"<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0428\u0430\u043d\u0441 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>has_yield_in_fixture<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0415\u0441\u0442\u044c \u043b\u0438\u00a0<code>yield<\/code>\u00a0\u0432 \u0442\u0435\u043b\u0435 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0435\u0437\u00a0<code>yield<\/code>\u00a0\u2014 \u043d\u0435\u0442 teardown-\u043b\u043e\u0433\u0438\u043a\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>fixture_returns_mutable<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u0438\u043a\u0441\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>[]<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>{}<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 shared scope \u2014 \u044f\u0434<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>fixture_has_autouse<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433\u00a0<code>autouse=True<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435\u044f\u0432\u043d\u043e\u0435 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435, \u0441\u043b\u043e\u0436\u043d\u043e \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>test_uses_fixtures<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043e\u043b\u044f \u00ab\u0440\u0438\u0441\u043a\u043e\u0432\u044b\u0445\u00bb \u0444\u0438\u043a\u0441\u0442\u0443\u0440 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0432\u044b\u0440\u043e\u0441 \u0434\u043e\u00a0<strong>42 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439<\/strong>.<\/p>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435.<\/h4>\n<p><em>\u042f \u043f\u0435\u0440\u0435\u043e\u0431\u0443\u0447\u0438\u043b CatBoost \u043d\u0430 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435, \u0433\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u043b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0438 \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u0430\u0437\u0438\u043b:<\/em><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u0437\u043d\u0430\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0412\u0430\u0436\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>has_yield_in_fixture<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>66.00%<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>fixture_returns_mutable<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">26.81%<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>test_uses_fixtures<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">6.15%<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>has_session_or_module_fixture<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">1.04%<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>fixture_has_autouse<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">0.00% (\u0432 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0438)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u00a0<\/strong><code><strong>yield<\/strong><\/code><strong>\u00a0\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u043c \u0444\u043b\u0430\u043a\u0438\u043d\u0435\u0441\u0441\u0430.<\/strong>\u00a0\u041c\u043e\u0434\u0435\u043b\u044c \u0441\u0430\u043c\u0430 \u0432\u044b\u0443\u0447\u0438\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e Ariless \u044d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435.<\/p>\n<p><em>\u0422\u0435\u043f\u0435\u0440\u044c FlakyDetector \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u00ab\u0442\u0435\u0441\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u00bb, \u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u043b\u044c\u0446\u0435\u043c:<\/em><\/p>\n<blockquote>\n<p>\u26a0\ufe0f\u00a0<strong>\u0412 \u043c\u043e\u0434\u0443\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430\u00a0<\/strong><code><strong>slot_fixture<\/strong><\/code><strong>\u00a0\u0441\u00a0<\/strong><code><strong>scope=\"module\"<\/strong><\/code><strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u00a0<\/strong><code><strong>yield<\/strong><\/code><strong>\u00a0\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u0443\u0442\u0435\u0447\u043a\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/strong><\/p>\n<\/blockquote>\n<h3>\u0410 \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435? RAG \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 Sprint 2\u20133<\/h3>\n<p><em>\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 Ariless \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0435:<\/em><\/p>\n<blockquote>\n<p><em>\u00ab\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e &#171;\u0435\u0441\u0442\u044c order dependency&#187;, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e: &#171;\u0442\u0435\u0441\u0442 B \u043f\u0430\u0434\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u0441\u0442 A \u043d\u0435 \u043e\u0447\u0438\u0441\u0442\u0438\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 X&#187;.\u00bb<\/em><\/p>\n<\/blockquote>\n<p>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u043d\u0443\u0436\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u043e\u043d\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b:<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u043b\u0430\u0433\u0438\u043d\u00a0<\/strong><code><strong>pytest-flaky-trail<\/strong><\/code>\u00a0\u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 SQLite \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432, \u0442\u0440\u0435\u0439\u0441\u0431\u044d\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>LLM + RAG<\/strong>\u00a0\u2014 \u0431\u0435\u0440\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0443\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u0430 (\u043a\u043e\u0434 + \u043c\u0435\u0442\u0440\u0438\u043a\u0438), \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c (Qwen 2.5 Coder 7B) \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443 \u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>ChromaDB<\/strong>\u00a0\u2014 \u0432\u0435\u043a\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442 \u044d\u0442\u0438 \u043e\u0442\u0447\u0451\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:\u00a0<em>\u00ab\u043f\u043e\u043a\u0430\u0436\u0438 \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0434\u0430\u044e\u0442 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430\u00bb<\/em>.<\/p>\n<\/li>\n<\/ol>\n<p><em>\u041f\u043e\u043a\u0430 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0443\u0436\u0435 \u0434\u0430\u0451\u0442 \u043e\u0442\u0432\u0435\u0442\u044b \u0432 \u0441\u0442\u0438\u043b\u0435:<\/em><\/p>\n<blockquote>\n<p>\u00ab\u0422\u0435\u0441\u0442\u00a0<code>test_create_slot<\/code>\u00a0\u0443\u043f\u0430\u043b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u00a0<code>test_use_slot<\/code>\u00a0(\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435) \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u043d\u044f\u0442\u044b\u043c \u0441\u043b\u043e\u0442\u00a0<code>slot_123<\/code>. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0443 \u043d\u0430\u00a0<code>scope=\"function\"<\/code>\u00a0\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0<code>yield<\/code>\u00a0\u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439.\u00bb<\/p>\n<\/blockquote>\n<h3>\u00a0\u041a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u043a\u043e\u0434\u0435 (\u043f\u0440\u0438\u043c\u0435\u0440)<\/h3>\n<p><em>\u0420\u0438\u0441\u043a\u043e\u0432\u0430\u044f \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442 FlakyDetector 2.0:<\/em><\/p>\n<pre><code class=\"python\">import pytest@pytest.fixture(scope=\"module\")   # \u2190 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 37: Truedef shared_state():    return []                     # \u2190 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 39: True, \u0438 \u043d\u0435\u0442 yield \u2192 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 38: Falsedef test_a(shared_state):    shared_state.append(\"a\")      # \u043c\u0443\u0442\u0430\u0446\u0438\u044fdef test_b(shared_state):    assert len(shared_state) == 0 # \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0430\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0442\u0435\u0441\u0442 A \u0431\u044b\u043b \u0440\u0430\u043d\u044c\u0448\u0435<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0430\u043d\u0435\u0440:<\/p>\n<pre><code class=\"bash\">uv run python scripts\/scan_folder.py .\/tests\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code class=\"bash\">\u26a0\ufe0f CRITICAL: \u0424\u0438\u043a\u0441\u0442\u0443\u0440\u0430 shared_state (test_example.py:5)   - scope=\"module\" (shared across tests)   - \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 yield (\u043d\u0435\u0442 teardown)   - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a   \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f: \u0434\u043e\u0431\u0430\u0432\u044c yield \u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439 \u0438\u043b\u0438 \u0441\u043c\u0435\u043d\u0438 scope \u043d\u0430 \"function\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e Ariless<\/h3>\n<p>\u0422\u0432\u043e\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0441\u0442\u0430\u043b \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f. \u0415\u0441\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u0448\u044c \u044d\u0442\u043e \u2014 \u043e\u0442\u043f\u0438\u0448\u0438\u0441\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u044f \u0445\u043e\u0447\u0443 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u0422\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043b \u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0430 \u0434\u0430\u043b \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u00a0<strong>\u00abflakiness as a signal\u00bb<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0448\u0438\u0442 \u0432 \u0414\u041d\u041a \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<h3>\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u0440\u044b\u0442.<\/h3>\n<p>GitHub:\u00a0<a href=\"https:\/\/github.com\/Artem7898\/flakydetector\" rel=\"noopener noreferrer nofollow\">Artem7898\/flakydetector<\/a><br \/>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 research paper \u2014 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0442\u0430\u043c \u0436\u0435 \u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c\u00a0<code>flaky_v2_42d.cbm<\/code>.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437\u00a0<code>uv<\/code>\u00a0\u0438\u043b\u0438 Docker \u2014 \u0432\u0441\u0451 \u043a\u0430\u043a \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441 \u043d\u043e\u0432\u043e\u0439 \u043c\u043e\u0449\u044c\u044e.<\/p>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u0430\u0439\u043a\u0443 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044e \u2014 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p><strong>\u041f\u0438\u0448\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u043b\u0438 \u0442\u044b \u0441 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438\u0437-\u0437\u0430 \u0444\u0438\u043a\u0441\u0442\u0443\u0440? \u041a\u0430\u043a \u0442\u044b \u0438\u0445 \u043b\u043e\u0432\u0438\u043b? \u041c\u043e\u0436\u0435\u0442, \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0435\u0449\u0451 \u043d\u0435 \u0443\u043c\u0435\u0435\u043c \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c?<\/strong><\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0442\u0435\u043c\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u043e\u0434\u0430 \u0438 ML \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0432\u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u0440\u043e FlakyDetector 1.0 \ud83d\udc47             FlakyDetector 2.0 \ud83d\udc47<br \/><a href=\"https:\/\/habr.com\/ru\/articles\/969354\/\" rel=\"noopener noreferrer nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a>   <a href=\"https:\/\/habr.com\/ru\/articles\/1035782\/\" rel=\"noopener noreferrer nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a> <\/p>\n<p><em>\u0421\u0434\u0435\u043b\u0430\u043d\u043e \u0441 \u043b\u044e\u0431\u043e\u0432\u044c\u044e \u043a \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u043c\u0443 CI \u0438 \u043a \u0442\u0435\u043c, \u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u0442\u044b\u043a\u0430\u0435\u0442 flaky-\u0442\u0435\u0441\u0442\u044b \u043a\u043e\u0441\u0442\u044b\u043b\u044f\u043c\u0438.<\/em><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1043792\/\">https:\/\/habr.com\/ru\/articles\/1043792\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043c\u044b \u0441 \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440, \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0434\u043e 42 \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0432\u0438\u0434\u0435\u0442\u044c order dependency \u0434\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d\u0430 \u0440\u0443\u0448\u0438\u0442 CI\ud83d\udd25 \u041b\u0438\u0434: \u00ab\u0410 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u043c \u0442\u0435\u0441\u0442 flaky \u0438 \u0437\u0430\u0431\u0443\u0434\u0435\u043c\u00bb\u041f\u043e\u043b\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u00a0\u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u043e FlakyDetector\u00a0\u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0449\u0435\u0442 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043b\u0438\u0448\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u041f\u043e\u0442\u043e\u043c \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f FlakyDetector 2.0 . AST + CatBoost, 37 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432, \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0432\u0441\u0451 \u043a\u0440\u0443\u0442\u043e.\u041d\u043e \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043c\u0435\u043d\u044f \u0434\u043e\u0431\u0438\u043b.\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u00a0Ariless\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0435\u0439\u0441: \u0432 \u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0442\u0435\u0441\u0442 \u043f\u0430\u0434\u0430\u043b \u0441\u00a0SLOT_OVERLAP\u00a0\u2014 \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0442\u0435\u0441\u0442\u0430 \u0431\u044b\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043b\u043e\u0445\u043e\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430\u00a0\u0431\u044b\u043b\u0430 \u043e\u0431\u0449\u0430\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u043e\u0432 (shared scope). \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u0435\u0441\u0442 \u043d\u0435 \u0443\u0441\u043f\u0435\u043b \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u043e\u0442 \u2014 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u043f\u0430\u043b.\u00ab\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u043c, \u043d\u0435 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c. \u041a\u043e\u0434 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u043b\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 fixture \u0438\u0437 shared scope \u0432 function scope. SLOT_OVERLAP \u0438\u0441\u0447\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e\u00bb.\u0418 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0441\u0434\u0435\u043b\u0430\u043b:\u00abFlakiness as a signal\u00bb\u00a0\u2014 \u0442\u0435\u0441\u0442 \u043f\u0430\u0434\u0430\u043b \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0431\u044b\u043b \u043f\u043b\u043e\u0445\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u0444\u0435\u043a\u0442 \u0432 \u0434\u0438\u0437\u0430\u0439\u043d\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0435\u0433\u043e flaky \u0438 \u0437\u0430\u0433\u043b\u0443\u0448\u0438\u0442\u044c, \u0442\u043e \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.\u042f \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u0441\u0432\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440. \u0418 \u043f\u043e\u043d\u044f\u043b:\u00a0\u043c\u043e\u0439 FlakyDetector 2.0 \u0431\u044b\u043b \u0441\u043b\u0435\u043f \u043a \u044d\u0442\u043e\u043c\u0443 \u043a\u0435\u0439\u0441\u0443.\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u0430, \u0430 \u043d\u0435 \u043d\u0430\u00a0\u0441\u0432\u044f\u0437\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b.\u041a\u0430\u043a FlakyDetector 2.0 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b SLOT_OVERLAP\u041c\u043e\u0434\u0435\u043b\u044c\u00a0flaky_v1_37d.cbm\u00a0\u0431\u044b\u043b\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0430 \u043d\u0430 37 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430\u0445: \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438\u00a0time.sleep,\u00a0datetime.now(), \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0443\u0442\u0430\u0446\u0438\u0438, \u0446\u0438\u043a\u043b\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.\u0412 \u043a\u0435\u0439\u0441\u0435 Ariless \u0442\u0435\u0441\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e:def test_slot_creation(slot_fixture):    slot = slot_fixture.create()   # \u0447\u0438\u0441\u0442\u043e, \u043d\u0435\u0442 \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432    assert slot.is_empty()\u041d\u0438\u00a0sleep, \u043d\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043d\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432. \u041c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0430 99% \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u0442\u0435\u0441\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u0435\u043d.\u0410 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0433\u0434\u0435-\u0442\u043e \u0432\u00a0conftest.py:@pytest.fixture(scope=&#187;module&#187;)  # \u2190 \u0432\u043e\u0442 \u043e\u043d, \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0437\u043b\u043e\u0434\u0435\u0439def slot_fixture():    return SharedSlot()           # \u2190 \u043d\u0435\u0442 yield, \u043d\u0435\u0442 teardown\u0418 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u00a0SharedSlot\u00a0\u2014 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442. \u0422\u0435\u0441\u0442 A \u0447\u0442\u043e-\u0442\u043e \u0432 \u043d\u0451\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u043b, \u0442\u0435\u0441\u0442 B \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u00a0order dependency.\u0411\u0435\u0437 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0444\u0438\u043a\u0441\u0442\u0443\u0440 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0431\u044b \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448\u0451\u043b. \u0421\u043f\u0430\u0441\u0438\u0431\u043e Ariless \u2014 \u043e\u043d \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f, \u0430 \u0434\u0430\u043b \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0443\u044e \u0438\u0434\u0435\u044e.\u0427\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b: Sprint 1 \u2014 \u0430\u043d\u0430\u043b\u0438\u0437 \u0444\u0438\u043a\u0441\u0442\u0443\u0440 (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043e 42D)\u0417\u0430 \u043e\u0434\u0438\u043d \u0441\u043f\u0440\u0438\u043d\u0442 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u00a05 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0441\u044f\u0442 pytest-\u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b \u0447\u0435\u0440\u0435\u0437 AST:\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u041f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043ehas_session_or_module_fixture\u0415\u0441\u0442\u044c \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430 \u0441\u00a0scope=&#187;module&#187;\u00a0\u0438\u043b\u0438\u00a0&#171;session&#187;\u0428\u0430\u043d\u0441 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438has_yield_in_fixture\u0415\u0441\u0442\u044c \u043b\u0438\u00a0yield\u00a0\u0432 \u0442\u0435\u043b\u0435 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b\u0411\u0435\u0437\u00a0yield\u00a0\u2014 \u043d\u0435\u0442 teardown-\u043b\u043e\u0433\u0438\u043a\u0438fixture_returns_mutable\u0424\u0438\u043a\u0441\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0[]\u00a0\u0438\u043b\u0438\u00a0{}\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 shared scope \u2014 \u044f\u0434fixture_has_autouse\u0424\u043b\u0430\u0433\u00a0autouse=True\u041d\u0435\u044f\u0432\u043d\u043e\u0435 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435, \u0441\u043b\u043e\u0436\u043d\u043e \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044ctest_uses_fixtures\u0414\u043e\u043b\u044f \u00ab\u0440\u0438\u0441\u043a\u043e\u0432\u044b\u0445\u00bb \u0444\u0438\u043a\u0441\u0442\u0443\u0440 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0432\u044b\u0440\u043e\u0441 \u0434\u043e\u00a042 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439.\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435.\u042f \u043f\u0435\u0440\u0435\u043e\u0431\u0443\u0447\u0438\u043b CatBoost \u043d\u0430 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435, \u0433\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u043b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0438 \u0440\u0438\u0441\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u044b. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u0430\u0437\u0438\u043b:\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0412\u0430\u0436\u043d\u043e\u0441\u0442\u044chas_yield_in_fixture66.00%fixture_returns_mutable26.81%test_uses_fixtures6.15%has_session_or_module_fixture1.04%fixture_has_autouse0.00% (\u0432 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u043a\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0438)\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u00a0yield\u00a0\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u043c \u0444\u043b\u0430\u043a\u0438\u043d\u0435\u0441\u0441\u0430.\u00a0\u041c\u043e\u0434\u0435\u043b\u044c \u0441\u0430\u043c\u0430 \u0432\u044b\u0443\u0447\u0438\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e Ariless \u044d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435.\u0422\u0435\u043f\u0435\u0440\u044c FlakyDetector \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u00ab\u0442\u0435\u0441\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u00bb, \u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u043b\u044c\u0446\u0435\u043c:\u26a0\ufe0f\u00a0\u0412 \u043c\u043e\u0434\u0443\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430\u00a0slot_fixture\u00a0\u0441\u00a0scope=&#187;module&#187;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u00a0yield\u00a0\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u0443\u0442\u0435\u0447\u043a\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u0430\u043c\u0438.\u0410 \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435? RAG \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 Sprint 2\u20133\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 Ariless \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0435:\u00ab\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e &#171;\u0435\u0441\u0442\u044c order dependency&#187;, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e: &#171;\u0442\u0435\u0441\u0442 B \u043f\u0430\u0434\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u0441\u0442 A \u043d\u0435 \u043e\u0447\u0438\u0441\u0442\u0438\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 X&#187;.\u00bb\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u043d\u0443\u0436\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u043e\u043d\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b:\u041f\u043b\u0430\u0433\u0438\u043d\u00a0pytest-flaky-trail\u00a0\u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 SQLite \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432, \u0442\u0440\u0435\u0439\u0441\u0431\u044d\u043a\u0438.LLM + RAG\u00a0\u2014 \u0431\u0435\u0440\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0443\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u0430 (\u043a\u043e\u0434 + \u043c\u0435\u0442\u0440\u0438\u043a\u0438), \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c (Qwen 2.5 Coder 7B) \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443 \u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438.ChromaDB\u00a0\u2014 \u0432\u0435\u043a\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442 \u044d\u0442\u0438 \u043e\u0442\u0447\u0451\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:\u00a0\u00ab\u043f\u043e\u043a\u0430\u0436\u0438 \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0434\u0430\u044e\u0442 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430\u00bb.\u041f\u043e\u043a\u0430 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0443\u0436\u0435 \u0434\u0430\u0451\u0442 \u043e\u0442\u0432\u0435\u0442\u044b \u0432 \u0441\u0442\u0438\u043b\u0435:\u00ab\u0422\u0435\u0441\u0442\u00a0test_create_slot\u00a0\u0443\u043f\u0430\u043b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u00a0test_use_slot\u00a0(\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435) \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u043d\u044f\u0442\u044b\u043c \u0441\u043b\u043e\u0442\u00a0slot_123. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0443 \u043d\u0430\u00a0scope=&#187;function&#187;\u00a0\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0yield\u00a0\u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439.\u00bb\u00a0\u041a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u043a\u043e\u0434\u0435 (\u043f\u0440\u0438\u043c\u0435\u0440)\u0420\u0438\u0441\u043a\u043e\u0432\u0430\u044f \u0444\u0438\u043a\u0441\u0442\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442 FlakyDetector 2.0:import pytest@pytest.fixture(scope=&#187;module&#187;)   # \u2190 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 37: Truedef shared_state():    return []                     # \u2190 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 39: True, \u0438 \u043d\u0435\u0442 yield \u2192 \u043f\u0440\u0438\u0437\u043d\u0430\u043a 38: Falsedef test_a(shared_state):    shared_state.append(&#171;a&#187;)      # \u043c\u0443\u0442\u0430\u0446\u0438\u044fdef test_b(shared_state):    assert len(shared_state) == 0 # \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0430\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0442\u0435\u0441\u0442 A \u0431\u044b\u043b \u0440\u0430\u043d\u044c\u0448\u0435\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0430\u043d\u0435\u0440:uv run python scripts\/scan_folder.py .\/tests\/\u0412\u044b\u0432\u043e\u0434:\u26a0\ufe0f CRITICAL: \u0424\u0438\u043a\u0441\u0442\u0443\u0440\u0430 shared_state (test_example.py:5)   &#8212; scope=&#187;module&#187; (shared across tests)   &#8212; \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 yield (\u043d\u0435\u0442 teardown)   &#8212; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a   \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f: \u0434\u043e\u0431\u0430\u0432\u044c yield \u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439 \u0438\u043b\u0438 \u0441\u043c\u0435\u043d\u0438 scope \u043d\u0430 &#171;function&#187;\u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e Ariless\u0422\u0432\u043e\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0441\u0442\u0430\u043b \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f. \u0415\u0441\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u0448\u044c \u044d\u0442\u043e \u2014 \u043e\u0442\u043f\u0438\u0448\u0438\u0441\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u044f \u0445\u043e\u0447\u0443 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u0422\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043b \u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0430 \u0434\u0430\u043b \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u00a0\u00abflakiness as a signal\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0448\u0438\u0442 \u0432 \u0414\u041d\u041a \u043f\u0440\u043e\u0435\u043a\u0442\u0430.\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u0440\u044b\u0442.GitHub:\u00a0Artem7898\/flakydetector\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 research paper \u2014 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0442\u0430\u043c \u0436\u0435 \u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c\u00a0flaky_v2_42d.cbm.\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437\u00a0uv\u00a0\u0438\u043b\u0438 Docker \u2014 \u0432\u0441\u0451 \u043a\u0430\u043a \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441 \u043d\u043e\u0432\u043e\u0439 \u043c\u043e\u0449\u044c\u044e.\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u0430\u0439\u043a\u0443 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044e \u2014 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.\u041f\u0438\u0448\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u043b\u0438 \u0442\u044b \u0441 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438\u0437-\u0437\u0430 \u0444\u0438\u043a\u0441\u0442\u0443\u0440? \u041a\u0430\u043a \u0442\u044b \u0438\u0445 \u043b\u043e\u0432\u0438\u043b? \u041c\u043e\u0436\u0435\u0442, \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0435\u0449\u0451 \u043d\u0435 \u0443\u043c\u0435\u0435\u043c \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c?\u0410 \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0442\u0435\u043c\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u043e\u0434\u0430 \u0438 ML \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0432\u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u0440\u043e FlakyDetector 1.0 \ud83d\udc47             FlakyDetector 2.0 \ud83d\udc47\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e   \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0421\u0434\u0435\u043b\u0430\u043d\u043e \u0441 \u043b\u044e\u0431\u043e\u0432\u044c\u044e \u043a \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u043c\u0443 CI \u0438 \u043a \u0442\u0435\u043c, \u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u0442\u044b\u043a\u0430\u0435\u0442 flaky-\u0442\u0435\u0441\u0442\u044b \u043a\u043e\u0441\u0442\u044b\u043b\u044f\u043c\u0438.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1043792\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482444","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482444"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482444\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}