BotsService: publish execution stats
Before raising this MR, consider whether the following are required, and complete if so:
-
Unit tests -
Metrics -
Documentation update(s)
Description
This MR is the successor of !877 (merged) . After a lease is completed and a job is marked as finished, it publishes the resource usage for the user of each association operation.
Changes proposed in this merge request:
- Bring in the
execution_stats.proto
to this repo and generate the Python code - Add helper functions to fetch the
ExecutionStatistics
from CASExecutedActionMetadata.auxiliary_metadata: repeated Any -> Digest --CAS--> Any -> ExecutionStatistics
- Updated parser
- Call
metering-service
to publish resource usage
This MR also adds a docker-compose file that uses buildbox-worker
instead of the built-in bots.
Validation
Unit tests.
Edited by Zehao Chen