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

Library import 240926-1443 #9817

Open
wants to merge 82 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
f488537
remove cpp/yt/misc no longer depends on cpp/yt/string
E1pp Sep 18, 2024
ad61d94
Update contrib/restricted/boost/asio to 1.78.0
georgthegreat Sep 18, 2024
1717aa8
init pid field
Sep 18, 2024
4c3bb80
Add CUDA 12.6 toolkit
Sep 18, 2024
9b26f8a
Intermediate changes
robot-piglet Sep 18, 2024
f278a31
YT-22408: Add certain attribute filter to attribute consumer
omgronny Sep 18, 2024
a722c5b
Switch contrib/restricted/boost/asio to boost.make_library()
georgthegreat Sep 18, 2024
142e640
support checking detekt in ya make (part 2)
Sep 18, 2024
2383b0f
Set better merge_time_fits alias
zaverden Sep 18, 2024
d52033f
Babenko-issues of rXXXXXX
E1pp Sep 18, 2024
f566662
YT-21709: Introduce TRowBatchReader for shuffle service
Sep 18, 2024
1ff5503
YT-21709: Introduce TRowBatchWriter for shuffle service
Sep 18, 2024
d1a1efc
Prepare to change «main output as extra» ymake's setting default
alexander-somov Sep 18, 2024
ff8fb64
Refactor and improve logging in HTTP client
Sep 18, 2024
dc02efc
Remove switchs for BL and IP from conf
dimdim1177 Sep 19, 2024
3f4d314
Enable Grand Bypass
snermolaev Sep 19, 2024
b483c55
new STYLE_CPP
andrei-levitskii Sep 19, 2024
5fdb960
Use TableClient logger in yt/yt/client/table_client instead of per TU…
E1pp Sep 19, 2024
e6ebd06
YT-22593: Refactor GetKeys
Sep 19, 2024
ca7cae7
Fix issues in rXXXXXX
Sep 19, 2024
aa20162
std::variant formatter: require that arguments are formattable
p4vook Sep 19, 2024
f4a740f
YT: Fix fail on WriteSchema for null object of type TYsonStruct
Sep 19, 2024
7f1172f
Fix reimports
Sep 19, 2024
b8cea93
Drop lld14 support and validation
georgthegreat Sep 19, 2024
5ce9b71
Fix linker time trace
Sep 19, 2024
1c463c1
Fix: reset RawTypeV3, when Type is set (and vice versa)
Sep 19, 2024
452cef3
Remove usages of nullptr_t TString ctor (library/)
Sep 19, 2024
e8df434
YT-21274: Add dynamic tables versioned map reduce write
Sep 19, 2024
d3cfd2d
Move custom signal handler stack from TLS
koct9i Sep 20, 2024
e2d4e77
Intermediate changes
robot-piglet Sep 20, 2024
d2fe5bf
Upload new jdk-23+37
Sep 20, 2024
fb1bca5
New version of the tld SKIP_CHECK SKIP_REVIEW
Sep 21, 2024
6dd46a1
More assertions in refcounters
Sep 21, 2024
9180a47
Intermediate changes
robot-piglet Sep 21, 2024
7deed16
YT: Add with totals expression to query builder
Sep 21, 2024
22ec41d
Increase RC size to 64 bits
Sep 21, 2024
3e1c76c
YT-22593: Switch roles and tags to std::string
Sep 21, 2024
9601091
Intermediate changes
robot-piglet Sep 21, 2024
0ab563a
Update contrib/restricted/fast_float to 6.1.5
robot-piglet Sep 21, 2024
cc32310
Intermediate changes
robot-piglet Sep 22, 2024
374decb
New version of the tld SKIP_CHECK SKIP_REVIEW
Sep 22, 2024
a968b18
GO STRUCT_CMD
IlyaNiklyaev Sep 23, 2024
8b01012
move definition of USE_GRAND_BYPASS and USE_GRAPH_CHANGES_PREDICTOR t…
snermolaev Sep 23, 2024
9cf8a3e
Extract Go lib version from yo
VestniK Sep 23, 2024
b0a2c33
Add some kv p
nemo-cpt Sep 23, 2024
c22960c
Automatic release build for ymake, os_ymake
Sep 23, 2024
f34ba1c
Update contrib/python/types-protobuf to 5.27.0.20240907
robot-piglet Sep 23, 2024
b67425f
Intermediate changes
robot-piglet Sep 23, 2024
a0c6ba8
Automatic release build for test_tool, os_ya, ya_bin, os_test_tool
Sep 23, 2024
4160259
Disable cast to string& from TSring&&
4JustMe4 Sep 23, 2024
3d1f648
Use unified remove function in TFsPath.
Sep 23, 2024
cf44a2f
Fix typo in library/cpp/yt/memory
ponasenko-rs Sep 23, 2024
6f99122
Enable Conan2 in CatBoost export... Fix #2582
andrey-khropov Sep 23, 2024
d1ac458
Make TAtomicIntrusivePtr lsan-friendly
Sep 23, 2024
64ffa9d
Untitled commit
Sep 23, 2024
0919657
Fix TAtomicIntrusivePtr::Reset for lsan
Sep 23, 2024
f377199
Intermediate changes
robot-piglet Sep 23, 2024
53f1304
Implement uninitialized string resize in abseil-cpp-tstring
Sep 23, 2024
7b52d3a
Intermediate changes
robot-piglet Sep 24, 2024
79f4eae
Fix UB in MakeWellKnownId
Sep 24, 2024
2b3fdc0
Intermediate changes
robot-piglet Sep 24, 2024
917e7a2
Add handler for continue status in HTTP response
Sep 24, 2024
d227fe5
faster implicit `TString` → `const std::string&` conversion: using te…
ubyte Sep 24, 2024
c3f7aa6
fix ya tool yq when called with non-Arcadia ya
snermolaev Sep 25, 2024
ad946ea
Support DONT_COMPRESS in RESOURCE_FILES macro
nemo-cpt Sep 25, 2024
8ae794f
Make TNothing nodiscard
Sep 25, 2024
07ceeea
Introduce persistent state transient cache
Sep 25, 2024
c9d7dbf
Intermediate changes
robot-piglet Sep 25, 2024
987226d
YT-22894: Add ability to change chaos replica path with alter_table_r…
olegsidorkin Sep 25, 2024
e575576
add remaining web_pages udfs&nodes
Sep 25, 2024
e4a44c5
Add an option to disable refcounted tracking
Sep 25, 2024
20c026b
Update contrib/libs/cxxsupp/libcxxrt to 2024-09-24
Sep 25, 2024
49a7745
Revert commit rXXXXXX,GO STRUCT_CMD
snermolaev Sep 25, 2024
9d9b3c2
Filter *.fake cgo peers
alexander-somov Sep 25, 2024
4440a98
fix OPENSOURCE build for Windows
snermolaev Sep 26, 2024
ce46dd7
YT-14116: Restart gang operation jobs on another one job restart
k-pogorelov Sep 26, 2024
1339bbd
conf(TS_STYLELINT): version check in configuration
zaverden Sep 26, 2024
c984351
futurize build/scripts
AzaubaevViktor Sep 26, 2024
6d72638
Drop support for older xcode versions
georgthegreat Sep 26, 2024
47e7794
YT-21484: Consider partition sizes in coordination by sample keys
Sep 26, 2024
c853e78
Merge branch 'rightlib' into mergelibs-240926-1443
alexv-smirnov Sep 26, 2024
3026c00
Import libraries 240926-1443
alexv-smirnov Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/conf/a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ arcanum:
requirements:
- system: arcanum
type: merge_time_fits
alias: Merge time intervals (YMAKE-1194)
alias: Merge is forbidden from 11:00 to 20:00 MSK (YMAKE-1194)
data:
merge_intervals_utc:
# 20:00..11:00 MSK
Expand Down
1 change: 1 addition & 0 deletions build/conf/go.conf
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ module GO_LIBRARY: _GO_BASE_UNIT {
SET(MODULE_TYPE LIBRARY)
SET(PEERDIR_TAGS GO GO_PROTO GO_FBS __EMPTY__ RESOURCE_LIB PACKAGE_UNION)

_MAKEFILE_INCLUDE_LIKE_DEPS+=.yo.snapshot.json
MODULE_SUFFIX=.a
}

Expand Down
62 changes: 59 additions & 3 deletions build/conf/java.conf
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ when($JDK_VERSION == "8") {
}

# tag:java-specific
JDK_LATEST_VERSION=22
JDK_LATEST_VERSION=23
JDK_LATEST_PEERDIR=build/platform/java/jdk/jdk${JDK_LATEST_VERSION}

# tag:java-specific
Expand Down Expand Up @@ -1074,6 +1074,13 @@ module JAR_LIBRARY: _COMPILABLE_JAR_BASE {
when($WITH_KOTLINC_PLUGIN_SERIALIZATION) {
KOTLINC_OPTS_VALUE+=-Xplugin=${KOTLIN_COMPILER_RESOURCE_GLOBAL}/plugins/kotlin-serialization-plugin.jar
}
when($WITH_KOTLINC_PLUGIN_DETEKT) {
KOTLINC_OPTS_VALUE+=-Xplugin=${tool:"devtools/detekt-compiler-plugin"}
KOTLINC_OPTS_VALUE+=-P plugin:detekt-compiler-plugin:report=xml:${BINDIR}/misc/detekt-report.xml
# If there are no kt sources, the report won't be generated, however the file must be always present.
ALL_KT_COMMANDS+=&& $YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${BINDIR}/misc/detekt-report.xml
ALL_KT_COMMANDS+=&& $FS_TOOLS copy ${BINDIR}/misc/detekt-report.xml ${output;noauto:"detekt-report.xml"}
}
# Must be in sync with KT_CLASSES_DIR!
# There are problems in JDK13 with abs paths in classpath baked into jar file manifest. Using relative path
# here assumes that jar file with classpath for javac located in the $ARCADIA_BUILD_ROOT
Expand Down Expand Up @@ -1147,6 +1154,11 @@ module JAR_LIBRARY: _COMPILABLE_JAR_BASE {
JAVAC_OPTS+=$ERROR_PRONE_JDK16PLUS_ADD_OPENS
}

when($ERROR_PRONE_VALUE && $JDK_REAL_VERSION == "23") {
JAVAC_FLAGS_VALUE+=$ERROR_PRONE_JDK16PLUS_ADD_OPENS
JAVAC_OPTS+=$ERROR_PRONE_JDK16PLUS_ADD_OPENS
}

when($ERROR_PRONE_VALUE && $ERROR_PRONE_VERSION == "2.7.1") {
JAVAC_FLAGS_VALUE+=$ERROR_PRONE_2_7_1_FORCED_OPTS
JAVAC_OPTS+=$ERROR_PRONE_2_7_1_FORCED_OPTS
Expand All @@ -1165,6 +1177,7 @@ module JAR_LIBRARY: _COMPILABLE_JAR_BASE {
ENABLE(YMAKE_JAVA_TEST)
_ADD_KOTLIN_STYLE_CHECKS($(BUILD_ROOT)/$MODDIR/all-kt-sources.txt REQUIREMENTS cpu:2)
_ADD_JAVA_STYLE_CHECKS($(BUILD_ROOT)/$MODDIR/lint-java.srclst::$(SOURCE_ROOT))
_ADD_DETEKT_REPORT_CHECK($(BUILD_ROOT)/$MODDIR/detekt-report.xml)
_ADD_CLASSPATH_CLASH_CHECK()
JAVA_MODULE()
}
Expand Down Expand Up @@ -1284,7 +1297,10 @@ JAVA_SWIG_DELIM=JAVA_SWIG_DELIM
JDK_REAL_VERSION=
JDK_VERSION=

when ($JDK_VERSION == "22") {
when ($JDK_VERSION == "23") {
JDK_REAL_VERSION=23
}
elsewhen ($JDK_VERSION == "22") {
JDK_REAL_VERSION=22
}
elsewhen ($JDK_VERSION == "21") {
Expand Down Expand Up @@ -1312,6 +1328,9 @@ when ($USE_SYSTEM_JDK) {
JDK_RESOURCE_PEERDIR=
}
otherwise {
when ($JDK_REAL_VERSION == "23") {
JDK_RESOURCE_PEERDIR=build/platform/java/jdk/jdk23 build/platform/java/jdk/jdk17
}
when ($JDK_REAL_VERSION == "22") {
JDK_RESOURCE_PEERDIR=build/platform/java/jdk/jdk22 build/platform/java/jdk/jdk17
}
Expand All @@ -1331,6 +1350,9 @@ otherwise {
}

# tag:java-specific
when ($JDK_REAL_VERSION == "23") {
UBERJAR_RESOURCE_PEERDIR=build/platform/java/uberjar/uberjar23
}
when ($JDK_REAL_VERSION == "22") {
UBERJAR_RESOURCE_PEERDIR=build/platform/java/uberjar/uberjar22
}
Expand All @@ -1353,6 +1375,9 @@ when ($USE_SYSTEM_JDK) {
JDK_RESOURCE=$USE_SYSTEM_JDK
}
otherwise {
when ($JDK_REAL_VERSION == "23") {
JDK_RESOURCE=$JDK23_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "22") {
JDK_RESOURCE=$JDK22_RESOURCE_GLOBAL
}
Expand Down Expand Up @@ -1398,6 +1423,11 @@ when (!$USE_SYSTEM_ERROR_PRONE) {
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.30.0
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_30_0_RESOURCE_GLOBAL
}
elsewhen ($JDK_REAL_VERSION == "23") {
ERROR_PRONE_VERSION=2.30.0
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.30.0
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_30_0_RESOURCE_GLOBAL
}
otherwise {
ERROR_PRONE_VERSION=2.7.1
ERROR_PRONE_PEERDIR=build/platform/java/error_prone
Expand All @@ -1415,6 +1445,9 @@ when ($USE_SYSTEM_UBERJAR) {
UBERJAR_RESOURCE=$USE_SYSTEM_UBERJAR
}
otherwise {
when ($JDK_REAL_VERSION == "23") {
UBERJAR_RESOURCE=$UBERJAR23_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "22") {
UBERJAR_RESOURCE=$UBERJAR22_RESOURCE_GLOBAL
}
Expand All @@ -1433,6 +1466,9 @@ otherwise {
}

# tag:java-specific
when ($JDK_REAL_VERSION == "23") {
WITH_JDK_RESOURCE=$WITH_JDK23_RESOURCE_GLOBAL
}
when ($JDK_REAL_VERSION == "22") {
WITH_JDK_RESOURCE=$WITH_JDK22_RESOURCE_GLOBAL
}
Expand Down Expand Up @@ -1937,20 +1973,35 @@ macro WITH_KOTLINC_SERIALIZATION() {
SET(_WITH_KOTLINC_PLUGIN_SERIALIZATION_SEM && with_kotlinc_plugin_serialization)
}

# tag:kotlin-specific
WITH_KOTLINC_PLUGIN_DETEKT=
_WITH_KOTLINC_PLUGIN_DETEKT_SEM=
### @usage: WITH_KOTLINC_DETEKT(-flags)
###
### Enable detekt kotlin compiler plugin https://detekt.dev/docs/gettingstarted/compilerplugin/
macro WITH_KOTLINC_DETEKT(Options...) {
SET_APPEND(KOTLINC_OPTS_VALUE ${pre=-P plugin\:detekt-compiler-plugin\::Options})
SET(WITH_KOTLINC_PLUGIN_DETEKT yes)
SET(_WITH_KOTLINC_PLUGIN_DETEKT_SEM && with_kotlinc_plugin_detekt)
}


# tag:kotlin-specific
### Also search for _KAPT_OPTS and change version there
_KOTLIN_VERSION=1.9.24
KOTLIN_VERSION=1.9.24
KOTLIN_BOM_FILE=${ARCADIA_ROOT}/contrib/java/org/jetbrains/kotlin/kotlin-bom/1.9.24/ya.dependency_management.inc
GROOVY_VERSION=3.0.5
DETEKT_VERSION=1.23.7

_KOTLIN_SEM= \
${_WITH_KOTLIN_SEM} \
${_KOTLIN_VERSION_SEM} \
${_WITH_KOTLINC_PLUGIN_ALLOPEN_SEM} \
${_WITH_KOTLINC_PLUGIN_LOMBOK_SEM} \
${_WITH_KOTLINC_PLUGIN_NOARG_SEM} \
${_WITH_KOTLINC_PLUGIN_SERIALIZATION_SEM}
${_WITH_KOTLINC_PLUGIN_SERIALIZATION_SEM} \
${_WITH_KOTLINC_PLUGIN_DETEKT_SEM}


_JAVA_PROTO_GRPC_SEM=
Expand Down Expand Up @@ -2083,6 +2134,11 @@ elsewhen ($JDK_REAL_VERSION == "22") {
# see also devtools/ya/jbuild/gen/actions/idea.py
KOTLIN_JVM_TARGET=21
}
elsewhen ($JDK_REAL_VERSION == "23") {
# remove when kotlin starts supporting jdk21 bytecode
# see also devtools/ya/jbuild/gen/actions/idea.py
KOTLIN_JVM_TARGET=21
}
otherwise {
KOTLIN_JVM_TARGET=$JDK_REAL_VERSION
}
Expand Down
5 changes: 2 additions & 3 deletions build/conf/linkers/ld.conf
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ when ($TIME_TRACE_GRANULARITY && $TIME_TRACE_GRANULARITY != "") {
_LINKER_TIME_TRACE_FLAG=
when (($TIME_TRACE == "yes" || $LINKER_TIME_TRACE == "yes") && $_DEFAULT_LINKER_ID == "lld") {
_LINKER_TIME_TRACE_FLAG=\
-Wl,--time-trace \
-Wl,--time-trace-granularity=$_LINKER_TIME_TRACE_GRANULARITY \
-Wl,--time-trace-file=${rootrel;output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX.time_trace.json:REALPRJNAME}
-Wl,--time-trace=${rootrel;output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX.time_trace.json:REALPRJNAME} \
-Wl,--time-trace-granularity=$_LINKER_TIME_TRACE_GRANULARITY
}

_EXE_FLAGS=\
Expand Down
14 changes: 7 additions & 7 deletions build/conf/linkers/msvc_linker.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LINK_EXE_CMD=${_WINE_LINK_PREFIX} ${_MSVC_LINK_OLD}
LINK_LIB_CMD=${_WINE_LIB_PREFIX} ${_MSVC_LIB_OLD}
LINK_EXE_CMD=${_WINE_LINK_PREFIX} ${_MSVC_LINK}
LINK_LIB_CMD=${_WINE_LIB_PREFIX} ${_MSVC_LIB}

_MSVC_ARCH=
when ($ARCH_I386 == "yes" || $ARCH_I686 == "yes") {
Expand Down Expand Up @@ -46,9 +46,9 @@ when (!$NO_DEBUGINFO || $NO_DEBUGINFO == "no" || $NO_DEBUGINFO == "0") {
_FLAGS_COMMON_LIBPATHS=
when ($IDE_MSVS != "yes") {
_FLAGS_COMMON_LIBPATHS=\
/LIBPATH:\"${quo:_MSVC_TC_KIT_LIBS}/um/$_MSVC_ARCH\" \
/LIBPATH:\"${quo:_MSVC_TC_KIT_LIBS}/ucrt/$_MSVC_ARCH\" \
/LIBPATH:\"${quo:_MSVC_TC_VC_ROOT}/lib/$_MSVC_ARCH\"
/LIBPATH:\""${_MSVC_TC_KIT_LIBS}/um/$_MSVC_ARCH"\" \
/LIBPATH:\""${_MSVC_TC_KIT_LIBS}/ucrt/$_MSVC_ARCH"\" \
/LIBPATH:\""${_MSVC_TC_VC_ROOT}/lib/$_MSVC_ARCH"\"
}

_FLAGS_COMMON =/NOLOGO /ERRORREPORT:PROMPT /SUBSYSTEM:CONSOLE /TLBID:1 $MSVC_DYNAMICBASE /NXCOMPAT
Expand Down Expand Up @@ -107,7 +107,7 @@ OBJADDE_LIB_GLOBAL=

LINK_EXE_FLAGS=$LINK_EXE_FLAGS_PER_TYPE
LINK_EXE_VFS_FLAGS=
when ($_UNDER_WINE_LINK != "yes") {
when ($_UNDER_WINE_LINK != "yes" && $USE_MSVC_LINKER != "yes") {
LINK_EXE_VFS_FLAGS=/vfsoverlay:${BINDIR}/vfsoverlay.yaml
}
LINK_EXE_FLAGS+=${LINK_EXE_VFS_FLAGS}
Expand All @@ -118,7 +118,7 @@ GENERATE_COMMON_LIB_VFS_CMD=\
${_FLAGS_COMMON_LIBPATHS}

GENERATE_COMMON_LIB_VFS=
when ($_UNDER_WINE_LINK != "yes") {
when ($_UNDER_WINE_LINK != "yes" && $USE_MSVC_LINKER != "yes") {
GENERATE_COMMON_LIB_VFS=${GENERATE_COMMON_LIB_VFS_CMD}
}

Expand Down
33 changes: 24 additions & 9 deletions build/conf/python.conf
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ macro NO_YMAKE_PYTHON3() {
SET(YMAKE_PYTHON3_PEERDIR)
}

PYTHON_LINTERS_DEFAULT_CONFIGS=build/config/tests/py_style/default_configs.json

FLAKE_EXTRA_PARAMS=
FLAKE_MIGRATIONS_CONFIG=
FLAKE_CONFIG_FILES=build/config/tests/flake8/flake8.conf $FLAKE_MIGRATIONS_CONFIG
when ($DISABLE_FLAKE8_MIGRATIONS == "yes") {
FLAKE_EXTRA_PARAMS="DISABLE_FLAKE8_MIGRATIONS=yes"
}
Expand Down Expand Up @@ -265,40 +266,54 @@ multimodule PY3_PROGRAM {
}
}

# tag:python-specific tag:internal
### @usage: _ADD_PY_LINTER_CHECK(NAME name LINTER linter [DEPENDS deps] CONFIGS configs_file [GLOBAL_RESOURCES gr] [FILE_PROCESSING_TIME fpt] [EXTRA_PARAMS params] [PROJECT_TO_CONFIG_MAP pcm] [FLAKE_MIGRATIONS_CONFIG fmc] [CUSTOM_CONFIG cc])
###
### Triggers respective plugin
macro _ADD_PY_LINTER_CHECK(Args...) {
SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS ${ARCADIA_ROOT}/${PYTHON_LINTERS_DEFAULT_CONFIGS})
}

# tag:python-specific tag:internal
### @usage: STYLE_DUMMY()
###
### Not an actual linter, used for dummy linter demonstration
macro STYLE_DUMMY() {
_ADD_PY_LINTER_CHECK(NAME dummy_linter LINTER tools/dummy_linter/dummy_linter CONFIGS $PYTHON_LINTERS_DEFAULT_CONFIGS)
}

# tag:python-specific tag:test
### @usage: STYLE_PYTHON([pyproject])
###
### Check python3 sources for style issues using black.
BLACK_CONFIG_FILES=
macro STYLE_PYTHON(pyproject...) {
BLACK_CONFIG_FILES=$pyproject build/config/tests/py_style/config.toml
_ADD_PY_LINTER_CHECK(NAME black LINTER tools/black_linter/black_linter FILE_PROCESSING_TIME $BLACK_FILE_PROCESSING_TIME CONFIGS $BLACK_CONFIG_FILES)
_ADD_PY_LINTER_CHECK(NAME black LINTER tools/black_linter/black_linter FILE_PROCESSING_TIME $BLACK_FILE_PROCESSING_TIME CONFIGS $PYTHON_LINTERS_DEFAULT_CONFIGS CUSTOM_CONFIG $pyproject)
}

# tag:python-specific tag:test
### @usage: STYLE_RUFF()
###
### Check python3 sources for style issues using ruff.
RUFF_CONFIG_PATHS_FILE=build/config/tests/ruff/ruff_config_paths.json
RUFF_PROJECT_TO_CONFIG_MAP=build/config/tests/ruff/ruff_config_paths.json
macro STYLE_RUFF() {
SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS ${ARCADIA_ROOT}/${RUFF_CONFIG_PATHS_FILE})
_ADD_PY_LINTER_CHECK(NAME ruff LINTER tools/ruff_linter/bin/ruff_linter GLOBAL_RESOURCES build/external_resources/ruff CONFIGS $RUFF_CONFIG_PATHS_FILE)
SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS ${ARCADIA_ROOT}/${RUFF_PROJECT_TO_CONFIG_MAP})
_ADD_PY_LINTER_CHECK(NAME ruff LINTER tools/ruff_linter/bin/ruff_linter GLOBAL_RESOURCES build/external_resources/ruff CONFIGS $PYTHON_LINTERS_DEFAULT_CONFIGS PROJECT_TO_CONFIG_MAP $RUFF_PROJECT_TO_CONFIG_MAP)
}

# tag:python-specific tag:test
### @usage: STYLE_FLAKE8()
###
### Check python3 sources for style issues using flake8.
macro STYLE_FLAKE8() {
_ADD_PY_LINTER_CHECK(NAME flake8 LINTER tools/flake8_linter/flake8_linter GLOBAL_RESOURCES build/external_resources/flake8_py3 FILE_PROCESSING_TIME $FLAKE8_FILE_PROCESSING_TIME CONFIGS $FLAKE_CONFIG_FILES EXTRA_PARAMS $FLAKE_EXTRA_PARAMS)
_ADD_PY_LINTER_CHECK(NAME flake8 LINTER tools/flake8_linter/flake8_linter GLOBAL_RESOURCES build/external_resources/flake8_py3 FILE_PROCESSING_TIME $FLAKE8_FILE_PROCESSING_TIME CONFIGS $PYTHON_LINTERS_DEFAULT_CONFIGS FLAKE_MIGRATIONS_CONFIG $FLAKE_MIGRATIONS_CONFIG EXTRA_PARAMS $FLAKE_EXTRA_PARAMS)
}

# tag:python-specific tag:test
### @usage: STYLE_PY2_FLAKE8()
###
### Check python3 sources for style issues using flake8.
macro STYLE_PY2_FLAKE8() {
_ADD_PY_LINTER_CHECK(NAME py2_flake8 LINTER tools/flake8_linter/flake8_linter GLOBAL_RESOURCES build/external_resources/flake8_py2 FILE_PROCESSING_TIME $FLAKE8_FILE_PROCESSING_TIME CONFIGS $FLAKE_CONFIG_FILES EXTRA_PARAMS $FLAKE_EXTRA_PARAMS)
_ADD_PY_LINTER_CHECK(NAME py2_flake8 LINTER tools/flake8_linter/flake8_linter GLOBAL_RESOURCES build/external_resources/flake8_py2 FILE_PROCESSING_TIME $FLAKE8_FILE_PROCESSING_TIME CONFIGS $PYTHON_LINTERS_DEFAULT_CONFIGS FLAKE_MIGRATIONS_CONFIG $FLAKE_MIGRATIONS_CONFIG EXTRA_PARAMS $FLAKE_EXTRA_PARAMS)
}

# tag:python-specific tag:test
Expand Down
6 changes: 1 addition & 5 deletions build/conf/settings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ FORCE_RESOLVE_MACRO_INCLS=yes
ENABLE_RERESOLVE_FOR_GENERATED_FILES=yes
REPORT_ALL_DUPSRC=yes
DEPS_CACHE_CONTROL_UIDS_CACHE=yes
INCLUDE_BLACKLIST_TO_CONF_HASH=no
INCLUDE_ISOLATED_PROJECTS_TO_CONF_HASH=no
USE_GRAND_BYPASS=no
USE_GLOBAL_CMD=yes
YMAKE_USE_NEW_UIDS=yes
USE_GRAPH_CHANGES_PREDICTOR=yes
PIC_NO_PIE=no
FAIL_PY2=no
MAIN_OUTPUT_AS_EXTRA=no

when ($YMAKE_USE_OLD_UIDS == "yes") {
YMAKE_USE_NEW_UIDS=no
Expand All @@ -32,7 +29,6 @@ when ($OS_WINDOWS == "yes") {
}

when ($AUTOCHECK == "yes") {
USE_GRAPH_CHANGES_PREDICTOR=no
PIC_NO_PIE=yes
}

Expand Down
12 changes: 0 additions & 12 deletions build/config/tests/py_style/config_paths.json

This file was deleted.

6 changes: 6 additions & 0 deletions build/config/tests/py_style/default_configs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"flake8": "build/config/tests/flake8/flake8.conf",
"py2_flake8": "build/config/tests/flake8/flake8.conf",
"black": "build/config/tests/py_style/config.toml",
"dummy_linter": "build/config/tests/py_style/dummy_linter_config.json"
}
1 change: 1 addition & 0 deletions build/config/tests/py_style/dummy_linter_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion build/config/tests/py_style/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ LIBRARY()

RESOURCE_FILES(
config.toml
config_paths.json
)

END()
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ os.api_level=21
[tool_requires]
android-ndk/r25
[options]
[env]

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ os.api_level=21
[tool_requires]
android-ndk/r25
[options]
[env]

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ os.api_level=21
[tool_requires]
android-ndk/r25
[options]
[env]

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ os.api_level=21
[tool_requires]
android-ndk/r25
[options]
[env]

Loading
Loading