mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-22 08:20:48 +00:00
Merge branch 'master' of github.com:yandex/ClickHouse
This commit is contained in:
commit
8232e6578c
@ -1,11 +1,11 @@
|
|||||||
# This strings autochanged from release_lib.sh:
|
# This strings autochanged from release_lib.sh:
|
||||||
set(VERSION_REVISION 54425)
|
set(VERSION_REVISION 54426)
|
||||||
set(VERSION_MAJOR 19)
|
set(VERSION_MAJOR 19)
|
||||||
set(VERSION_MINOR 14)
|
set(VERSION_MINOR 15)
|
||||||
set(VERSION_PATCH 1)
|
set(VERSION_PATCH 1)
|
||||||
set(VERSION_GITHASH adfc36917222bdb03eba069f0cad0f4f5b8f1c94)
|
set(VERSION_GITHASH 6f1a8c37abe6ee4e7ee74c0b5cb9c05a87417b61)
|
||||||
set(VERSION_DESCRIBE v19.14.1.1-prestable)
|
set(VERSION_DESCRIBE v19.15.1.1-prestable)
|
||||||
set(VERSION_STRING 19.14.1.1)
|
set(VERSION_STRING 19.15.1.1)
|
||||||
# end of autochange
|
# end of autochange
|
||||||
|
|
||||||
set(VERSION_EXTRA "" CACHE STRING "")
|
set(VERSION_EXTRA "" CACHE STRING "")
|
||||||
|
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,5 +1,5 @@
|
|||||||
clickhouse (19.13.1.1) unstable; urgency=low
|
clickhouse (19.15.1.1) unstable; urgency=low
|
||||||
|
|
||||||
* Modified source code
|
* Modified source code
|
||||||
|
|
||||||
-- clickhouse-release <clickhouse-release@yandex-team.ru> Tue, 23 Jul 2019 11:20:49 +0300
|
-- clickhouse-release <clickhouse-release@yandex-team.ru> Fri, 06 Sep 2019 17:58:30 +0300
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
||||||
ARG version=19.13.1.*
|
ARG version=19.15.1.*
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --yes --no-install-recommends \
|
&& apt-get install --yes --no-install-recommends \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
||||||
ARG version=19.13.1.*
|
ARG version=19.15.1.*
|
||||||
ARG gosu_ver=1.10
|
ARG gosu_ver=1.10
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
||||||
ARG version=19.13.1.*
|
ARG version=19.15.1.*
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y apt-transport-https dirmngr && \
|
apt-get install -y apt-transport-https dirmngr && \
|
||||||
|
@ -171,3 +171,8 @@ print(f'{CHECK_MARK} - good')
|
|||||||
print(f'{CROSS_MARK} - bad')
|
print(f'{CROSS_MARK} - bad')
|
||||||
print(f'{LABEL_MARK} - backport is detected via label')
|
print(f'{LABEL_MARK} - backport is detected via label')
|
||||||
print(f'{CLOCK_MARK} - backport is waiting to merge')
|
print(f'{CLOCK_MARK} - backport is waiting to merge')
|
||||||
|
|
||||||
|
# print API costs
|
||||||
|
print('\nGitHub API total costs per query:')
|
||||||
|
for name, value in github.api_costs.items():
|
||||||
|
print(f'{name} : {value}')
|
||||||
|
@ -11,9 +11,9 @@ class Query:
|
|||||||
self._token = token
|
self._token = token
|
||||||
self._max_page_size = max_page_size
|
self._max_page_size = max_page_size
|
||||||
self._min_page_size = min_page_size
|
self._min_page_size = min_page_size
|
||||||
|
self.api_costs = {}
|
||||||
|
|
||||||
_MEMBERS = '''
|
_MEMBERS = '''
|
||||||
{{
|
|
||||||
organization(login: "{organization}") {{
|
organization(login: "{organization}") {{
|
||||||
team(slug: "{team}") {{
|
team(slug: "{team}") {{
|
||||||
members(first: {max_page_size} {next}) {{
|
members(first: {max_page_size} {next}) {{
|
||||||
@ -27,7 +27,6 @@ class Query:
|
|||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
|
||||||
'''
|
'''
|
||||||
def get_members(self, organization, team):
|
def get_members(self, organization, team):
|
||||||
'''Get all team members for organization
|
'''Get all team members for organization
|
||||||
@ -58,7 +57,6 @@ class Query:
|
|||||||
return logins
|
return logins
|
||||||
|
|
||||||
_LABELS = '''
|
_LABELS = '''
|
||||||
{{
|
|
||||||
repository(owner: "yandex" name: "ClickHouse") {{
|
repository(owner: "yandex" name: "ClickHouse") {{
|
||||||
pullRequest(number: {number}) {{
|
pullRequest(number: {number}) {{
|
||||||
labels(first: {max_page_size} {next}) {{
|
labels(first: {max_page_size} {next}) {{
|
||||||
@ -73,7 +71,6 @@ class Query:
|
|||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
|
||||||
'''
|
'''
|
||||||
def get_labels(self, pull_request):
|
def get_labels(self, pull_request):
|
||||||
'''Fetchs all labels for given pull-request
|
'''Fetchs all labels for given pull-request
|
||||||
@ -102,7 +99,6 @@ class Query:
|
|||||||
return labels
|
return labels
|
||||||
|
|
||||||
_TIMELINE = '''
|
_TIMELINE = '''
|
||||||
{{
|
|
||||||
repository(owner: "yandex" name: "ClickHouse") {{
|
repository(owner: "yandex" name: "ClickHouse") {{
|
||||||
pullRequest(number: {number}) {{
|
pullRequest(number: {number}) {{
|
||||||
timeline(first: {max_page_size} {next}) {{
|
timeline(first: {max_page_size} {next}) {{
|
||||||
@ -140,7 +136,6 @@ class Query:
|
|||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
|
||||||
'''
|
'''
|
||||||
def get_timeline(self, pull_request):
|
def get_timeline(self, pull_request):
|
||||||
'''Fetchs all cross-reference events from pull-request's timeline
|
'''Fetchs all cross-reference events from pull-request's timeline
|
||||||
@ -169,7 +164,6 @@ class Query:
|
|||||||
return events
|
return events
|
||||||
|
|
||||||
_PULL_REQUESTS = '''
|
_PULL_REQUESTS = '''
|
||||||
{{
|
|
||||||
repository(owner: "yandex" name: "ClickHouse") {{
|
repository(owner: "yandex" name: "ClickHouse") {{
|
||||||
defaultBranchRef {{
|
defaultBranchRef {{
|
||||||
name
|
name
|
||||||
@ -248,7 +242,6 @@ class Query:
|
|||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
|
||||||
'''
|
'''
|
||||||
def get_pull_requests(self, before_commit, login):
|
def get_pull_requests(self, before_commit, login):
|
||||||
'''Get all merged pull-requests from the HEAD of default branch to the last commit (excluding)
|
'''Get all merged pull-requests from the HEAD of default branch to the last commit (excluding)
|
||||||
@ -294,13 +287,11 @@ class Query:
|
|||||||
return pull_requests
|
return pull_requests
|
||||||
|
|
||||||
_DEFAULT = '''
|
_DEFAULT = '''
|
||||||
{
|
|
||||||
repository(owner: "yandex", name: "ClickHouse") {
|
repository(owner: "yandex", name: "ClickHouse") {
|
||||||
defaultBranchRef {
|
defaultBranchRef {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
'''
|
'''
|
||||||
def get_default_branch(self):
|
def get_default_branch(self):
|
||||||
'''Get short name of the default branch
|
'''Get short name of the default branch
|
||||||
@ -334,11 +325,27 @@ class Query:
|
|||||||
return session
|
return session
|
||||||
|
|
||||||
headers = {'Authorization': f'bearer {self._token}'}
|
headers = {'Authorization': f'bearer {self._token}'}
|
||||||
|
query = f'''
|
||||||
|
{{
|
||||||
|
{query}
|
||||||
|
rateLimit {{
|
||||||
|
cost
|
||||||
|
remaining
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
'''
|
||||||
request = requests_retry_session().post('https://api.github.com/graphql', json={'query': query}, headers=headers)
|
request = requests_retry_session().post('https://api.github.com/graphql', json={'query': query}, headers=headers)
|
||||||
if request.status_code == 200:
|
if request.status_code == 200:
|
||||||
result = request.json()
|
result = request.json()
|
||||||
if 'errors' in result:
|
if 'errors' in result:
|
||||||
raise Exception(f'Errors occured: {result["errors"]}')
|
raise Exception(f'Errors occured: {result["errors"]}')
|
||||||
|
|
||||||
|
import inspect
|
||||||
|
caller = inspect.getouterframes(inspect.currentframe(), 2)[1][3]
|
||||||
|
if caller not in self.api_costs.keys():
|
||||||
|
self.api_costs[caller] = 0
|
||||||
|
self.api_costs[caller] += result['data']['rateLimit']['cost']
|
||||||
|
|
||||||
return result['data']
|
return result['data']
|
||||||
else:
|
else:
|
||||||
import json
|
import json
|
||||||
|
Loading…
Reference in New Issue
Block a user