https://linen.dev logo
m

Michel

11/09/2020, 10:59 PM
Is master supposed to pass?
u

user

11/09/2020, 10:59 PM
Copy code
==================================== ERRORS ====================================
	 _____________ ERROR collecting unit_tests/test_transform_config.py _____________
	 ImportError while importing test module '/home/runner/work/airbyte/airbyte/airbyte-integrations/bases/base-normalization/unit_tests/test_transform_config.py'.
	 Hint: make sure your test modules/packages have valid Python names.
	 Traceback:
	 .venv/lib/python3.7/importlib/__init__.py:127: in import_module
	     return _bootstrap._gcd_import(name[level:], package, level)
	 unit_tests/test_transform_config.py:29: in <module>
	     from normalization import TransformConfig
	 normalization/__init__.py:25: in <module>
	     from .transform_catalog.transform import TransformCatalog
	 normalization/transform_catalog/__init__.py:25: in <module>
	     from .transform import TransformCatalog
	 normalization/transform_catalog/transform.py:30: in <module>
	     import yaml
	 E   ModuleNotFoundError: No module named 'yaml'
	 =========================== short test summary info ============================
	 ERROR unit_tests/test_transform_config.py
	 !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
	 =============================== 1 error in 0.15s ===============================
@Jared Rhizor (Airbyte) FYI
u

user

11/09/2020, 11:01 PM
looking
u

user

11/09/2020, 11:08 PM
To reproduce locally you can do:
Copy code
ā†’ rm -rf airbyte-integrations/bases/base-normalization/.venv
ā†’ ./gradlew :airbyte-integrations:bases:base-normalization:unitTest
u

user

11/09/2020, 11:09 PM
so it is not related to your change? (My push to master was only docmentation)
u

user

11/09/2020, 11:13 PM
I think there's just a missing dependency between
unitTest
and
installTestReqs
.
u

user

11/09/2020, 11:13 PM
ok, I'll take a quick look at it
u

user

11/09/2020, 11:13 PM
I imagine it'd only work half of the time
u

user

11/09/2020, 11:13 PM
putting up a PR
u

user

11/09/2020, 11:23 PM
Thanks, approved
u

user

11/10/2020, 6:04 AM
I am still getting errors like this.
u

user

11/10/2020, 6:04 AM
Copy code
> Task :airbyte-integrations:connectors:source-facebook-marketing-api-singer:unitTest FAILED
[python] .venv/bin/python -m pytest unit_tests
         ============================= test session starts ==============================
         platform darwin -- Python 3.7.8, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
         rootdir: /Users/charles/code/airbyte/airbyte-integrations/connectors/source-facebook-marketing-api-singer
         collected 0 items / 1 error

         ==================================== ERRORS ====================================
         ___________________ ERROR collecting unit_tests/unit_test.py ___________________
         ImportError while importing test module '/Users/charles/code/airbyte/airbyte-integrations/connectors/source-facebook-marketing-api-singer/unit_tests/unit_test.py'.
         Hint: make sure your test modules/packages have valid Python names.
         Traceback:
         .venv/lib/python3.7/importlib/__init__.py:127: in import_module
             return _bootstrap._gcd_import(name[level:], package, level)
         unit_tests/unit_test.py:25: in <module>
             from base_python import AirbyteLogger
         base_python/__init__.py:25: in <module>
             from .integration import AirbyteSpec, ConfigContainer, Destination, Integration, Source
         base_python/integration.py:30: in <module>
             from airbyte_protocol import AirbyteCatalog, AirbyteConnectionStatus, AirbyteMessage, ConnectorSpecification
         airbyte_protocol/__init__.py:25: in <module>
             from .models import (
         airbyte_protocol/models/__init__.py:26: in <module>
             from .airbyte_message import *
         airbyte_protocol/models/airbyte_message.py:33: in <module>
             from pydantic import AnyUrl, BaseModel, Field
         E   ModuleNotFoundError: No module named 'pydantic'
         =========================== short test summary info ============================
         ERROR unit_tests/unit_test.py
         !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
         =============================== 1 error in 0.42s ===============================
u

user

11/10/2020, 6:04 AM
on maste.r
u

user

11/10/2020, 6:56 AM
ah. i see this never got fixed.
u

user

11/10/2020, 7:04 AM
it must be related to python caching somehow
u

user

11/10/2020, 7:05 AM
yolo
5 Views