style: apply rustfmt
CI / UI Checks (push) Successful in 13s
CI / Rust Checks (push) Failing after 13m17s
CI / Deployment Manifests (push) Successful in 2s
Deploy / build-images (apps/admin-api/Dockerfile, git.itexp.me/bsodfather/crank-community-admin-api, admin-api) (push) Failing after 3s
Deploy / build-images (apps/mcp-server/Dockerfile, git.itexp.me/bsodfather/crank-community-mcp-server, mcp-server) (push) Failing after 3s
Deploy / build-images (apps/ui/Dockerfile, git.itexp.me/bsodfather/crank-community-ui, ui) (push) Failing after 4s
Deploy / deploy (push) Has been skipped
CI / Frontend E2E (push) Failing after 16m3s

This commit is contained in:
github-ops
2026-06-16 18:12:19 +00:00
parent bd8ee7f88f
commit 7f675410fd
6 changed files with 16 additions and 19 deletions
+1 -5
View File
@@ -2024,11 +2024,7 @@ impl AdminService {
request_id: &str,
) -> Result<TestRunResult, ApiError> {
let runtime_request_context = RuntimeRequestContext::from_request_id(request_id)
.with_metering_context(
workspace_id.clone(),
None,
InvocationSource::AdminTestRun,
);
.with_metering_context(workspace_id.clone(), None, InvocationSource::AdminTestRun);
let record = self
.get_operation_version(workspace_id, operation_id, payload.version)
.await?;
+3 -1
View File
@@ -4,7 +4,9 @@ use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::{AgentId, ExecutionMode, InvocationSource, Protocol, StreamSession, Target, WorkspaceId};
use crate::{
AgentId, ExecutionMode, InvocationSource, Protocol, StreamSession, Target, WorkspaceId,
};
#[derive(Clone, Debug, PartialEq, Eq, Default)]
pub struct ResponseCacheScope {
+5 -5
View File
@@ -46,10 +46,7 @@ impl Default for SingleTenantController {
#[async_trait]
impl TenantController for SingleTenantController {
fn resolve_tenant(
&self,
_request: &TenantResolutionContext,
) -> Result<TenantId, TenancyError> {
fn resolve_tenant(&self, _request: &TenantResolutionContext) -> Result<TenantId, TenancyError> {
Ok(self.tenant_id.clone())
}
@@ -73,7 +70,10 @@ mod tests {
let tenant = controller
.resolve_tenant(&TenantResolutionContext::default())
.unwrap();
let workspaces = controller.list_workspaces_for_tenant(&tenant).await.unwrap();
let workspaces = controller
.list_workspaces_for_tenant(&tenant)
.await
.unwrap();
assert_eq!(tenant, TenantId::new("default"));
assert!(workspaces.is_empty());
+4 -4
View File
@@ -53,13 +53,13 @@ pub use ext::billing::{
pub use ext::capability::{CapabilityProfile, CommunityCapabilityProfile};
pub use ext::metering::{MeteringEvent, MeteringSink, NoopMeteringSink, SharedMeteringSink};
pub use ext::protocol::{
AdapterRegistry, AdapterResponse, PreparedRequest, ProtocolAdapter, ProtocolAdapterError,
MeteringContext, ResponseCacheScope, RuntimeRequestContext, SharedProtocolAdapter,
AdapterRegistry, AdapterResponse, MeteringContext, PreparedRequest, ProtocolAdapter,
ProtocolAdapterError, ResponseCacheScope, RuntimeRequestContext, SharedProtocolAdapter,
WindowExecutionResult,
};
pub use ext::tenancy::{
SharedTenantController, SingleTenantController, TenantController, TenantResolutionContext,
TenancyError,
SharedTenantController, SingleTenantController, TenancyError, TenantController,
TenantResolutionContext,
};
pub use ids::{
AgentId, AsyncJobId, AuditEventId, AuthProfileId, DescriptorId, InvitationId, InvocationLogId,
+1 -3
View File
@@ -2,9 +2,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use crate::{
RuntimeCacheConfig, RuntimeCacheStoreInitError, RuntimeCacheStores,
};
use crate::{RuntimeCacheConfig, RuntimeCacheStoreInitError, RuntimeCacheStores};
#[async_trait]
pub trait CacheBackendFactory: Send + Sync {
+2 -1
View File
@@ -323,7 +323,8 @@ impl RuntimeExecutor {
result: &Result<T, RuntimeError>,
started_at: Instant,
) {
let Some(context) = request_context.and_then(RuntimeRequestContext::metering_context) else {
let Some(context) = request_context.and_then(RuntimeRequestContext::metering_context)
else {
return;
};