Skip to content
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

Tests for yatool are not working #8

Open
maximyurchuk opened this issue Mar 12, 2024 · 0 comments
Open

Tests for yatool are not working #8

maximyurchuk opened this issue Mar 12, 2024 · 0 comments

Comments

@maximyurchuk
Copy link

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
robot-piglet pushed a commit that referenced this issue Apr 14, 2024
robot-piglet pushed a commit that referenced this issue May 2, 2024
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

No branches or pull requests

1 participant