You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/04/29 07:12:29 UTC
[GitHub] [superset] EBoisseauSierra commented on issue #14052: Unable to run tests successfully as per documentation
EBoisseauSierra commented on issue #14052:
URL: https://github.com/apache/superset/issues/14052#issuecomment-828994879
So I've been able to narrow down things a little.
Using following setup on a Fedora32 VM:
```shell
sudo dnf install -y git
git clone git@github.com:apache/superset.git
cd superset
git heavy_check_markout 1.1.0 # to make things reproducible
sudo dnf install -y gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel cyrus-sasl-devel openldap-devel # as per https://superset.apache.org/docs/installation/installing-superset-from-scratch#os-dependencies
sudo dnf -y install mariadb-devel # FIX as per https://stackoverflow.com/q/22949654/5433628
python3.8 -m venv venv
source venv/bin/activate
pip install -r requirements/testing.txt
pip install .
superset fab create-admin --username admin --firstname Ad --lastname Ministrator --email admin@email.com --password secret # FIX explicitely create an admin user with username exactly `admin`
superset db upgrade
superset init
superset load-examples || superset load-examples # FIX
sudo dnf -y install redis
sudo systemctl enable --now redis
```
I can detail the result of various tests, that I run using:
```
tox -e py38 -- tests/<filename>.py 2>&1 | tee tox38_<filename>.log
```
| Status | Test file | Result | Log file |
| :---: | :---- | :---- | :---- |
| :warning: | `access_tests.py` | 9P, 9W, 1E | [tox38_access_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_access_tests.log)|
| :x: | `alerts_tests.py` | 20F, 6P, 6W | [tox38_alerts_tests.log](https://chat.unipart.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_alerts_tests.log)|
| :warning: | `base_api_tests.py` | 3P, 9W, 2E | [tox38_base_api_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_base_api_tests.log)|
| :heavy_check_mark: | `base_tests.py` | | [tox38_base_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_base_tests.log) |
| :heavy_check_mark: | `cache_tests.py` | | [tox38_cache_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_cache_tests.log)|
| :x: | `celery_tests.py` | 4F, 5P, 12W | [tox38_celery_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_celery_tests.log) |
| :heavy_check_mark: | `commands_test.py` | 2P, 7W | [tox38_commands_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_commands_tests.log)|
| :heavy_check_mark: | `config_tests.py` | 6P, 8W | [tox38_config_tests.log](https://chat.unipart.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_config_tests.log)|
| :gear: | `conftest.py` | 6W | [tox38_conftest.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_conftest.log)|
| :x: | `core_tests.py` | 61P, 38W, 1E | [tox38_core_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_core_tests.log)|
| :heavy_check_mark: | `csv_upload_tests.py` | 2P, 2S, 10W | [tox38_csv_upload_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_csv_upload_tests.log)|
| :warning: | `dashboard_tests.py` | 17P, 7W, 2E | [tox38_dashboard_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_dashboard_tests.log)|
| :gear: | `dashboard_utils.py` | | |
| :heavy_check_mark: | `dataframe_test.py` | 2P, 7W | [tox38_dataframe_test.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_dataframe_test.log)|
| :x: | `datasource_tests.py` | 1F, 2P, 7W | [tox38_datasource_tests.log](https://chat.unipart.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_datasource_tests.log)|
| :heavy_check_mark: | `dict_import_export_tests.py` | 13P, 7W | [tox38_dict_import_export_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_dict_import_export_tests.log)|
| :heavy_check_mark: | `druid_func_tests.py` | 33P, 7W | [tox38_druid_func_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_druid_func_tests.log)|
| :heavy_check_mark: | `druid_func_tests_sip38.py` | 33P, 7W | [tox38_druid_func_tests_sip38.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_druid_func_tests_sip38.log)|
| :heavy_check_mark: | `druid_tests.py` | 9P, 1S, 63W | [tox38_druid_tests.log](https://chat.unipart.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_druid_tests.log)|
| :heavy_check_mark: | `email_tests.py` | 8P, 7W | [tox38_email_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_email_tests.log)|
| :heavy_check_mark: | `event_logger_tests.py` | 5P, 7W | [tox38_event_logger_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_event_logger_tests.log)|
| :heavy_check_mark: | `feature_flag_tests.py` | 3P, 7W | [tox38_feature_flag_tests.log](https://chat.unipart.io/github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_feature_flag_tests.log)|
| :heavy_check_mark: | `form_tests.py` | 2P, 7W | [tox38_form_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_form_tests.log)|
| :x: | `import_export_tests.py` | 3F, 15P, 7W, 4E | [tox38_import_export_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_import_export_tests.log)|
| :gear: | `__init__.py` | | |
| :gear: | `insert_chart_mixin.py` | | |
| :heavy_check_mark: | `jinja_context_tests.py` | 30P, 7W | [tox38_jinja_context_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_jinja_context_tests.log)|
| :heavy_check_mark: | `log_api_tests.py` | 5P, 7W | [tox38_log_api_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_log_api_tests.log)|
| :heavy_check_mark: | `logging_configurator_tests.py` | 1P, 6W | [tox38_logging_configurator_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_logging_configurator_tests.log)|
| :heavy_check_mark: | `migration_tests.py` | 1P, 7W | [tox38_migration_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_migration_tests.log)|
| :heavy_check_mark: | `model_tests.py` | 18P, 7W | [tox38_model_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_model_tests.log)|
| :heavy_check_mark: | `pandas_postprocessing_tests.py` | 24P, 1S, 7W | [tox38_pandas_postprocessing_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_pandas_postprocessing_tests.log)|
| :x: | `query_context_tests.py` | 2F, 13P, 61W | [tox38_query_context_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_query_context_tests.log)|
| :heavy_check_mark: | `result_set_tests.py` | 15P, 7W | [tox38_result_set_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_result_set_tests.log)|
| :warning: | `schedules_test.py` | 5P, 7W, 8E | [tox38_schedules_test.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_schedules_test.log) |
| :x: | `security_tests.py` | 24F, 13P, 7W, 4E | [tox38_security_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_security_tests.log)|
| :heavy_check_mark: | `sqla_models_tests.py` | 9P, 7W | [tox38_sqla_models_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_sqla_models_tests.log)|
| :heavy_check_mark: | `sqllab_tests.py` | 30P, 8W | [tox38_sqllab_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_sqllab_tests.log)|
| :heavy_check_mark: | `sql_parse_tests.py` | 42P, 6W | [tox38_sql_parse_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_sql_parse_tests.log)|
| :heavy_check_mark: | `sql_validator_tests.py` | 11P, 7W | [tox38_sql_validator_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_sql_validator_tests.log)|
| :heavy_check_mark: | `stats_logger_tests.py` | 2P, 6W | [tox38_stats_logger_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_stats_logger_tests.log)|
| :heavy_check_mark: | `strategy_tests.py` | 9P, 6W | [tox38_stats_logger_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_stats_logger_tests.log)|
| :gear: | `superset_test_config.py` | | |
| :gear: | `superset_test_config_sqllab_backend_persist.py` | | |
| :gear: | `superset_test_config_thumbnails.py` | | |
| :gear: | `superset_test_custom_template_processors.py` | | |
| :heavy_check_mark: | `tagging_tests.py` | 1P, 1S, 7W | [tox38_tagging_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_tagging_tests.log)|
| :gear: | `test_app.py` | | |
| :x: | `thumbnails_tests.py` | 2F, 10S, 7W | [tox38_thumbnails_tests.log](https://chat.github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_thumbnails_tests.log)|
| :warning: | `utils_tests.py` | 51P, 11W, 1E | [tox38_thumbnails_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_thumbnails_tests.log)|
| :heavy_check_mark: | `viz_tests.py` | 55P, 20W | [tox38_viz_tests.log](https://github.com/EBoisseauSierra/superset-tox38-logs/blob/master/tox38_viz_tests.log)|
Where:
* :x: tests failed (possibly with errors as well),
* :warning: : tests didn't failed, yet had errors,
* :heavy_check_mark: : tests ran fine (possibly with warnings),
* :gear: : not a test file.
I still need to investigate the faulty ones more closely to understand why they fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org