Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-8003: Unit tests #6

Merged
merged 12 commits into from
Jul 12, 2024
Merged

Conversation

dhritinaidu
Copy link
Contributor

added unit tests, makefile, meta.json, and github workflows

viam build local works on Darwin

Also tested with client using viam server

Copy link

@bhaney bhaney left a comment

Choose a reason for hiding this comment

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

Nice work! Not a lot of changes to do, just a few things I noticed

Makefile Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
Copy link

@bhaney bhaney left a comment

Choose a reason for hiding this comment

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

Just some questions I have before approving

@@ -12,7 +12,7 @@
"build": {
"build": "./build.sh",
"path": "dist/archive.tar.gz",
"arch": ["darwin/arm64", "darwin/amd64", "linux/arm64", "linux/amd64"]
"arch": ["linux/arm64", "linux/amd64"]
},
"entrypoint": "dist/main"
Copy link

Choose a reason for hiding this comment

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

Is the entrypoint dist/__main__ or dist/main ? it seems like the the Makefile and the meta.json do different things, they should be consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's my bad, fixing this

from src.model_inspector.utils import is_defined_shape, output_to_shape_dict
from model_inspector.utils import is_defined_shape, output_to_shape_dict
Copy link

Choose a reason for hiding this comment

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

why is it no longer necessary to use the src root directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the test_local.py into src because the imports were acting up when I ran make file

@dhritinaidu dhritinaidu merged commit 9ab097d into viam-modules:main Jul 12, 2024
1 check passed
@dhritinaidu dhritinaidu changed the title Unit tests RSDK-8003: Unit tests Jul 15, 2024
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.

2 participants