You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have integration test which requires an input data
Input data is result of python binary execution wrapped with dbx_service_task, it executes some actions and produce hash in a file as result for those actions
We want that file be accessible in test's context.
Currently, dbx_service_task does NOT declare any output so there's nothing to declare as 'data' dependency for test.
Questions:
Do you have similar use cases, and how did you handle them?
If not, what do you think is the way to pass files created by the service task into context of dbx_service_test target?
The text was updated successfully, but these errors were encountered:
If the data your python binary needs is deterministic and available in the repository, you could use a genrule instead of a dbx_service_task to produce the hash file. Genrules create output for other rules to consume in their data attributes (the output would be located in runfiles). This would result in the binary running once and having the result be cached, rather than with every test invocation.
You can use the services attribute of a test rule to depend on your existing dbx_service_task rule. This would result in your task running as a prerequisite every time your test runs.
The text was updated successfully, but these errors were encountered: