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
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:
@@ -2024,11 +2024,7 @@ impl AdminService {
|
|||||||
request_id: &str,
|
request_id: &str,
|
||||||
) -> Result<TestRunResult, ApiError> {
|
) -> Result<TestRunResult, ApiError> {
|
||||||
let runtime_request_context = RuntimeRequestContext::from_request_id(request_id)
|
let runtime_request_context = RuntimeRequestContext::from_request_id(request_id)
|
||||||
.with_metering_context(
|
.with_metering_context(workspace_id.clone(), None, InvocationSource::AdminTestRun);
|
||||||
workspace_id.clone(),
|
|
||||||
None,
|
|
||||||
InvocationSource::AdminTestRun,
|
|
||||||
);
|
|
||||||
let record = self
|
let record = self
|
||||||
.get_operation_version(workspace_id, operation_id, payload.version)
|
.get_operation_version(workspace_id, operation_id, payload.version)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ use async_trait::async_trait;
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::Value;
|
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)]
|
#[derive(Clone, Debug, PartialEq, Eq, Default)]
|
||||||
pub struct ResponseCacheScope {
|
pub struct ResponseCacheScope {
|
||||||
|
|||||||
@@ -46,10 +46,7 @@ impl Default for SingleTenantController {
|
|||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl TenantController for SingleTenantController {
|
impl TenantController for SingleTenantController {
|
||||||
fn resolve_tenant(
|
fn resolve_tenant(&self, _request: &TenantResolutionContext) -> Result<TenantId, TenancyError> {
|
||||||
&self,
|
|
||||||
_request: &TenantResolutionContext,
|
|
||||||
) -> Result<TenantId, TenancyError> {
|
|
||||||
Ok(self.tenant_id.clone())
|
Ok(self.tenant_id.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +70,10 @@ mod tests {
|
|||||||
let tenant = controller
|
let tenant = controller
|
||||||
.resolve_tenant(&TenantResolutionContext::default())
|
.resolve_tenant(&TenantResolutionContext::default())
|
||||||
.unwrap();
|
.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_eq!(tenant, TenantId::new("default"));
|
||||||
assert!(workspaces.is_empty());
|
assert!(workspaces.is_empty());
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ pub use ext::billing::{
|
|||||||
pub use ext::capability::{CapabilityProfile, CommunityCapabilityProfile};
|
pub use ext::capability::{CapabilityProfile, CommunityCapabilityProfile};
|
||||||
pub use ext::metering::{MeteringEvent, MeteringSink, NoopMeteringSink, SharedMeteringSink};
|
pub use ext::metering::{MeteringEvent, MeteringSink, NoopMeteringSink, SharedMeteringSink};
|
||||||
pub use ext::protocol::{
|
pub use ext::protocol::{
|
||||||
AdapterRegistry, AdapterResponse, PreparedRequest, ProtocolAdapter, ProtocolAdapterError,
|
AdapterRegistry, AdapterResponse, MeteringContext, PreparedRequest, ProtocolAdapter,
|
||||||
MeteringContext, ResponseCacheScope, RuntimeRequestContext, SharedProtocolAdapter,
|
ProtocolAdapterError, ResponseCacheScope, RuntimeRequestContext, SharedProtocolAdapter,
|
||||||
WindowExecutionResult,
|
WindowExecutionResult,
|
||||||
};
|
};
|
||||||
pub use ext::tenancy::{
|
pub use ext::tenancy::{
|
||||||
SharedTenantController, SingleTenantController, TenantController, TenantResolutionContext,
|
SharedTenantController, SingleTenantController, TenancyError, TenantController,
|
||||||
TenancyError,
|
TenantResolutionContext,
|
||||||
};
|
};
|
||||||
pub use ids::{
|
pub use ids::{
|
||||||
AgentId, AsyncJobId, AuditEventId, AuthProfileId, DescriptorId, InvitationId, InvocationLogId,
|
AgentId, AsyncJobId, AuditEventId, AuthProfileId, DescriptorId, InvitationId, InvocationLogId,
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ use std::sync::Arc;
|
|||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|
||||||
use crate::{
|
use crate::{RuntimeCacheConfig, RuntimeCacheStoreInitError, RuntimeCacheStores};
|
||||||
RuntimeCacheConfig, RuntimeCacheStoreInitError, RuntimeCacheStores,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
pub trait CacheBackendFactory: Send + Sync {
|
pub trait CacheBackendFactory: Send + Sync {
|
||||||
|
|||||||
@@ -323,7 +323,8 @@ impl RuntimeExecutor {
|
|||||||
result: &Result<T, RuntimeError>,
|
result: &Result<T, RuntimeError>,
|
||||||
started_at: Instant,
|
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;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user