Commit Graph

65 Commits

Author SHA1 Message Date
Erik Ritter 9900e5a689
fix: exclude node_modules from ts tracking (#18117) 2022-01-25 10:14:25 -08:00
Amit Miran 4954d52329
ci: make presto hive tests to cover only chartData and sqljson (#17782)
* chore: make presto hive tests to cover only chartData and sqljson

* fix: single quote

* fix: add eval for arguments

* fix: add double quotes on args

* chore: add @pytest.mark.sql_json_flow

* fix: pre-commit
2021-12-31 07:17:54 +02:00
Bogdan bcd698d999
chore: print test runtime (#17770)
* Print test runtime

* revert me

* duration for unit tests as well

* Revert "revert me"

This reverts commit b82d701d65f97ba617c4fc89e0ff56eee74885f2.

Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2021-12-16 10:33:15 -08:00
Daniel Vaz Gaspar 485852d700
ci: temp fix for mysqlclient on an OS regression bug (#17724) 2021-12-13 12:03:41 +00:00
Erik Ritter 8e69b2db34
chore: Update TS tasklist script (#17691) 2021-12-09 22:28:42 -08:00
Yongjie Zhao 12f1d914bd
chore: update babel doc (#17679)
* chore: update babel doc

* update .po file

* update translation workflow
2021-12-08 16:36:57 +08:00
Yongjie Zhao 3c41ff68a4
refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00
Ville Brofeldt 77e7d162d2
ci: check npm lockfile version (#16916) 2021-09-30 10:43:38 +02:00
Ville Brofeldt b92358b5b8
ci: bump npm to version 7 (#16748) 2021-09-20 15:01:47 +03:00
John Bodley 7b724439b9
chore(pylint): Reenable ungrouped-imports check (#16256)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-08-17 04:01:01 +12:00
Ville Brofeldt d46dc9aa45
chore: upgrade mypy and add type guards (#16227) 2021-08-14 06:31:45 +03:00
Beto Dealmeida 9a79a5775b
feat: store query context when saving charts (#15824)
* WIP

* Add migration

* Fix tests
2021-07-21 13:54:39 -07:00
John Bodley ab4e3b9bf9
chore: Enforce Mypy for non-tests (#15757)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-07-22 06:46:43 +12:00
Beto Dealmeida d26254099e
fix: benchmark_migration.py needs to close sssion (#15822) 2021-07-21 11:16:46 -07:00
Beto Dealmeida 6cb91ee142
fix: migration script can't drop constraint (#15807) 2021-07-20 17:24:58 -07:00
Beto Dealmeida 5cc95bb378
fix: create fk model in benchmark script (#15804) 2021-07-20 14:04:19 -07:00
AAfghahi 80dd525026
feat: adding Progress Bar to Benchmark script (#15719)
* rough draft of benchmark script

* revisions

* revisions

* rough draft of benchmark script

* revisions

* Update requirements/development.in

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset/utils/mock_data.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* more revisions

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-07-19 16:34:58 -07:00
ofekisr b5119b8dff
refactor(tests): decouple unittests from integration tests (#15473)
* refactor move all tests to be under integration_tests package

* refactor decouple unittests from integration tests - commands

* add unit_tests package

* fix celery_tests.py

* fix wrong FIXTURES_DIR value
2021-07-01 18:03:07 +03:00
Beto Dealmeida 3b97074ecb
fix: benchmark migration script (#15032) 2021-06-08 13:57:07 -07:00
Beto Dealmeida c1cb3619ab
feat: script to benchmark DB migrations (#13561) 2021-04-15 10:55:35 -07:00
Ben Reinhart 52b5ea33d7
fix: restart superset container in test script (#13780) 2021-03-25 15:31:50 -07:00
Ville Brofeldt 40fc144bbe
ci: increase page size of GH PR API call (#13518) 2021-03-09 08:27:59 +02:00
Jesse Yang d39bc14a0b
test: optimize codecov config (#13329)
* test: optimize codecov config to let GitHub checks always pass

* Run tests on workflow changes, too
2021-02-25 05:22:34 -08:00
Ville Brofeldt 15567dd627
ci: always execute tests on non-PRs (#13260) 2021-02-22 08:23:34 +02:00
Ville Brofeldt ad380fd0f8
fix(ci): multiline regex in change detection (#13075)
* fix(ci): multiline regex in change detection

* fix shellcheck issues
2021-02-11 15:40:44 +02:00
Jesse Yang 2456a2eb99
chore: remove example token to avoid confusion (#12967) 2021-02-05 12:22:34 -08:00
Ville Brofeldt 5d55c4367c
ci: conditionally skip python and frontend tests (#12583)
* ci: conditionally skip python tests

* parametrize check script and implement for frontend

* add missing script

* fix incorrect check

* move CHECKS to ARGS and fix typo

* fix SC2086 nit
2021-02-05 17:40:08 +02:00
Jesse Yang 9c5ec3d72a
fix(CI): properly configure cancel duplicates (#12625)
Updating the "Cancel Duplicates" job to use our own Python script, which will try to cancel all duplicate jobs of all workflows:

For each workflow, we keep only the latest run for a given branch + event type (pull_request or push).
Older runs will be cancelled even if they are already running.
2021-01-29 12:29:46 -08:00
Elizabeth Thompson 80deb4ed7c
fix: update latest tag action to use set-output (#12706) 2021-01-24 16:40:52 -08:00
Michael S. Molina c85b4c75b1
Fix translation files and update documentation (#12595) 2021-01-20 10:50:24 -08:00
Amit Miran 4cf3f99ee8
chore: remove additional incubator references (#12336)
* chore: remove additional incubator references
remove incubator.png from the main docs page

* fix: improve text for contributing-page.mdx

* fix: lint no-unused-vars
2021-01-11 06:09:10 -08:00
Jesse Yang f48284909d
build: try to speed up Github workflows (#12090) 2021-01-07 00:47:00 -08:00
Elizabeth Thompson 895fa19d8d
chore: add latest tag action (#11148)
* add latest tag action

* update documentation with latest tag info

* Python in docs doesn't need v3 reference

* add check that latest tag is truly a later version

* remove rc from acceptable tags

* move tag script to seperate file

* add a check that the tag exists
2020-12-17 20:50:44 +02:00
Beto Dealmeida 7594161856
fix: do not import superset_config on tests (#11193)
* Do not import superset_config on tests

* Use strtobool
2020-10-14 07:54:31 -07:00
Amit Miran 63579b3049
allow passing bash args into the pytest (#11040)
this can be used in local environment when for example you want to pass specific *mark* to run against
2020-10-05 15:46:25 -07:00
Maxime Beauchemin 6358a7f1b5
docs: add API page to docs using Swagger UI (#11154)
* docs: add API page to docs using Swagger UI

* silence fossa
2020-10-04 22:01:36 -07:00
Ville Brofeldt 39cce712af
docs: add changelog entries for 0.37.2 (#11086) 2020-09-28 11:14:09 +03:00
Rob DiCiuccio d74044c2e6
Update FOSSA configuration for new requirements layout (#10848)
* Update FOSSA configuration

* test FOSSA failure

* Update FOSSA files changed regex

* Revert "test FOSSA failure"

This reverts commit a97213db78.

* pre-commit linting

* remove docker.txt check
2020-09-16 13:28:04 -07:00
Bogdan 19a9bcc9c5
chore: ci Initial hive support (#10593)
* Initial hive support

* Clone hive setup

* Make hive tests work locally

* Debugging presto failure

* sleep in dataset test

* Address comments

* Address comments

* Pin ipython, exclude new pylint rules

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
2020-08-27 09:49:18 -07:00
Craig Rueda 2aaa4d92d9
chore: Migrating reports to AuthWebdriverProxy (#10567)
* Migrating reports to AuthWebdriverProxy

* Extracting out webdriver proxy / Adding thumbnail tests to CI

* Adding license

* Adding license again

* Empty commit

* Adding thumbnail tests to CI

* Switching thumbnail test to Postgres

* Linting

* Adding mypy:ignore / removing thumbnail tests from CI

* Putting ignore statement back

* Updating docs

* First cut at authprovider

* First cut at authprovider mostly working - still needs more tests

* Auth provider tests added

* Linting

* Linting again...

* Linting again...

* Busting CI cache

* Reverting workflow change

* Fixing dataclasses

* Reverting back to master

* linting?

* Reverting installation.rst

* Reverting package-lock.json

* Addressing feedback

* Blacking

* Lazy logging strings

* UPDATING.md note
2020-08-12 13:28:41 -07:00
Bogdan 0071d374da
chore: move load examples to the fixture (#10545)
* Move load examples to the fixture

* Update tests/celery_tests.py

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* Address feedback

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2020-08-10 13:20:19 -07:00
John Bodley cda764fd4b
chore: Adding pip-compile-multi et al. (#10499)
* chore: Adding pip-compile-multi et al

* Specify requirements.txt path for fossa

* [ci] Fixing CI

Co-authored-by: John Bodley <john.bodley@airbnb.com>
Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
2020-08-04 19:31:52 -07:00
John Bodley 821916a681
chore: pre-commit run --all-files (#10500)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2020-08-02 14:32:17 -07:00
Daniel Vaz Gaspar e4c9c7364b
tests: update test run doc and add some improvements (#10339)
* fix: update tests/run.sh README to pytest and some improvements

* update docs

* nit

* fix doc
2020-07-16 13:03:49 +01:00
Maxime Beauchemin b4cd57b7bd
chore: remove unused files from root (#10318)
Also moving 2 bash scripts to the scripts/ folder.

This is part of a series of commit cleanup up the main page on GitHub,
mostly focused on the content of the README, but might as well groom the
root folder a bit
2020-07-14 22:40:34 -07:00
Bogdan 4e340c8368
feat: Switch from nosetest to pytest (#10177)
* Switch from nosetest to pytest

Fix schedule tests

Collect pytest coverage

Move pytest config into pytest.ini

Move cov to the pytest.ini

* Append coverage for the 2nd run

* Add coverage to all commands

* Coverage only for tests

* Get coverage from 1 place

* Rename classes to be  pytest compatible

* Test coverage for examples and tests

* Max diff to -1

* Explain how to run pytest for the whole project

* Do not append code coverage for the main run

* Do not run coverage on examples

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
2020-06-29 15:36:06 -07:00
Erik Ritter e3013ea129
other: add TypeScript tracker generation script (#10074) 2020-06-16 18:54:51 -07:00
Daniel Vaz Gaspar 4427d65717
tests(celery): improve celery tests infra (#9775) 2020-05-14 16:58:30 +01:00
Daniel Vaz Gaspar 660ea88534
tests: Fix, script to help run single tests (#9779) 2020-05-11 17:42:46 +01:00
Daniel Vaz Gaspar 9cf33e9f9d
[tests] Helper script to run single tests (#9547) 2020-04-21 20:03:58 +01:00