Skip to content

sane interfaces integration#135

Merged
palp merged 16 commits intomainfrom
dmarx.sane_interfaces_integration
Nov 15, 2022
Merged

sane interfaces integration#135
palp merged 16 commits intomainfrom
dmarx.sane_interfaces_integration

Conversation

@dmarx
Copy link
Contributor

@dmarx dmarx commented Nov 14, 2022

followup from #131 and #114

@dmarx dmarx requested a review from palp November 14, 2022 21:05
@dmarx dmarx force-pushed the dmarx.sane_interfaces_integration branch from b753117 to e406b68 Compare November 14, 2022 21:25
@dmarx dmarx requested a review from wbrown November 14, 2022 21:28
@dmarx
Copy link
Contributor Author

dmarx commented Nov 14, 2022

@wbrown looks like this is still missing a serializer submodule that I think is supposed to be part of the tensorizer package?

@dmarx
Copy link
Contributor Author

dmarx commented Nov 14, 2022

local test failure gives different error message than the error being reported in gh actions. local error:

=================================================== test session starts ===================================================
platform darwin -- Python 3.9.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /Users/dmarx/proj/stability-sdk, configfile: pyproject.toml
collecting ... 
--------------------------------------------------- live log collection ---------------------------------------------------
WARNING  dotenv.main:main.py:21 Python-dotenv could not parse statement starting at line 1
collected 20 items / 1 error                                                                                              

========================================================= ERRORS ==========================================================
______________________ ERROR collecting src/stability_sdk/interfaces/src/tensorizer/test_protobuf.py ______________________
ImportError while importing test module '/Users/dmarx/proj/stability-sdk/src/stability_sdk/interfaces/src/tensorizer/test_protobuf.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
src/stability_sdk/interfaces/src/tensorizer/test_protobuf.py:2: in <module>
    import serializer
E   ModuleNotFoundError: No module named 'serializer'
================================================= short test summary info =================================================
ERROR src/stability_sdk/interfaces/src/tensorizer/test_protobuf.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================== 1 error in 0.07s =============================================== /0.3s

gh actions:

ImportError while loading conftest '/home/runner/work/stability-sdk/stability-sdk/tests/conftest.py'.
tests/conftest.py:18: in <module>
    import stability_sdk.interfaces.gooseai.generation.generation_pb2 as generation
/opt/hostedtoolcache/Python/3.8.[14](https://github.com/Stability-AI/stability-sdk/actions/runs/3465307474/jobs/5787958295#step:6:15)/x64/lib/python3.8/site-packages/stability_sdk/interfaces/gooseai/generation/generation_pb2.py:16: in <module>
    import tensors_pb2 as tensors__pb2
E   ModuleNotFoundError: No module named 'tensors_pb2'
Error: Process completed with exit code 4.

is it possible the recursive checkout action isn't actually recursing properly? i.e. maybe tensorizers isn't being checked out to the working tree in the test runner?

Copy link
Contributor

@palp palp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

@pharmapsychotic
Copy link
Member

@palp
Copy link
Contributor

palp commented Nov 14, 2022

is it possible the recursive checkout action isn't actually recursing properly? i.e. maybe tensorizers isn't being checked out to the working tree in the test runner?

Maybe try manually running something like this after checkout?

- git submodule init
- git submodule update --recursive

why is this even necessary? can we please make these packages installable so we don't have to deal with these path changing headaches?
@dmarx
Copy link
Contributor Author

dmarx commented Nov 14, 2022

this is legit driving me crazy. as far as I can tell, i've got this working on the [..].ci_test version of this branch (up to matching my local error anyway), but the changes don't seem to have carried over to this branch when I made what I'm pretty sure are the sam updates. Moreover, the error is currently being thrown by line 19 of conftest, which is past an assertion for the existence of a file that should resolve the issue that causes this error to be thrown. so the file is there, but it can't be imported?

...pretty sure all of this would be resolved if api-interfaces and tensorizer were modified to be properly installed packages, i.e. with a setup.py?

@dmarx
Copy link
Contributor Author

dmarx commented Nov 14, 2022

backup plan if this continues to be a headache: rollback the version on api-interfaces to pre-tensorizer. call updating api-interfaces a separate dependent PR.

run: |
cd src/stability_sdk/interfaces
git submodule init
git submodule update
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be --recursive?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@palp palp merged commit 5325184 into main Nov 15, 2022
@palp palp deleted the dmarx.sane_interfaces_integration branch November 15, 2022 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants