Reduce logging to speed up Netlify CI builds (bug 1761292) (#2920)

* Comment out print to reduce Netlify build logging by 84%.
* Omit Maven transfer progress from Netlify build logs.
* Omit wget transfer progress from Netlify build logs.
This commit is contained in:
Sean Rose 2022-04-28 16:12:16 -07:00 коммит произвёл GitHub
Родитель 463fc80359
Коммит 65224e4399
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 11 добавлений и 6 удалений

Просмотреть файл

@ -7,8 +7,8 @@ from tempfile import NamedTemporaryFile
from typing import Any, Dict, List, Optional
import attr
from google.api_core.exceptions import NotFound
import yaml
from google.api_core.exceptions import NotFound
from google.cloud import bigquery
from .. import dryrun
@ -193,9 +193,14 @@ class Schema:
if update:
# add field attributes if not exists in schema
nodes[node_name][node_attr_key] = node_attr_value
print(
f"Attribute {node_attr_key} added to {prefix}.{field_path}"
)
# Netlify has a problem starting 2022-03-07 where lots of
# logging slows down builds to the point where our builds hit
# the time limit and fail (bug 1761292), and this print
# statement accounts for 84% of our build logging.
# TODO: Uncomment this print when Netlify fixes the problem.
# print(
# f"Attribute {node_attr_key} added to {prefix}.{field_path}"
# )
else:
if node_attr_key == "description":
print(

Просмотреть файл

@ -1,11 +1,11 @@
[build]
command = """
# Install Maven
wget http://apache.mirrors.pair.com/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
wget --no-verbose http://apache.mirrors.pair.com/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar -xvzf apache-maven-3.6.3-bin.tar.gz
mv apache-maven-3.6.3 maven
export PATH=$PWD/maven/bin:$PATH
mvn package
mvn --no-transfer-progress package
# Generate SQL
mkdir sql-output
cp -r sql/ sql-output/sql