Comments (2)
Hi @mojkos,
There's 2 easy ways to accomplish what you want:
- If the data your python binary needs is deterministic and available in the repository, you could use a
genrule
instead of adbx_service_task
to produce the hash file. Genrules create output for other rules to consume in theirdata
attributes (the output would be located inrunfiles
). 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 existingdbx_service_task
rule. This would result in your task running as a prerequisite every time your test runs.
Hope that helps!
from dbx_build_tools.
Thanks @dzbarsky.
That's something I was expecting, just wanted to hear some other thoughts on that.
from dbx_build_tools.
Related Issues (20)
- No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type HOT 10
- map_each must be a function that accepts a single positional argument HOT 1
- Building python for aarch64 / ppc64le HOT 2
- How to get boto3 modules in dbx_py_pytest_test HOT 3
- Question: Support for macOS? HOT 3
- action_env not propagated to pypi build actions
- Rationale for not propagating -shared HOT 5
- Support test_suite for dbx_services_test HOT 6
- A need for more Documentation HOT 12
- Tagged versions HOT 3
- Hermeticity bug: Package setup can find host libraries (leading to import failures) HOT 6
- Go builds fail on filesystems that require UTF-8 filenames HOT 1
- using dbx_build_tools with Docker HOT 1
- How do I build a distribution archive (archive/master.tar.gz)? HOT 1
- Error downloading [http://zlib.net/zlib-1.2.11.tar.gz]
- Is this still active? HOT 1
- Can you please open-source the svcctl protos?
- mypy bazel rules appear to be missing some dependencies HOT 1
- openssl download url breaks when new version is released HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbx_build_tools.