aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/tests/postgres_integrations/go-libpq/ya.make
blob: ea2c729f472d35ea1b51e621c1fd159b40a1aae7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
PY3TEST()

FORK_TEST_FILES()
TIMEOUT(600)


# copy from https://docs.yandex-team.ru/devtools/test/environment#docker-compose
REQUIREMENTS(
    container:4467981730 # container with docker
    cpu:all dns:dns64
)

IF(OPENSOURCE)
    IF (SANITIZER_TYPE)
        # Too huge for precommit check with sanitizers
        SIZE(LARGE)
    ELSE()
        SIZE(MEDIUM) # for run per PR
    ENDIF()

    # Including of docker_compose/recipe.inc automatically converts these tests into LARGE,
    # which makes it impossible to run them during precommit checks on Github CI.
    # Next several lines forces these tests to be MEDIUM. To see discussion, visit YDBOPS-8928.

    SET(TEST_TAGS_VALUE)
    SET(TEST_REQUIREMENTS_VALUE)
    # This requirement forces tests to be launched consequently,
    # otherwise CI system would be overloaded due to simultaneous launch of many Docker containers.
    # See DEVTOOLSSUPPORT-44103, YA-1759 for details.
    TAG(ya:not_autocheck)
ELSE()
    SIZE(LARGE) # run in sandbox with timeout more than a minute
    TAG(
        ya:external
        ya:fat
        ya:force_sandbox
    )
ENDIF()


ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
ENV(YDB_ALLOCATE_PGWIRE_PORT="true")
DEPENDS(
    ydb/apps/ydbd
)

TEST_SRCS(
    conftest.py
    docker_wrapper_test.py
)


DATA(
    arcadia/ydb/tests/postgres_integrations/go-libpq/data
)

PEERDIR(
    ydb/tests/postgres_integrations/library
)

END()