Skip to content

Commit

Permalink
Merge branch 'main' into pg-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Sep 4, 2024
2 parents d3e5cba + 89a663c commit f6184bc
Show file tree
Hide file tree
Showing 350 changed files with 8,181 additions and 3,888 deletions.
14 changes: 7 additions & 7 deletions .github/actions/test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,18 @@ runs:
IS_RETRY=0
fi

CURRENT_PUBLIC_DIR_RELATIVE=try_$RETRY
CURRENT_PUBLIC_DIR=$PUBLIC_DIR/$CURRENT_PUBLIC_DIR_RELATIVE
mkdir $CURRENT_PUBLIC_DIR

if [ ${{ inputs.testman_token }} ]; then
# inititalize testmo session
TESTMO_RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
TESTMO_TOKEN=${{ inputs.testman_token }} testmo automation:resources:add-link --name build --url "$TESTMO_RUN_URL" --resources testmo.json
TESTMO_TOKEN=${{ inputs.testman_token }} testmo automation:resources:add-field --name git-sha --type string --value "${GITHUB_SHA:0:7}" --resources testmo.json
TESTMO_TOKEN=${{ inputs.testman_token }} testmo automation:resources:add-link --name build --url "$TESTMO_RUN_URL" --resources $CURRENT_PUBLIC_DIR/testmo.json
TESTMO_TOKEN=${{ inputs.testman_token }} testmo automation:resources:add-field --name git-sha --type string --value "${GITHUB_SHA:0:7}" --resources $CURRENT_PUBLIC_DIR/testmo.json
TESTMO_RUN_ID=$(
TESTMO_TOKEN=${{ inputs.testman_token }} testmo automation:run:create --instance "https://$TESTMO_PROXY_ADDR" --project-id ${{ inputs.testman_project_id }} \
--name "$TESTMO_RUN_NAME" --source "$TESTMO_SOURCE" --resources testmo.json \
--name "$TESTMO_RUN_NAME" --source "$TESTMO_SOURCE" --resources $CURRENT_PUBLIC_DIR/testmo.json \
--tags "$TESTMO_BRANCH_TAG" --tags "$TESTMO_EXTRA_TAG"
)
echo "runid=${TESTMO_RUN_ID}" >> $GITHUB_OUTPUT
Expand All @@ -306,10 +310,6 @@ runs:

echo $CURRENT_MESSAGE | GITHUB_TOKEN="${{ github.token }}" .github/scripts/tests/comment-pr.py

CURRENT_PUBLIC_DIR_RELATIVE=try_$RETRY
CURRENT_PUBLIC_DIR=$PUBLIC_DIR/$CURRENT_PUBLIC_DIR_RELATIVE
mkdir $CURRENT_PUBLIC_DIR

CURRENT_JUNIT_XML_PATH=$CURRENT_PUBLIC_DIR/junit.xml
set +ex
(./ya make ${{ inputs.build_target }} "${params[@]}" \
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/tests/transform-ya-junit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import re
import json
import os
import shutil
import sys
import urllib.parse
import zipfile
Expand Down Expand Up @@ -145,7 +146,7 @@ def save_log(build_root, fn, out_dir, log_url_prefix, trunc_size):
break
out_fp.write(buf)
else:
os.symlink(fn, out_fn)
shutil.copyfile(fn, out_fn)
quoted_fpath = urllib.parse.quote(fpath)
return f"{log_url_prefix}{quoted_fpath}"

Expand Down Expand Up @@ -234,7 +235,7 @@ def main():
parser.add_argument(
"--log_truncate_size",
type=int,
default=134217728,
default=134217728, # 128 kb
help="truncate log after specific size, 0 disables truncation",
)
parser.add_argument("--ya_out", help="ya make output dir (for searching logs and artifacts)")
Expand Down
21 changes: 1 addition & 20 deletions build/conf/java.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1229,9 +1229,6 @@ elsewhen ($JDK_VERSION == "20") {
elsewhen ($JDK_VERSION == "17") {
JDK_REAL_VERSION=17
}
elsewhen ($JDK_VERSION == "15") {
JDK_REAL_VERSION=15
}
elsewhen ($JDK_VERSION == "11") {
JDK_REAL_VERSION=11
}
Expand Down Expand Up @@ -1261,9 +1258,6 @@ otherwise {
# need jdk11 for spare parts in "host" platform
JDK_RESOURCE_PEERDIR=build/platform/java/jdk/jdk17 build/platform/java/jdk/jdk11
}
when ($JDK_REAL_VERSION == "15") {
JDK_RESOURCE_PEERDIR=build/platform/java/jdk/jdk15 build/platform/java/jdk/jdk17
}
when ($JDK_REAL_VERSION == "11") {
JDK_RESOURCE_PEERDIR=build/platform/java/jdk/jdk11 build/platform/java/jdk/jdk17
}
Expand All @@ -1282,9 +1276,6 @@ when ($JDK_REAL_VERSION == "20") {
when ($JDK_REAL_VERSION == "17") {
UBERJAR_RESOURCE_PEERDIR=build/platform/java/uberjar/uberjar17
}
when ($JDK_REAL_VERSION == "15") {
UBERJAR_RESOURCE_PEERDIR=build/platform/java/uberjar/uberjar15
}
when ($JDK_REAL_VERSION == "11") {
UBERJAR_RESOURCE_PEERDIR=build/platform/java/uberjar/uberjar11
}
Expand All @@ -1307,9 +1298,6 @@ otherwise {
when ($JDK_REAL_VERSION == "17") {
JDK_RESOURCE=$JDK17_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "15") {
JDK_RESOURCE=$JDK15_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "11") {
JDK_RESOURCE=$JDK11_RESOURCE_GLOBAL
}
Expand All @@ -1318,7 +1306,7 @@ otherwise {
# tag:java-specific
when (!$USE_SYSTEM_ERROR_PRONE) {
# Still not done: DTCC-667
when ($JDK_REAL_VERSION == "11" || $JDK_REAL_VERSION == "15") {
when ($JDK_REAL_VERSION == "11") {
ERROR_PRONE_VERSION=2.7.1
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.7.1
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_7_1_RESOURCE_GLOBAL
Expand Down Expand Up @@ -1372,9 +1360,6 @@ otherwise {
when ($JDK_REAL_VERSION == "17") {
UBERJAR_RESOURCE=$UBERJAR17_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "15") {
UBERJAR_RESOURCE=$UBERJAR15_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "11") {
UBERJAR_RESOURCE=$UBERJAR11_RESOURCE_GLOBAL
}
Expand All @@ -1393,9 +1378,6 @@ when ($JDK_REAL_VERSION == "20") {
when ($JDK_REAL_VERSION == "17") {
WITH_JDK_RESOURCE=$WITH_JDK17_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "15") {
WITH_JDK_RESOURCE=$WITH_JDK15_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "11") {
WITH_JDK_RESOURCE=$WITH_JDK11_RESOURCE_GLOBAL
}
Expand Down Expand Up @@ -1745,7 +1727,6 @@ macro ADD_DLLS_TO_JAR() {
# tag:java-specific
MANAGED_PEERS=
MANAGED_PEERS_CLOSURE=
RUN_JAVA_PROGRAM_MANAGED=
MANAGEABLE_PEERS_ROOTS=contrib/java
HAS_MANAGEABLE_PEERS=no
PROPAGATES_MANAGEABLE_PEERS=no
Expand Down
1 change: 0 additions & 1 deletion build/conf/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@
"default": [
"Service-Default-License",
"Service-Dll-Harness",
"Service-Prebuilt-Tool",
"Service-Py23-Proxy",
"Service-Unknown-License-Java"
]
Expand Down
2 changes: 1 addition & 1 deletion build/config/tests/cpp_style/config.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ SortIncludes: false
IndentPPDirectives: BeforeHash

SpaceBeforeInheritanceColon: false
NamespaceMacros: [Y_UNIT_TEST_SUITE, Y_UNIT_TEST]
NamespaceMacros: [Y_UNIT_TEST_SUITE]
AttributeMacros: [Y_PRINTF_FORMAT, Y_NO_SANITIZE, Y_FORCE_INLINE, Y_NO_INLINE, Y_WARN_UNUSED_RESULT, Y_HIDDEN, Y_PUBLIC, Y_PURE_FUNCTION]
IndentExternBlock: Indent
TypenameMacros: [Y_THREAD, Y_STATIC_THREAD, Y_POD_THREAD, Y_POD_STATIC_THREAD]
Expand Down
10 changes: 5 additions & 5 deletions build/external_resources/ymake/public.resources.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"by_platform": {
"darwin": {
"uri": "sbr:6959220365"
"uri": "sbr:6976467840"
},
"darwin-arm64": {
"uri": "sbr:6959217204"
"uri": "sbr:6976467045"
},
"linux": {
"uri": "sbr:6959225691"
"uri": "sbr:6976469309"
},
"linux-aarch64": {
"uri": "sbr:6959214449"
"uri": "sbr:6976466498"
},
"win32-clang-cl": {
"uri": "sbr:6959223374"
"uri": "sbr:6976468552"
}
}
}
10 changes: 5 additions & 5 deletions build/external_resources/ymake/resources.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"by_platform": {
"darwin": {
"uri": "sbr:6959209660"
"uri": "sbr:6976470248"
},
"darwin-arm64": {
"uri": "sbr:6959207343"
"uri": "sbr:6976469418"
},
"linux": {
"uri": "sbr:6960956636"
"uri": "sbr:6976471430"
},
"linux-aarch64": {
"uri": "sbr:6959205082"
"uri": "sbr:6976468560"
},
"win32-clang-cl": {
"uri": "sbr:6959211457"
"uri": "sbr:6976470807"
}
}
}
16 changes: 16 additions & 0 deletions build/mapping.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@
"6888066924": "https://devtools-registry.s3.yandex.net/6888066924",
"6937600791": "https://devtools-registry.s3.yandex.net/6937600791",
"6959220365": "https://devtools-registry.s3.yandex.net/6959220365",
"6976467840": "https://devtools-registry.s3.yandex.net/6976467840",
"5766171800": "https://devtools-registry.s3.yandex.net/5766171800",
"5805430761": "https://devtools-registry.s3.yandex.net/5805430761",
"5829025456": "https://devtools-registry.s3.yandex.net/5829025456",
Expand Down Expand Up @@ -559,6 +560,7 @@
"6888066560": "https://devtools-registry.s3.yandex.net/6888066560",
"6937600701": "https://devtools-registry.s3.yandex.net/6937600701",
"6959217204": "https://devtools-registry.s3.yandex.net/6959217204",
"6976467045": "https://devtools-registry.s3.yandex.net/6976467045",
"5766173070": "https://devtools-registry.s3.yandex.net/5766173070",
"5805432830": "https://devtools-registry.s3.yandex.net/5805432830",
"5829031598": "https://devtools-registry.s3.yandex.net/5829031598",
Expand Down Expand Up @@ -593,6 +595,7 @@
"6888067594": "https://devtools-registry.s3.yandex.net/6888067594",
"6937601032": "https://devtools-registry.s3.yandex.net/6937601032",
"6959225691": "https://devtools-registry.s3.yandex.net/6959225691",
"6976469309": "https://devtools-registry.s3.yandex.net/6976469309",
"5766171341": "https://devtools-registry.s3.yandex.net/5766171341",
"5805430188": "https://devtools-registry.s3.yandex.net/5805430188",
"5829023352": "https://devtools-registry.s3.yandex.net/5829023352",
Expand Down Expand Up @@ -627,6 +630,7 @@
"6888066108": "https://devtools-registry.s3.yandex.net/6888066108",
"6937600548": "https://devtools-registry.s3.yandex.net/6937600548",
"6959214449": "https://devtools-registry.s3.yandex.net/6959214449",
"6976466498": "https://devtools-registry.s3.yandex.net/6976466498",
"5766172695": "https://devtools-registry.s3.yandex.net/5766172695",
"5805432230": "https://devtools-registry.s3.yandex.net/5805432230",
"5829029743": "https://devtools-registry.s3.yandex.net/5829029743",
Expand Down Expand Up @@ -661,6 +665,7 @@
"6888067214": "https://devtools-registry.s3.yandex.net/6888067214",
"6937600896": "https://devtools-registry.s3.yandex.net/6937600896",
"6959223374": "https://devtools-registry.s3.yandex.net/6959223374",
"6976468552": "https://devtools-registry.s3.yandex.net/6976468552",
"4307890075": "https://devtools-registry.s3.yandex.net/4307890075",
"5517245192": "https://devtools-registry.s3.yandex.net/5517245192",
"4307901240": "https://devtools-registry.s3.yandex.net/4307901240",
Expand Down Expand Up @@ -734,6 +739,9 @@
"6956610092": "https://devtools-registry.s3.yandex.net/6956610092",
"6957903888": "https://devtools-registry.s3.yandex.net/6957903888",
"6391354461": "https://devtools-registry.s3.yandex.net/6391354461",
"6990868751": "https://devtools-registry.s3.yandex.net/6990868751",
"6990860705": "https://devtools-registry.s3.yandex.net/6990860705",
"6990881789": "https://devtools-registry.s3.yandex.net/6990881789",
"3167009386": "https://devtools-registry.s3.yandex.net/3167009386",
"3050798466": "https://devtools-registry.s3.yandex.net/3050798466",
"3064614561": "https://devtools-registry.s3.yandex.net/3064614561",
Expand Down Expand Up @@ -1352,6 +1360,7 @@
"6888066924": "devtools/ymake/bin/ymake for darwin",
"6937600791": "devtools/ymake/bin/ymake for darwin",
"6959220365": "devtools/ymake/bin/ymake for darwin",
"6976467840": "devtools/ymake/bin/ymake for darwin",
"5766171800": "devtools/ymake/bin/ymake for darwin-arm64",
"5805430761": "devtools/ymake/bin/ymake for darwin-arm64",
"5829025456": "devtools/ymake/bin/ymake for darwin-arm64",
Expand Down Expand Up @@ -1386,6 +1395,7 @@
"6888066560": "devtools/ymake/bin/ymake for darwin-arm64",
"6937600701": "devtools/ymake/bin/ymake for darwin-arm64",
"6959217204": "devtools/ymake/bin/ymake for darwin-arm64",
"6976467045": "devtools/ymake/bin/ymake for darwin-arm64",
"5766173070": "devtools/ymake/bin/ymake for linux",
"5805432830": "devtools/ymake/bin/ymake for linux",
"5829031598": "devtools/ymake/bin/ymake for linux",
Expand Down Expand Up @@ -1420,6 +1430,7 @@
"6888067594": "devtools/ymake/bin/ymake for linux",
"6937601032": "devtools/ymake/bin/ymake for linux",
"6959225691": "devtools/ymake/bin/ymake for linux",
"6976469309": "devtools/ymake/bin/ymake for linux",
"5766171341": "devtools/ymake/bin/ymake for linux-aarch64",
"5805430188": "devtools/ymake/bin/ymake for linux-aarch64",
"5829023352": "devtools/ymake/bin/ymake for linux-aarch64",
Expand Down Expand Up @@ -1454,6 +1465,7 @@
"6888066108": "devtools/ymake/bin/ymake for linux-aarch64",
"6937600548": "devtools/ymake/bin/ymake for linux-aarch64",
"6959214449": "devtools/ymake/bin/ymake for linux-aarch64",
"6976466498": "devtools/ymake/bin/ymake for linux-aarch64",
"5766172695": "devtools/ymake/bin/ymake for win32-clang-cl",
"5805432230": "devtools/ymake/bin/ymake for win32-clang-cl",
"5829029743": "devtools/ymake/bin/ymake for win32-clang-cl",
Expand Down Expand Up @@ -1488,6 +1500,7 @@
"6888067214": "devtools/ymake/bin/ymake for win32-clang-cl",
"6937600896": "devtools/ymake/bin/ymake for win32-clang-cl",
"6959223374": "devtools/ymake/bin/ymake for win32-clang-cl",
"6976468552": "devtools/ymake/bin/ymake for win32-clang-cl",
"4307890075": "flake8_linter for linux",
"5517245192": "flake8_linter for linux",
"4307901240": "flake8_linter for linux-aarch64",
Expand Down Expand Up @@ -1561,6 +1574,9 @@
"6956610092": "none-none-none-result_resources/jdk-windows-amd64.yandex.tgz",
"6957903888": "none-none-none-result_resources/jdk-windows-amd64.yandex.tgz",
"6391354461": "none-none-none-result_resources/protoc-linux-x86_64.tgz",
"6990868751": "none-none-none-sandbox/backup/3527d100-e2d0-4b0e-bb7a-905010853d98/yfm-docs.tar",
"6990860705": "none-none-none-sandbox/backup/d386643e-58f8-43e1-8760-341d73801df8/yfm-docs.tar",
"6990881789": "none-none-none-sandbox/backup/efc428e5-52a5-4a6f-8f0c-53f1d255efea/yfm-docs.tar",
"3167009386": "openjdk 11.0.15 vanilla for darwin",
"3050798466": "openjdk 11.0.15 vanilla for darwin-arm64",
"3064614561": "openjdk 11.0.15 vanilla for linux",
Expand Down
17 changes: 0 additions & 17 deletions build/platform/java/jdk/jdk15/jdk.json

This file was deleted.

10 changes: 0 additions & 10 deletions build/platform/java/jdk/jdk15/ya.make

This file was deleted.

4 changes: 0 additions & 4 deletions build/platform/java/jdk/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ ELSEIF(JDK_REAL_VERSION == "20")
ELSEIF(JDK_REAL_VERSION == "17")
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk17/jdk.json)
SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk17/jdk.json)
ELSEIF(JDK_REAL_VERSION == "15")
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk15/jdk.json)
SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk15/jdk.json)
ELSEIF(JDK_REAL_VERSION == "11")
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk11/jdk.json)
SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk11/jdk.json)
Expand All @@ -33,7 +30,6 @@ END()

RECURSE(
jdk11
jdk15
jdk17
jdk20
jdk21
Expand Down
5 changes: 3 additions & 2 deletions build/platform/lld/ya.make
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
RESOURCES_LIBRARY()

LICENSE(Service-Prebuilt-Tool)

DEFAULT(LLD_VERSION ${CLANG_VER})

TOOLCHAIN(lld)
VERSION(${LLD_VERSION})

IF (LLD_VERSION == 14)
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(LLD_ROOT lld14.json)
ELSE()
Expand Down
8 changes: 4 additions & 4 deletions build/platform/yfm/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ENDIF()

DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
YFM_TOOL
sbr:6662972834 FOR DARWIN-ARM64
sbr:6662972834 FOR DARWIN
sbr:6662965433 FOR LINUX
sbr:6662980150 FOR WIN32
sbr:6990868751 FOR DARWIN-ARM64
sbr:6990868751 FOR DARWIN
sbr:6990860705 FOR LINUX
sbr:6990881789 FOR WIN32
)

END()
1 change: 0 additions & 1 deletion build/plugins/_dart_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,6 @@ def normalized(cls, unit, flat_args, spec_args):
@classmethod
def test_srcs(cls, unit, flat_args, spec_args):
test_files = get_values_list(unit, 'TEST_SRCS_VALUE')
test_files = _resolve_module_files(unit, unit.get("MODDIR"), test_files)
return {cls.KEY: serialize_list(test_files)}

@classmethod
Expand Down
Loading

0 comments on commit f6184bc

Please sign in to comment.