tinybird 0.0.1.dev122__py3-none-any.whl → 0.0.1.dev123__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- tinybird/tb/__cli__.py +2 -2
- tinybird/tb/modules/build.py +13 -6
- tinybird/tb/modules/datafile/common.py +2 -0
- tinybird/tb/modules/feedback_manager.py +1 -0
- {tinybird-0.0.1.dev122.dist-info → tinybird-0.0.1.dev123.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev122.dist-info → tinybird-0.0.1.dev123.dist-info}/RECORD +9 -9
- {tinybird-0.0.1.dev122.dist-info → tinybird-0.0.1.dev123.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev122.dist-info → tinybird-0.0.1.dev123.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev122.dist-info → tinybird-0.0.1.dev123.dist-info}/top_level.txt +0 -0
tinybird/tb/__cli__.py
CHANGED
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/cli/introduction.html'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev123'
|
|
8
|
+
__revision__ = '01f52fe'
|
tinybird/tb/modules/build.py
CHANGED
|
@@ -103,6 +103,8 @@ def build_project(project: Project, tb_client: TinyB, file_changed: Optional[str
|
|
|
103
103
|
|
|
104
104
|
logging.debug(json.dumps(result, indent=2))
|
|
105
105
|
|
|
106
|
+
output_pre_formatted = False
|
|
107
|
+
|
|
106
108
|
build_result = result.get("result")
|
|
107
109
|
if build_result == "success":
|
|
108
110
|
build = result.get("build")
|
|
@@ -157,12 +159,14 @@ def build_project(project: Project, tb_client: TinyB, file_changed: Optional[str
|
|
|
157
159
|
)
|
|
158
160
|
elif build_result == "failed":
|
|
159
161
|
build_errors = result.get("errors")
|
|
160
|
-
|
|
162
|
+
full_error_msg = ""
|
|
161
163
|
for build_error in build_errors:
|
|
162
|
-
|
|
164
|
+
output_pre_formatted = True
|
|
165
|
+
filename_bit = FeedbackManager.build_result_error_title(message=f"{build_error.get('filename', '')}")
|
|
163
166
|
error_bit = build_error.get("error") or build_error.get("message") or ""
|
|
164
|
-
error_msg = ((filename_bit + "\n
|
|
165
|
-
|
|
167
|
+
error_msg = ((filename_bit + "\n") if filename_bit else "") + error_bit
|
|
168
|
+
full_error_msg += error_msg + "\n\n"
|
|
169
|
+
error = full_error_msg.strip("\n") or "Unknown build error"
|
|
166
170
|
else:
|
|
167
171
|
error = f"Unknown build result. Error: {result.get('error')}"
|
|
168
172
|
except Exception as e:
|
|
@@ -171,7 +175,10 @@ def build_project(project: Project, tb_client: TinyB, file_changed: Optional[str
|
|
|
171
175
|
for fd in fds:
|
|
172
176
|
fd.close()
|
|
173
177
|
if error:
|
|
174
|
-
|
|
178
|
+
if not output_pre_formatted:
|
|
179
|
+
raise click.ClickException(error)
|
|
180
|
+
click.echo(error)
|
|
181
|
+
raise click.ClickException("") # Needed so the caller shows the right message
|
|
175
182
|
|
|
176
183
|
|
|
177
184
|
def append_fixture(
|
|
@@ -267,7 +274,7 @@ def process(
|
|
|
267
274
|
|
|
268
275
|
rebuild_str = "Rebuild" if watch and file_changed else "Build"
|
|
269
276
|
if build_failed:
|
|
270
|
-
click.echo(FeedbackManager.error(message=f"
|
|
277
|
+
click.echo(FeedbackManager.error(message=f"✗ {rebuild_str} failed"))
|
|
271
278
|
if not watch:
|
|
272
279
|
sys.exit(1)
|
|
273
280
|
else:
|
|
@@ -1535,6 +1535,8 @@ def parse(
|
|
|
1535
1535
|
"kafka_store_raw_value": assign_var("kafka_store_raw_value"),
|
|
1536
1536
|
"kafka_store_headers": assign_var("kafka_store_headers"),
|
|
1537
1537
|
"kafka_store_binary_headers": assign_var("kafka_store_binary_headers"),
|
|
1538
|
+
"kafka_key_format": assign_var("kafka_key_format"),
|
|
1539
|
+
"kafka_value_format": assign_var("kafka_key_format"),
|
|
1538
1540
|
"kafka_key_avro_deserialization": kafka_key_avro_deserialization,
|
|
1539
1541
|
"kafka_ssl_ca_pem": assign_var("kafka_ssl_ca_pem"),
|
|
1540
1542
|
"kafka_security_protocol": assign_var("kafka_security_protocol"),
|
|
@@ -12,12 +12,12 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
|
|
|
12
12
|
tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
|
|
13
13
|
tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
|
|
14
14
|
tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
|
|
15
|
-
tinybird/tb/__cli__.py,sha256=
|
|
15
|
+
tinybird/tb/__cli__.py,sha256=uBzp0IUXIUTa5ULBWsQXba7ECdb0idiWneRZYajDITk,252
|
|
16
16
|
tinybird/tb/cli.py,sha256=uDLwcbwSJfVFw-pceijZJqaq26z5jNsey0QaUGFjt7w,1097
|
|
17
17
|
tinybird/tb/client.py,sha256=oa0pR46WvzDoqpyaDU-lRu33I0cZhtZVDqDQz2RHMWQ,56085
|
|
18
18
|
tinybird/tb/config.py,sha256=3bEyh6sECiAm41L9Nr_ALkvprMyuzvQSvVPrljFbg68,3790
|
|
19
19
|
tinybird/tb/modules/auth.py,sha256=_OeYnmTH83lnqCgQEdS6K0bx1KBUeRmZk2M7JnRmWpk,9037
|
|
20
|
-
tinybird/tb/modules/build.py,sha256=
|
|
20
|
+
tinybird/tb/modules/build.py,sha256=9O6SzOSe2kPWFSjvSYlBV17Db14MeVQpHY952knArx0,15932
|
|
21
21
|
tinybird/tb/modules/cicd.py,sha256=A7zJZF9HkJ6NPokplgNjmefMrpUlRbFxBbjMZhq5OTI,7110
|
|
22
22
|
tinybird/tb/modules/cli.py,sha256=Y_5hu9xwyTIZw4bQoe0MYLnRIzmR7hUjql_oZBxd4Qg,13407
|
|
23
23
|
tinybird/tb/modules/common.py,sha256=J2Wjt1jTVMyUjQfgMKPwBKZ2qjHH8Zw-WvEYz0Kuc7Y,83466
|
|
@@ -29,7 +29,7 @@ tinybird/tb/modules/datasource.py,sha256=-aQCK_-wEmoo92Ki7zr2wm424RchDgWvT6yhfFY
|
|
|
29
29
|
tinybird/tb/modules/deployment.py,sha256=4Zt7jPbqt18fB5kPx7DbO91Bh6xzBBTEUFY7O89shuU,19560
|
|
30
30
|
tinybird/tb/modules/endpoint.py,sha256=XySDt3pk66vxOZ0egUfz4bY8bEk3BjOXkv-L0OIJ3sc,12083
|
|
31
31
|
tinybird/tb/modules/exceptions.py,sha256=4A2sSjCEqKUMqpP3WI00zouCWW4uLaghXXLZBSw04mY,3363
|
|
32
|
-
tinybird/tb/modules/feedback_manager.py,sha256=
|
|
32
|
+
tinybird/tb/modules/feedback_manager.py,sha256=8I6n5JFPS4xP-Pfb9iu7hqx5VX773uGDXH2E5QeANeg,74179
|
|
33
33
|
tinybird/tb/modules/fmt.py,sha256=qpf9APqKTKL2uphNgdbj4OMVyLkAxZn6dn4eHF99L5g,3553
|
|
34
34
|
tinybird/tb/modules/infra.py,sha256=eX0StUipaXaxIhMxO82cnAnFKTCa7EPOt-e8pWoSLX0,33206
|
|
35
35
|
tinybird/tb/modules/job.py,sha256=n4dSSBgnA8NqD7srGahf2xRj6wxkmX9Vl0J-QJ_a2w0,2966
|
|
@@ -59,7 +59,7 @@ tinybird/tb/modules/datafile/build.py,sha256=d_h3pRFDPFrDKGhpFx2iejY25GuB2k8yfNo
|
|
|
59
59
|
tinybird/tb/modules/datafile/build_common.py,sha256=LU24kAQmxDJIyoIapDaYG-SU3P4FrMG9UBf8m9PgVSI,4565
|
|
60
60
|
tinybird/tb/modules/datafile/build_datasource.py,sha256=nXEQ0qHdq2ai7jJTv8H2d7eeDPBYzLn8VY7zMtOYb8M,17382
|
|
61
61
|
tinybird/tb/modules/datafile/build_pipe.py,sha256=6Cwjf3BKEF3-oQ9PipsQfK-Z43nSwtA4qJAUoysI7Uc,11385
|
|
62
|
-
tinybird/tb/modules/datafile/common.py,sha256=
|
|
62
|
+
tinybird/tb/modules/datafile/common.py,sha256=FXwHfCknNgZnMGaiju4u7ODYnXticP5cVagxor5F7Dw,85442
|
|
63
63
|
tinybird/tb/modules/datafile/diff.py,sha256=MTmj53RYjER4neLgWVjabn-FKVFgh8h8uYiBo55lFQg,6757
|
|
64
64
|
tinybird/tb/modules/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1wnI,556
|
|
65
65
|
tinybird/tb/modules/datafile/fixture.py,sha256=V3WGfPLIR78el3oCNWNkySWs6LxIufyIM0mDrrT3aWc,1131
|
|
@@ -79,8 +79,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
79
79
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
80
80
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
81
81
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
82
|
-
tinybird-0.0.1.
|
|
83
|
-
tinybird-0.0.1.
|
|
84
|
-
tinybird-0.0.1.
|
|
85
|
-
tinybird-0.0.1.
|
|
86
|
-
tinybird-0.0.1.
|
|
82
|
+
tinybird-0.0.1.dev123.dist-info/METADATA,sha256=uoHPiKRm5lFZ0NXVJ9VHtj3MGhvA0lKSMhQM_x07a4E,1612
|
|
83
|
+
tinybird-0.0.1.dev123.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
84
|
+
tinybird-0.0.1.dev123.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
85
|
+
tinybird-0.0.1.dev123.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
86
|
+
tinybird-0.0.1.dev123.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|