forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18,686 changed files
with
4,890,639 additions
and
14,446 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Used to find targets without RECURSE/RECURCE_FOR_TESTS/.. paths from ydb/ya.make | ||
# TODO: run this check in CI | ||
|
||
set -e | ||
|
||
# find all modules+tests from ydb/ya.make | ||
./ya make -Gj0 -ttt ydb --build release -k --cache-tests --build-all > output_dump | ||
cat output_dump | jq '.graph[]' | jq 'select( ."node-type"=="test")' | jq -r ".kv.path" | sort | uniq | sed -E 's/\/[^/]*$//g;/^null$/d' | sort | uniq | { grep "^ydb" || true; } > tests.txt | ||
cat output_dump | jq '.graph[]' | jq -r 'select( ."target_properties"."module_type" != null) | select( ( ."target_properties"."module_tag" // "-" | strings | contains("proto") ) | not ) | .target_properties.module_dir' | sort | uniq | { grep "^ydb" || true; } > modules.txt | ||
cat modules.txt tests.txt | (echo 'RECURSE(';cat;echo ')') > ya.make | ||
|
||
|
||
# find all modules+tests from generated ya.make, which contains all paths as RECURSE from previous step | ||
./ya make -Gj0 -ttt . --build release -k --cache-tests --build-all > output_dump2 | ||
cat output_dump2 | jq '.graph[]' | jq 'select( ."node-type"=="test")' | jq -r ".kv.path" | sort | uniq | sed -E 's/\/[^/]*$//g;/^null$/d' | sort | uniq | { grep "^ydb" || true; } > tests2.txt | ||
cat output_dump2 | jq '.graph[]' | jq -r 'select( ."target_properties"."module_type" != null) | select( ( ."target_properties"."module_tag" // "-" | strings | contains("proto") ) | not ) | .target_properties.module_dir' | sort | uniq | { grep "^ydb" || true; } > modules2.txt | ||
|
||
# put all targets together | ||
cat modules.txt tests.txt | sort | uniq > targets.txt | ||
cat modules2.txt tests2.txt | sort | uniq > targets2.txt | ||
|
||
# print targets which need to be fixes | ||
comm -13 targets.txt targets2.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Label issue from external users | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
label-external-issues: | ||
name: Label issue from external user | ||
runs-on: ubuntu-latest | ||
# https://docs.github.com/en/graphql/reference/enums#commentauthorassociation | ||
if: ${{ !contains(fromJson('["MEMBER", "OWNER", "COLLABORATOR"]'), github.event.issue.author_association) }} | ||
steps: | ||
- name: add external label | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['external'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update dstool package | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit_sha: | ||
type: string | ||
default: "" | ||
|
||
jobs: | ||
update-dstool: | ||
name: Update dstool package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7.13' | ||
|
||
- name: Install dependencies | ||
run: | | ||
set -ex | ||
python -m pip install --upgrade pip | ||
pip install build twine grpcio-tools setuptools | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.commit_sha }} | ||
|
||
- name: Compile proto files and build package | ||
run: | | ||
set -ex | ||
${{ github.workspace }}/ydb/apps/dstool/compile_protos.py --ydb-root ${{ github.workspace }} | ||
mv ${{ github.workspace }}/ydb/apps/dstool/setup.py ${{ github.workspace }} | ||
python -m build | ||
- name: Upload package to PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
set -ex | ||
python -m twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from conan import ConanFile | ||
|
||
|
||
class App(ConanFile): | ||
|
||
settings = "os", "compiler", "build_type", "arch" | ||
|
||
default_options = {"libiconv:shared": "True"} | ||
|
||
def requirements(self): | ||
self.requires("libiconv/1.15") | ||
|
||
def build_requirements(self): | ||
self.tool_requires("bison/3.8.2") | ||
self.tool_requires("m4/1.4.19") | ||
self.tool_requires("ragel/6.10") | ||
self.tool_requires("yasm/1.3.0") | ||
|
||
generators = "cmake_find_package", "cmake_paths" | ||
|
||
def imports(self): | ||
self.copy(pattern="*yasm*", src="bin", dst="./bin") | ||
self.copy(pattern="bison*", src="bin", dst="./bin/bison/bin") | ||
self.copy(pattern="m4*", src="bin", dst="./bin/m4/bin") | ||
self.copy(pattern="ragel*", src="bin", dst="./bin") | ||
self.copy(pattern="ytasm*", src="bin", dst="./bin") | ||
self.copy(pattern="*", src="res", dst="./bin/bison/res") |
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
contrib/deprecated/python/backports.functools-lru-cache/.yandex_meta/yamaker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude: | ||
- backports/__init__.py # Для избежания коллизий с другими backports пакетами |
3 changes: 3 additions & 0 deletions
3
contrib/deprecated/python/backports.shutil-get-terminal-size/.yandex_meta/yamaker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exclude: | ||
- backports/__init__.py # Для избежания коллизий с другими backports пакетами | ||
- shutil_backports/* # В Аркадии нет потребителей для этого пакета |
11 changes: 11 additions & 0 deletions
11
contrib/deprecated/python/backports.shutil-get-terminal-size/patches/01-arcadia.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- contrib/deprecated/python/backports.shutil-get-terminal-size/backports/shutil_get_terminal_size/get_terminal_size.py (index) | ||
+++ contrib/deprecated/python/backports.shutil-get-terminal-size/backports/shutil_get_terminal_size/get_terminal_size.py (working tree) | ||
@@ -41,7 +41,7 @@ try: | ||
|
||
return terminal_size(columns, lines) | ||
|
||
-except ImportError: | ||
+except (ImportError, OSError): | ||
import fcntl | ||
import termios | ||
|
2 changes: 2 additions & 0 deletions
2
contrib/deprecated/python/configparser/.yandex_meta/yamaker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude: | ||
- backports/__init__.py # Для избежания коллизий с другими backports пакетами |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exclude_from_macros: | ||
- enum/LICENSE | ||
- enum/README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- contrib/deprecated/python/enum34/enum/__init__.py (index) | ||
+++ contrib/deprecated/python/enum34/enum/__init__.py (working tree) | ||
@@ -8,6 +8,8 @@ version = 1, 1, 10 | ||
|
||
pyver = float('%s.%s' % _sys.version_info[:2]) | ||
|
||
+ALLOW_SYNONYMS = '__allow_synonyms__' | ||
+ | ||
try: | ||
any | ||
except NameError: | ||
@@ -161,6 +163,7 @@ class EnumMeta(type): | ||
for k, v in original_dict.items(): | ||
classdict[k] = v | ||
|
||
+ allow_synonyms = classdict.get(ALLOW_SYNONYMS, True) | ||
member_type, first_enum = metacls._get_mixins_(bases) | ||
__new__, save_new, use_args = metacls._find_new_(classdict, member_type, | ||
first_enum) | ||
@@ -215,8 +218,18 @@ class EnumMeta(type): | ||
# auto-numbering ;) | ||
if __new__ is None: | ||
__new__ = enum_class.__new__ | ||
+ | ||
+ val2name = {} | ||
for member_name in _order_: | ||
value = members[member_name] | ||
+ if not allow_synonyms: | ||
+ if value in val2name: | ||
+ raise ValueError( | ||
+ 'allow_synonyms=False forbids multiple names of the same value; ' | ||
+ 'Members {!r} and {!r} break this'.format(val2name[value], member_name) | ||
+ ) | ||
+ val2name[value] = member_name | ||
+ | ||
if not isinstance(value, tuple): | ||
args = (value, ) | ||
else: | ||
@@ -237,7 +250,7 @@ class EnumMeta(type): | ||
enum_member.__init__(*args) | ||
# If another member with the same value was already defined, the | ||
# new member becomes an alias to the existing one. | ||
- for name, canonical_member in enum_class._member_map_.items(): | ||
+ for name, canonical_member in (enum_class._member_map_.items() if allow_synonyms else ()): | ||
if canonical_member.value == enum_member._value_: | ||
enum_member = canonical_member | ||
break | ||
@@ -328,7 +341,7 @@ class EnumMeta(type): | ||
""" | ||
return True | ||
|
||
- def __call__(cls, value, names=None, module=None, type=None, start=1): | ||
+ def __call__(cls, value, names=None, module=None, type=None, start=1, allow_synonyms=True): | ||
"""Either returns an existing member, or creates a new enum class. | ||
|
||
This method is used both when an enum class is given a value to match | ||
@@ -347,7 +360,7 @@ class EnumMeta(type): | ||
if names is None: # simple value lookup | ||
return cls.__new__(cls, value) | ||
# otherwise, functional API: we're creating a new Enum type | ||
- return cls._create_(value, names, module=module, type=type, start=start) | ||
+ return cls._create_(value, names, module=module, type=type, start=start, allow_synonyms=allow_synonyms) | ||
|
||
def __contains__(cls, member): | ||
return isinstance(member, cls) and member.name in cls._member_map_ | ||
@@ -420,7 +433,7 @@ class EnumMeta(type): | ||
raise AttributeError('Cannot reassign members.') | ||
super(EnumMeta, cls).__setattr__(name, value) | ||
|
||
- def _create_(cls, class_name, names=None, module=None, type=None, start=1): | ||
+ def _create_(cls, class_name, names=None, module=None, type=None, start=1, allow_synonyms=True): | ||
"""Convenience method to create a new Enum class. | ||
|
||
`names` can be: | ||
@@ -465,6 +478,7 @@ class EnumMeta(type): | ||
# only set _order_ in classdict if name/value was not from a mapping | ||
if not isinstance(item, basestring): | ||
classdict['_order_'] = _order_ | ||
+ classdict[ALLOW_SYNONYMS] = getattr(cls, ALLOW_SYNONYMS, allow_synonyms) | ||
enum_class = metacls.__new__(metacls, class_name, bases, classdict) | ||
|
||
# TODO: replace the frame hack if a blessed way to know the calling |
Oops, something went wrong.