tinybird-cli 1.0.1.dev1__tar.gz → 1.0.1.dev3__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.
Files changed (43) hide show
  1. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/PKG-INFO +11 -1
  2. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/__cli__.py +2 -2
  3. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/feedback_manager.py +4 -1
  4. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/branch.py +40 -1
  5. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/common.py +3 -0
  6. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird_cli.egg-info/PKG-INFO +11 -1
  7. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/setup.cfg +0 -0
  8. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/ch_utils/constants.py +0 -0
  9. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/ch_utils/engine.py +0 -0
  10. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/check_pypi.py +0 -0
  11. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/client.py +0 -0
  12. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/config.py +0 -0
  13. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/connectors.py +0 -0
  14. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/context.py +0 -0
  15. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/datafile.py +0 -0
  16. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/datatypes.py +0 -0
  17. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/sql.py +0 -0
  18. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/sql_template.py +0 -0
  19. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/sql_template_fmt.py +0 -0
  20. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/sql_toolset.py +0 -0
  21. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/syncasync.py +0 -0
  22. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli.py +0 -0
  23. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/auth.py +0 -0
  24. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/cicd.py +0 -0
  25. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/cli.py +0 -0
  26. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/connection.py +0 -0
  27. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/datasource.py +0 -0
  28. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/exceptions.py +0 -0
  29. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/job.py +0 -0
  30. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/pipe.py +0 -0
  31. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/telemetry.py +0 -0
  32. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/test.py +0 -0
  33. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  34. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  35. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/token.py +0 -0
  36. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/workspace.py +0 -0
  37. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  38. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird/tornado_template.py +0 -0
  39. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird_cli.egg-info/SOURCES.txt +0 -0
  40. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird_cli.egg-info/dependency_links.txt +0 -0
  41. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird_cli.egg-info/entry_points.txt +0 -0
  42. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/tinybird_cli.egg-info/requires.txt +0 -0
  43. {tinybird-cli-1.0.1.dev1 → tinybird-cli-1.0.1.dev3}/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: 1.0.1.dev1
3
+ Version: 1.0.1.dev3
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://docs.tinybird.co/cli.html
6
6
  Author: Tinybird
@@ -19,6 +19,16 @@ Changelog
19
19
 
20
20
  ---------
21
21
 
22
+ 1.0.1.dev3
23
+ ************
24
+
25
+ - `Added` `tb env regression-tests` commands now support flag `--skip-regression-tests` or `export TB_SKIP_REGRESSION=1` to skip execution of regression tests. Handy for CI environments were regression tests might be flaky.
26
+
27
+ 1.0.1.dev2
28
+ ************
29
+
30
+ - `Changed` When running `tb init --git` for the first time the `exec_test.sh` script to run fixtures tests now includes an environment variable `export TB_VERSION_WARNING=0` to skip the CLI version warning.
31
+
22
32
  1.0.1.dev1
23
33
  ************
24
34
 
@@ -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__ = '1.0.1.dev1'
8
- __revision__ = '053dd86'
7
+ __version__ = '1.0.1.dev3'
8
+ __revision__ = '24ecd0e'
@@ -337,6 +337,9 @@ Ready? """
337
337
  )
338
338
  info_creating_kafka_connection = info_message("** Creating new Kafka connection '{connection_name}'")
339
339
 
340
+ warning_regression_skipped = warning_message(
341
+ "Regression tests are skipped. Set `export TB_SKIP_REGRESSION=0` or remove --skip-regression-tests for them to pass."
342
+ )
340
343
  warning_beta_tester = warning_message(
341
344
  "This feature is under development and released as a beta version. You can report any feedback (bugs, feature requests, etc.) to support@tinybird.co"
342
345
  )
@@ -362,7 +365,7 @@ Ready? """
362
365
  warning_dry_name_already_exists = warning_message("** [DRY RUN] {name} already exists, skipping")
363
366
  warning_file_not_found = warning_message("** Warning: {name} file not found")
364
367
  warning_update_version = warning_message(
365
- '** UPDATE AVAILABLE: please run "pip install tinybird-cli=={latest_version}" to update'
368
+ '** UPDATE AVAILABLE: please run "pip install tinybird-cli=={latest_version}" to update or `export TB_VERSION_WARNING=0` to skip the check.'
366
369
  )
367
370
  warning_current_version = warning_message("** current: tinybird-cli {current_version}\n")
368
371
  warning_confirm_truncate_datasource = prompt_message(
@@ -429,10 +429,20 @@ async def data_branch(ctx: Context, last_partition: bool, all: bool, ignore_data
429
429
  default=False,
430
430
  help="Wait for regression job to finish, showing a progress bar. Disabled by default.",
431
431
  )
432
+ @click.option(
433
+ "--skip-regression-tests/--no-skip-regression-tests",
434
+ envvar="TB_SKIP_REGRESSION",
435
+ default=False,
436
+ help="Flag to skip execution of regression tests. This is handy for CI environments where regression might be flaky",
437
+ )
432
438
  @click.pass_context
433
439
  @coro
434
- async def regression_tests(ctx, filename: str, wait: bool):
440
+ async def regression_tests(ctx, filename: str, wait: bool, skip_regression_tests: Optional[bool] = False):
435
441
  """Regression test commands for Environments"""
442
+ if skip_regression_tests:
443
+ click.echo(FeedbackManager.warning_regression_skipped())
444
+ return
445
+
436
446
  if filename:
437
447
  try:
438
448
  with open(filename, "r") as file:
@@ -479,8 +489,13 @@ async def _run_regression(
479
489
  assert_bytes_read_increase_percentage: Optional[int] = 25,
480
490
  failfast: Optional[bool] = False,
481
491
  wait: Optional[bool] = False,
492
+ skip: Optional[bool] = False,
482
493
  **kwargs,
483
494
  ):
495
+ if skip:
496
+ click.echo(FeedbackManager.warning_regression_skipped())
497
+ return
498
+
484
499
  client: TinyB = ctx.ensure_object(dict)["client"]
485
500
  config = ctx.ensure_object(dict)["config"]
486
501
 
@@ -566,6 +581,12 @@ async def _run_regression(
566
581
  default=False,
567
582
  help="Waits for regression job to finish, showing a progress bar. Disabled by default.",
568
583
  )
584
+ @click.option(
585
+ "--skip-regression-tests/--no-skip-regression-tests",
586
+ envvar="TB_SKIP_REGRESSION",
587
+ default=False,
588
+ help="Flag to skip execution of regression tests. This is handy for CI environments where regression might be flaky",
589
+ )
569
590
  @click.pass_context
570
591
  @coro
571
592
  async def coverage(
@@ -579,6 +600,7 @@ async def coverage(
579
600
  assert_bytes_read_increase_percentage: int,
580
601
  failfast: bool,
581
602
  wait: bool,
603
+ skip_regression_tests: Optional[bool] = False,
582
604
  ):
583
605
  await _run_regression(
584
606
  ctx,
@@ -592,6 +614,7 @@ async def coverage(
592
614
  assert_bytes_read_increase_percentage,
593
615
  failfast,
594
616
  wait,
617
+ skip_regression_tests,
595
618
  )
596
619
 
597
620
 
@@ -655,6 +678,12 @@ async def coverage(
655
678
  default=False,
656
679
  help="Waits for regression job to finish, showing a progress bar. Disabled by default.",
657
680
  )
681
+ @click.option(
682
+ "--skip-regression-tests/--no-skip-regression-tests",
683
+ envvar="TB_SKIP_REGRESSION",
684
+ default=False,
685
+ help="Flag to skip execution of regression tests. This is handy for CI environments where regression might be flaky",
686
+ )
658
687
  @click.pass_context
659
688
  @coro
660
689
  async def last(
@@ -669,6 +698,7 @@ async def last(
669
698
  assert_bytes_read_increase_percentage: int,
670
699
  failfast: bool,
671
700
  wait: bool,
701
+ skip_regression_tests: Optional[bool] = False,
672
702
  ):
673
703
  await _run_regression(
674
704
  ctx,
@@ -682,6 +712,7 @@ async def last(
682
712
  assert_bytes_read_increase_percentage,
683
713
  failfast,
684
714
  wait,
715
+ skip_regression_tests,
685
716
  limit=limit,
686
717
  )
687
718
 
@@ -739,6 +770,12 @@ async def last(
739
770
  default=False,
740
771
  help="Waits for regression job to finish, showing a progress bar. Disabled by default.",
741
772
  )
773
+ @click.option(
774
+ "--skip-regression-tests/--no-skip-regression-tests",
775
+ envvar="TB_SKIP_REGRESSION",
776
+ default=False,
777
+ help="Flag to skip execution of regression tests. This is handy for CI environments where regression might be flaky",
778
+ )
742
779
  @click.pass_context
743
780
  @coro
744
781
  async def manual(
@@ -752,6 +789,7 @@ async def manual(
752
789
  assert_bytes_read_increase_percentage: int,
753
790
  failfast: bool,
754
791
  wait: bool,
792
+ skip_regression_tests: Optional[bool] = False,
755
793
  ):
756
794
  params = [{ctx.args[i][2:]: ctx.args[i + 1] for i in range(0, len(ctx.args), 2)}]
757
795
  await _run_regression(
@@ -766,6 +804,7 @@ async def manual(
766
804
  assert_bytes_read_increase_percentage,
767
805
  failfast,
768
806
  wait,
807
+ skip_regression_tests,
769
808
  params=params,
770
809
  )
771
810
 
@@ -355,6 +355,9 @@ async def folder_init(
355
355
 
356
356
  fail=0;
357
357
 
358
+ # We set this environment variable to avoid the CLI to show the warning about a new version
359
+ export TB_VERSION_WARNING=0
360
+
358
361
  for t in `find ./tests -name "*.test"`; do
359
362
  echo "** Running $t **"
360
363
  echo "** $(cat $t)"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 1.0.1.dev1
3
+ Version: 1.0.1.dev3
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://docs.tinybird.co/cli.html
6
6
  Author: Tinybird
@@ -19,6 +19,16 @@ Changelog
19
19
 
20
20
  ---------
21
21
 
22
+ 1.0.1.dev3
23
+ ************
24
+
25
+ - `Added` `tb env regression-tests` commands now support flag `--skip-regression-tests` or `export TB_SKIP_REGRESSION=1` to skip execution of regression tests. Handy for CI environments were regression tests might be flaky.
26
+
27
+ 1.0.1.dev2
28
+ ************
29
+
30
+ - `Changed` When running `tb init --git` for the first time the `exec_test.sh` script to run fixtures tests now includes an environment variable `export TB_VERSION_WARNING=0` to skip the CLI version warning.
31
+
22
32
  1.0.1.dev1
23
33
  ************
24
34