Skip to content

Commit e64a9c5

Browse files
authored
Merge pull request #2591 from project-koku/rc-2021.01.18
Rc 2021.01.18 Release approved by dev lead and QE
2 parents 1feb05c + 29b1624 commit e64a9c5

File tree

106 files changed

+5808
-826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5808
-826
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__/
55

66
# text editor temp files
77
*.swp
8+
*.swo
89

910
# C extensions
1011
*.so

Pipfile

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ model-bakery = ">=1.1"
6969
koku-nise = ">=2.2"
7070
pre-commit = ">=2.0"
7171
responses = ">=0.10"
72+
matplotlib = ">=3.3"
7273

7374
[requires]
7475
python_version = "3.8"

Pipfile.lock

+537-482
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/metastore/hive-scripts/entrypoint.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ ln -s -f /hive-config/hive-exec-log4j2.properties $HIVE_HOME/conf/hive-exec-log4
6565

6666
export HADOOP_LOG_DIR="${HADOOP_HOME}/logs"
6767
# Set garbage collection settings
68-
#export GC_SETTINGS="-XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${HADOOP_LOG_DIR}/heap_dump.bin -XX:+ExitOnOutOfMemoryError -XX:ErrorFile=${HADOOP_LOG_DIR}/java_error%p.log"
69-
70-
export VM_OPTIONS="$VM_OPTIONS -XX:+UseContainerSupport -XX:ErrorFile=${HADOOP_LOG_DIR}/java_error%p.log"
68+
export GC_SETTINGS="-XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${HADOOP_LOG_DIR}/heap_dump.bin -XX:+ExitOnOutOfMemoryError -XX:ErrorFile=${HADOOP_LOG_DIR}/java_error%p.log"
69+
export VM_OPTIONS="$VM_OPTIONS -XX:+UseContainerSupport"
7170

7271
if [ -n "$JVM_INITIAL_RAM_PERCENTAGE" ]; then
7372
VM_OPTIONS="$VM_OPTIONS -XX:InitialRAMPercentage=$JVM_INITIAL_RAM_PERCENTAGE"
@@ -83,7 +82,7 @@ fi
8382
export JMX_OPTIONS="-javaagent:/opt/jmx_exporter/jmx_exporter.jar=8082:/opt/jmx_exporter/config/config.yml -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8081 -Dcom.sun.management.jmxremote.rmi.port=8081 -Djava.rmi.server.hostname=127.0.0.1"
8483

8584
# Set garbage collection logs
86-
export GC_SETTINGS="${GC_SETTINGS} -verbose:gc -Xlog:gc*:${HADOOP_LOG_DIR}/gc.log"
85+
export GC_SETTINGS="${GC_SETTINGS} -verbose:gc"
8786

8887
export HIVE_LOGLEVEL="${HIVE_LOGLEVEL:-INFO}"
8988
export HADOOP_OPTS="${HADOOP_OPTS} ${VM_OPTIONS} ${GC_SETTINGS} ${JMX_OPTIONS}"

deploy/presto/presto-common-config/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151

5252
# add UID to /etc/passwd if missing
5353
if ! whoami &> /dev/null; then
54-
if [ -w /etc/passwd ]; then
54+
if test -w /etc/passwd || stat -c "%a" /etc/passwd | grep -qE '.[267].'; then
5555
echo "Adding user ${USER_NAME:-presto} with current UID $(id -u) to /etc/passwd"
5656
# Remove existing entry with user first.
5757
# cannot use sed -i because we do not have permission to write new

docker-compose.yml

+5
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ services:
268268
- './testing/local_providers/aws_local_4:/tmp/local_bucket_4'
269269
- './testing/local_providers/aws_local_5:/tmp/local_bucket_5'
270270
- './testing/local_providers/insights_local:/var/tmp/masu/insights_local'
271+
- './testing/local_providers/gcp_local/:/tmp/gcp_local_bucket'
272+
- './testing/local_providers/gcp_local_0/:/tmp/gcp_local_bucket_0'
273+
- './testing/local_providers/gcp_local_1/:/tmp/gcp_local_bucket_1'
274+
- './testing/local_providers/gcp_local_2/:/tmp/gcp_local_bucket_2'
275+
- './testing/local_providers/gcp_local_3/:/tmp/gcp_local_bucket_3'
271276
links:
272277
- koku-rabbit
273278
depends_on:

docs/rtd_requirements.txt

+49-48
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,105 @@
1-
-i https://pypi.python.org/simple
1+
-i http://localhost:3141/root/pypi/+simple/
2+
--trusted-host localhost:3141
23
adal==1.2.5
3-
amqp==2.6.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
4-
asgiref==3.3.1; python_version >= '3.5'
4+
amqp==2.6.1
5+
asgiref==3.3.1
56
azure-common==1.1.26
6-
azure-core==1.9.0
7+
azure-core==1.10.0
78
azure-mgmt-core==1.2.2
89
azure-mgmt-costmanagement==0.2.0
910
azure-mgmt-resource==15.0.0
1011
azure-mgmt-storage==11.2.0
11-
azure-storage-blob==12.6.0
12+
azure-storage-blob==12.7.0
1213
beautifulsoup4==4.9.3
1314
billiard==3.6.3.0
14-
boto3==1.16.35
15-
botocore==1.19.35
15+
boto3==1.16.55
16+
botocore==1.19.55
1617
bs4==0.0.1
1718
cachetools==4.2.0
1819
celery-prometheus-exporter==1.7.0
1920
celery==4.4.7
2021
certifi==2020.12.5
2122
cffi==1.14.4
22-
chardet==3.0.4
23+
chardet==4.0.0
2324
ciso8601==2.1.3
24-
click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
25+
click==7.1.2
2526
confluent-kafka==1.5.0
26-
cryptography==3.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
27+
cryptography==3.3.1
2728
django-cors-headers==3.6.0
2829
django-environ==0.4.5
2930
django-extensions==3.1.0
3031
django-filter==2.4.0
3132
django-prometheus==2.1.0
3233
django-redis==4.12.1
3334
django-tenant-schemas==1.10.0
34-
django==3.1.4
35+
django==3.1.5
3536
djangorestframework-csv==2.1.0
3637
djangorestframework==3.12.2
3738
flake8==3.8.4
38-
google-api-core[grpc]==1.23.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
39+
google-api-core[grpc]==1.25.0
3940
google-api-python-client==1.12.8
4041
google-auth-httplib2==0.0.4
4142
google-auth==1.24.0
42-
google-cloud-bigquery==2.6.1
43-
google-cloud-core==1.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
44-
google-crc32c==1.0.0; python_version >= '3.5'
45-
google-resumable-media==1.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
46-
googleapis-common-protos==1.52.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
47-
grpcio==1.34.0
43+
google-cloud-bigquery==2.6.2
44+
google-cloud-core==1.5.0
45+
google-crc32c==1.1.1; python_version >= '3.5'
46+
google-resumable-media==1.2.0
47+
googleapis-common-protos==1.52.0
48+
grpcio==1.34.1
4849
gunicorn==20.0.4
4950
httplib2==0.18.1
50-
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
51-
importlib-metadata==3.3.0
51+
idna==2.10
52+
importlib-metadata==3.4.0
5253
isodate==0.6.0
53-
jinja2==2.11.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
54+
jinja2==2.11.2
5455
jinjasql==0.1.8
55-
jmespath==0.10.0; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
56+
jmespath==0.10.0
5657
kafka-python==2.0.2
5758
kombu==4.6.11
58-
markupsafe==1.1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
59+
markupsafe==1.1.1
5960
mccabe==0.6.1
6061
msrest==0.6.19
6162
msrestazure==0.6.4
62-
numpy==1.19.4; python_version >= '3.6'
63-
oauthlib==3.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
64-
ordered-set==4.0.2; python_version >= '3.5'
65-
packaging==20.8; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
66-
pandas==1.1.5
63+
numpy==1.19.5
64+
oauthlib==3.1.0
65+
ordered-set==4.0.2
66+
packaging==20.8
67+
pandas==1.2.0
6768
patsy==0.5.1
6869
pint==0.16.1
6970
presto-python-client==0.7.0
7071
prometheus-client==0.9.0
71-
proto-plus==1.13.0; python_version >= '3.6'
72+
proto-plus==1.13.0
7273
protobuf==3.14.0
73-
psutil==5.7.3
74-
psycopg2-binary==2.8.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
74+
psutil==5.8.0
75+
psycopg2-binary==2.8.6
7576
pyarrow==2.0.0
7677
pyasn1-modules==0.2.8
7778
pyasn1==0.4.8
78-
pycodestyle==2.6.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
79-
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
80-
pyflakes==2.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
81-
pyjwt==1.7.1
82-
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
79+
pycodestyle==2.6.0
80+
pycparser==2.20
81+
pyflakes==2.2.0
82+
pyjwt==2.0.0
83+
pyparsing==2.4.7
8384
python-dateutil==2.8.1
84-
pytz==2020.4
85+
pytz==2020.5
8586
querystring-parser==1.2.4
86-
redis==3.5.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
87+
redis==3.5.3
8788
requests-oauthlib==1.3.0
88-
requests==2.25.0
89-
rsa==4.6; python_version >= '3.6'
90-
s3transfer==0.3.3
91-
scipy==1.5.4; python_version >= '3.6'
89+
requests==2.25.1
90+
rsa==4.7; python_version >= '3.6'
91+
s3transfer==0.3.4
92+
scipy==1.6.0
9293
sentry-sdk==0.19.5
93-
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
94+
six==1.15.0
9495
soupsieve==2.1; python_version >= '3.0'
95-
sqlparse==0.4.1; python_version >= '3.5'
96+
sqlparse==0.4.1
9697
statsmodels==0.12.1
9798
ujson==4.0.1
9899
unicodecsv==0.14.1
99-
uritemplate==3.0.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
100+
uritemplate==3.0.1
100101
urllib3==1.26.2; python_version != '3.4'
101-
vine==1.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
102-
watchtower==1.0.0
102+
vine==1.3.0
103+
watchtower==1.0.5
103104
whitenoise==5.2.0
104-
zipp==3.4.0; python_version >= '3.6'
105+
zipp==3.4.0

docs/source/devtools.rst

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ Example DEVELOPMENT_IDENTITY object::
4545
"aws.account": {
4646
"read": ["1234567890AB", "234567890AB1"]
4747
}
48+
"gcp.account": {
49+
"read": ["*"]
50+
}
51+
"gcp.project": {
52+
"read": ["*"]
53+
}
4854
"azure.subscription_guid": {
4955
"read": ["*"]
5056
}

0 commit comments

Comments
 (0)