tinybird-cli 3.2.0__tar.gz → 3.2.1.dev2__tar.gz
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.
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/PKG-INFO +6 -1
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/__cli__.py +2 -2
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/test.py +19 -3
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/PKG-INFO +6 -1
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/setup.cfg +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/check_pypi.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/client.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/config.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/connector_settings.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/connectors.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/context.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/datafile.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/datatypes.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/feedback_manager.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/git_settings.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/sql.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/sql_template.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/sql_toolset.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/syncasync.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tornado_template.py +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/SOURCES.txt +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/dependency_links.txt +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/entry_points.txt +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/requires.txt +0 -0
- {tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1.dev2
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://docs.tinybird.co/cli.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -19,6 +19,11 @@ Changelog
|
|
|
19
19
|
|
|
20
20
|
---------
|
|
21
21
|
|
|
22
|
+
3.2.1.dev2
|
|
23
|
+
************
|
|
24
|
+
|
|
25
|
+
- `Added` Data quality tests inside a `skip_in_branch` folder inside the `tests` folder are skipped when running on a branch. Use this to skip tests in the CI piipeline that should only run with production data.
|
|
26
|
+
|
|
22
27
|
3.2.0
|
|
23
28
|
************
|
|
24
29
|
|
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://docs.tinybird.co/cli.html'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '3.2.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '3.2.1.dev2'
|
|
8
|
+
__revision__ = '3862bf2'
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
# - But please, **do not** interleave utility functions and command definitions.
|
|
5
5
|
|
|
6
6
|
import glob
|
|
7
|
-
from typing import Iterable, List, Tuple
|
|
7
|
+
from typing import Any, Dict, Iterable, List, Tuple
|
|
8
8
|
|
|
9
9
|
import click
|
|
10
10
|
|
|
11
11
|
from tinybird.feedback_manager import FeedbackManager
|
|
12
12
|
from tinybird.tb_cli_modules.cli import cli
|
|
13
|
-
from tinybird.tb_cli_modules.common import coro, create_tb_client, gather_with_concurrency
|
|
13
|
+
from tinybird.tb_cli_modules.common import coro, create_tb_client, gather_with_concurrency, get_config_and_hosts
|
|
14
14
|
from tinybird.tb_cli_modules.exceptions import CLIException
|
|
15
15
|
from tinybird.tb_cli_modules.tinyunit.tinyunit import (
|
|
16
16
|
TestSummaryResults,
|
|
@@ -27,7 +27,10 @@ def test(ctx: click.Context) -> None:
|
|
|
27
27
|
"""Test commands."""
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
@test.command(
|
|
30
|
+
@test.command(
|
|
31
|
+
name="run",
|
|
32
|
+
help="Run the test suite, a file, or a test. To skip test to run in branches and CI put them in a 'skip_in_branch' folder.",
|
|
33
|
+
)
|
|
31
34
|
@click.argument("file", nargs=-1)
|
|
32
35
|
@click.option("-v", "--verbose", is_flag=True, default=False, help="Enable verbose (show results)", type=bool)
|
|
33
36
|
@click.option("--fail", "only_fail", is_flag=True, default=False, help="Showy onl failed/error tests", type=bool)
|
|
@@ -39,11 +42,24 @@ async def test_run(ctx: click.Context, file: Tuple[str, ...], verbose: bool, onl
|
|
|
39
42
|
|
|
40
43
|
try:
|
|
41
44
|
tb_client = create_tb_client(ctx)
|
|
45
|
+
config, _, _ = await get_config_and_hosts(ctx, check_token_exists=True)
|
|
46
|
+
workspaces: List[Dict[str, Any]] = (await tb_client.user_workspaces_and_branches()).get("workspaces", [])
|
|
47
|
+
current_ws: Dict[str, Any] = next(
|
|
48
|
+
(workspace for workspace in workspaces if config and workspace.get("id", ".") == config.get("id", "..")), {}
|
|
49
|
+
)
|
|
42
50
|
except Exception as e:
|
|
43
51
|
raise CLIException(FeedbackManager.error_exception(error=e))
|
|
44
52
|
|
|
45
53
|
file_list: Iterable[str] = file if len(file) > 0 else glob.glob("./tests/**/*.y*ml", recursive=True)
|
|
54
|
+
click.echo(FeedbackManager.info_skipping_resource(resource="regression.yaml"))
|
|
46
55
|
file_list = [f for f in file_list if not f.endswith("regression.yaml")]
|
|
56
|
+
final_file_list = []
|
|
57
|
+
for f in file_list:
|
|
58
|
+
if "skip_in_branch" in f and current_ws and current_ws.get("is_branch"):
|
|
59
|
+
click.echo(FeedbackManager.info_skipping_resource(resource=f))
|
|
60
|
+
else:
|
|
61
|
+
final_file_list.append(f)
|
|
62
|
+
file_list = final_file_list
|
|
47
63
|
|
|
48
64
|
async def run_test(tb_client, test_file, results):
|
|
49
65
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1.dev2
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://docs.tinybird.co/cli.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -19,6 +19,11 @@ Changelog
|
|
|
19
19
|
|
|
20
20
|
---------
|
|
21
21
|
|
|
22
|
+
3.2.1.dev2
|
|
23
|
+
************
|
|
24
|
+
|
|
25
|
+
- `Added` Data quality tests inside a `skip_in_branch` folder inside the `tests` folder are skipped when running on a branch. Use this to skip tests in the CI piipeline that should only run with production data.
|
|
26
|
+
|
|
22
27
|
3.2.0
|
|
23
28
|
************
|
|
24
29
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-3.2.0 → tinybird-cli-3.2.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|