-
Notifications
You must be signed in to change notification settings - Fork 11
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
robot: fix Python client import #240
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #240 +/- ##
=======================================
Coverage 74.52% 74.52%
=======================================
Files 17 17
Lines 2296 2296
Branches 73 73
=======================================
Hits 1711 1711
Misses 420 420
Partials 165 165 ☔ View full report in Codecov by Sentry. |
@tarilabs I haven't been able to run this locally per the instructions you gave me: docker run -p 9090:8080 --env METADATA_STORE_SERVER_CONFIG_FILE=/tmp/shared/conn_config.pb --volume../test/bdd:/tmp/shared gcr.io/tfx-oss-public/ml_metadata_store_server:1.14.0 then make build
./model-registry proxy then TEST_MODE=Python robot test Am I doing something wrong? Is there a better way to run this? |
When the proxy connects, it automatically creates the MLMD _type(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isinyaaa I think the issue is in your volume, you are passing /test/bdd
but you should pass the local dir where conn_config.pb
is stored which is test/config/ml-metadata/
, let's try with this change and it should work.
I tried locally and robot
tests are working properly, therefore LGTM!!
Nevermind, I did not use the proper binary.. they are not working running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should fix the issue for MRandLogicalModel.robot
, still checking the other one
Signed-off-by: Isabella Basso do Amaral <[email protected]>
Signed-off-by: Isabella Basso do Amaral <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, robot tests are working for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with me.
Made sure to have installed: pip install robotframework robotframework-requests PyYAML
and of course all python MR client dep and related.
Tested locally with.
In one terminal
docker run -p 9090:8080 --env METADATA_STORE_SERVER_CONFIG_FILE=/tmp/shared/conn_config.pb --volume ./test/config/ml-metadata:/tmp/shared gcr.io/tfx-oss-public/ml_metadata_store_server:1.14.0
In another terminal
./model-registry proxy
I1213 18:35:25.649365 14668 proxy.go:31] proxy server started at localhost:8080
I1213 18:35:25.649665 14668 proxy.go:37] connecting to MLMD server localhost:9090..
I1213 18:35:25.678205 14668 proxy.go:49] connected to MLMD server
In a third terminal:
robot UserStory.robot
TEST_MODE=Python robot MRandLogicalModel.robot
robot MRandLogicalModel.robot
thanks a lot for the instructions, Matteo :) I managed to run it as well |
Always glad to help @isinyaaa , teamwork to the moon 🚀 🌙 |
…pendatahub-io#240) Bumps [black](https://github.com/psf/black) from 24.4.2 to 24.8.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@24.4.2...24.8.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This fixes Robot tests for the Python client.
Description
This fixes the imported python client on Robot tests to match what's exposed after adding a higher-level API.
How Has This Been Tested?
I haven't managed to run robot locally successfully yet, but it seems the import problem has been fixed.
Merge criteria: