File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -208,3 +208,24 @@ def get_no_lint_value(unit):
208
208
if no_lint_value and no_lint_value not in supported_no_lint_values :
209
209
ymake .report_configure_error ('Unsupported value for NO_LINT macro: {}' .format (no_lint_value ))
210
210
return no_lint_value
211
+
212
+
213
+ def ugly_conftest_exception (path ):
214
+ """
215
+ FIXME:
216
+ TAXICOMMON-9288: Taxi abused bug with absolute paths and built conftest descovery upon it
217
+ until the issue is filed let's limit impact only to existing files.
218
+ Never let this list grow!!! Fix issue before adding any new violating conftests
219
+ """
220
+ exceptions = [
221
+ 'taxi/uservices/userver-arc-utils/functional_tests/basic/conftest.py' ,
222
+ 'taxi/uservices/userver-arc-utils/functional_tests/basic_chaos/conftest.py' ,
223
+ 'taxi/uservices/userver-arc-utils/functional_tests/json2yaml/conftest.py' ,
224
+ ]
225
+
226
+ if not path .endswith ('conftest.py' ):
227
+ return False
228
+ for e in exceptions :
229
+ if path .endswith (e ):
230
+ return True
231
+ return False
Original file line number Diff line number Diff line change 1
1
import json
2
2
import os
3
3
import six
4
- from _common import rootrel_arc_src
4
+ from _common import rootrel_arc_src , ugly_conftest_exception
5
5
import ymake
6
6
7
7
@@ -65,7 +65,10 @@ def onresource_files(unit, *args):
65
65
['warn' , "Duplicated resource file {} in RESOURCE_FILES() macro. Skipped it." .format (path )]
66
66
)
67
67
continue
68
- src = 'resfs/src/{}={}' .format (key , rootrel_arc_src (path , unit ))
68
+ if not ugly_conftest_exception (path ):
69
+ src = 'resfs/src/{}=${{rootrel;input;context=TEXT:"{}"}}' .format (key , path )
70
+ else :
71
+ src = 'resfs/src/{}={}' .format (key , rootrel_arc_src (path , unit ))
69
72
res += ['-' , src , path , key ]
70
73
71
74
if unit .enabled ('_GO_MODULE' ):
You can’t perform that action at this time.
0 commit comments