Repository navigation
feat(api,cli,worker): usage v2, monorepo --root, audit retention, arm64 release fix - #102
Merged
Merged
Conversation
…64 release fix
- Bandwidth metering: bandwidth_bytes on project usage aggregates —
per-deployment max−min deltas over deployment_metric net rx/tx.
- Team rollup: GET /api/v1/teams/{id}/usage + get_team_usage MCP tool
sharing team_usage(); REST and MCP verified identical live.
- Monorepo upload parity: `runway deploy --root <dir>` packs the repo
root while config.root_directory selects the app subtree; pack
excludes now match at any depth (*/node_modules, */.runway, ...).
- Audit retention: AUDIT_RETENTION_DAYS (0 = keep forever) prunes
audit_log in the daily sweep.
- release.yml: arm64 cross step no longer hardcodes the deb822
ubuntu.sources path — handles legacy .list runner images and reads
the codename from os-release. Fixes the v1.0.0 linux-arm64 failure.
Verified live: team usage 82 deployments / 174MB bandwidth over REST
and MCP; project usage gains bandwidth_bytes; gates green.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Mira PR Walkthrough❌ Review failed — click for detailsThe code review failed to complete due to an unexpected error. Stage: Code review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bandwidth_bytesonGET /api/v1/projects/{id}/usage: per-deploymentmax−mindeltas overdeployment_metricnet rx/tx samples.runway usageprints it.GET /api/v1/teams/{id}/usage+get_team_usageMCP tool sharingteam_usage(); verified identical on both surfaces live (82 deployments, 174MB bandwidth).runway deploy --root <dir>packs the repo root from inside an app subtree whileconfig.root_directoryselects the app server-side; pack excludes now match at any depth (*/node_modules,*/.runway,*/.next...).AUDIT_RETENTION_DAYS(default 0 = keep forever) prunesaudit_loginside the daily retention sweep.ubuntu.sourcespath and failed on the legacy.listrunner image; now handles both formats and reads the suite codename fromos-release.Test plan
cargo fmt --checkcargo check --workspacecargo clippy --workspace --all-targets -- -D warningscargo test --workspace(90 tests)GET /api/v1/projects/{id}/usage→bandwidth_bytes;GET /api/v1/teams/{id}/usage→ 200 with rollup; MCPget_team_usage→ identical payloadRoadmap updated: protection/preview-envs marked already-shipped; remaining gates now only function isolation, multi-region, billing hooks, plus the two creds/infra-gated verifications.
Generated with Devin