Tests for yatool are not working
maximyurchuk opened this issue · comments
Maxim Yurchuk commented
Hello,
I am trying to run yatool tests, but ya test
command doesn't work:
maxim@yurchuk:~/ydbwork/yatool$ ./ya test . -k
Error[-WUserErr]: in At top level: Target 'build/platform/test_tool' not found
Warn: build/external_resources/go_tools is not a buildable target. Skip it.
Error[-WUserErr]: in At top level: Target 'build/external_resources/flake8_py2' not found
Error[-WUserErr]: in At top level: Target 'build/platform/java/jstyle_lib' not found
Error: Unable to fetch resource TEST_TOOL3_HOST_RESOURCE_GLOBAL
Traceback (most recent call last):
File "devtools/ya/yalibrary/runner/tasks/pattern.py", line 41, in __call__
self._ctx.patterns[self._pattern] = self.fetch(self._resources_map[self._pattern])
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'TEST_TOOL3_HOST_RESOURCE_GLOBAL'
------- PREPARE $(TEST_TOOL3_HOST_RESOURCE_GLOBAL)
ERROR: 'TEST_TOOL3_HOST_RESOURCE_GLOBAL'
------- [TS] {debug, default-linux-x86_64, BROKEN_BY_DEPS} devtools/ya/test/programs/test_tool/bin3/import_test
unresolved patterns: TEST_TOOL3_HOST_RESOURCE_GLOBAL
------- [TS] {debug, default-linux-x86_64, BROKEN_BY_DEPS} devtools/ya/test/programs/test_tool/bin3/flake8
unresolved patterns: TEST_TOOL3_HOST_RESOURCE_GLOBAL
------- [TS] {debug, default-linux-x86_64, BROKEN_BY_DEPS} devtools/ya/test/programs/test_tool/bin3/black
unresolved patterns: TEST_TOOL3_HOST_RESOURCE_GLOBAL
------- [TS] {debug, default-linux-x86_64, BROKEN_BY_DEPS} devtools/ya/bin3/import_test
unresolved patterns: TEST_TOOL3_HOST_RESOURCE_GLOBAL
Number of suites skipped due to a failed build: 4
The problem appears to be a missing build\platform\test_tool
directory.
When I copied this directory from ydb repo
maxim@yurchuk:~/ydbwork/yatool$ cp -r ~/ydbwork/ydb/build/platform/test_tool/ build/platform
Tests work better:
maxim@yurchuk:~/ydbwork/yatool$ ./ya test . -k
Warn: build/external_resources/go_tools is not a buildable target. Skip it.
Error[-WUserErr]: in At top level: Target 'build/external_resources/flake8_py2' not found
Error[-WUserErr]: in At top level: Target 'build/platform/java/jstyle_lib' not found
Total 4 suites:
4 - GOOD
Total 4 tests:
4 - GOOD
Ok
Please add the missing directories from Arcadia and fix the synchronization (or remove the dependencies):
build/platform/test_tool
build/external_resources/flake8_py2
build/platform/java/jstyle_lib