-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
allow programmatic overridding of yaml config #2105
Comments
Following the refinement meeting today, there needs to be a design discussion for how we solve this ticket. Specifically focusing on how we solve the issue I have set up a 30-minute meeting to discuss solutions. To make the meeting as quick as possible, if you have thoughts beforehand please post them here ⬇️ |
Findings: Passing with Flow().add(uses='_index',
**{'name': 'ws_from_code'}
) as f:
f.index(docs, on_done=mock) In pod = BasePod(args, needs=needs)
op_flow._pod_nodes[pod_name] = pod Also, the name is kept also in the The problem seems to be that if you provide a See here: jina/jina/peapods/runtimes/zmq/zed.py Line 64 in 1f4ded9
|
#2162 partially fixes this for one specific test. We can use this approach on a per-test basis. However, we still want in the future to be able to override / specify context args / env. vars. from Python to override any YAML config. Should keep this issue open |
Closing this issue, as landscape for |
Will that address this issue? |
I would reopen later given the new semantics, since quite likely all these observations will be outdated |
But the underlying point is still valid |
ok let's reopen then |
@JoanFM we can do this now with override_with and override_metas, right? |
yes @cristianmtr |
Atm we have some tests in core that create a workspace in hardcoded paths (based on
resources
), likejina/tests/integration/crud/simple/test_crud_readme.py
Line 8 in fd01fd2
This leads to tests failing and time wasted trying to debug it until you realize that it was reusing the workspace from an older local run. In CI we don't have this problem. We should not have tests that do this, I propose.
The problem is that we are using this
_index.yml
from resources which has a hardcoded path. Is there any way to override the metas of the indexer programatically in Python?The text was updated successfully, but these errors were encountered: