fix(ci): restore required main PR checks
This commit is contained in:
1 parent
e056e1487e
commit
824259dc7c
3 files changed
+16
-4
No files matched your search
@@ -319,7 +319,13 @@ jobs:
|
||||
run: npx playwright install --with-deps chromium
|
||||
|
||||
- name: Prebuild e2e services
|
||||
run: cargo build -p admin-api -p mcp-server --jobs "$CARGO_BUILD_JOBS"
|
||||
env:
|
||||
SQLX_OFFLINE: "true"
|
||||
# Match playwright-stack.sh so Cargo reuses these artifacts during startup.
|
||||
run: |
|
||||
cargo build -p admin-api --bin crank-migrate --jobs "$CARGO_BUILD_JOBS"
|
||||
cargo build -p admin-api --bin admin-api --example e2e_storage_counts --jobs "$CARGO_BUILD_JOBS"
|
||||
cargo build -p mcp-server --jobs "$CARGO_BUILD_JOBS"
|
||||
|
||||
- name: Run Playwright e2e
|
||||
working-directory: apps/ui
|
||||
|
||||
@@ -12,7 +12,9 @@ use crank_observability::{
|
||||
MetricService, MetricsConfig, ObservabilityConfig, ObservabilityLifecycle, OtlpTraceConfig,
|
||||
RedactionLimits, SentryConfig, ServiceIdentity, bound_metric_service,
|
||||
};
|
||||
use crank_registry::{MASTER_KEY_CIPHER_CONTRACT, MasterKeyIdentityCandidate, PostgresRegistry};
|
||||
use crank_registry::{
|
||||
MASTER_KEY_CIPHER_CONTRACT, MasterKeyIdentityCandidate, MigrationAuthority, PostgresRegistry,
|
||||
};
|
||||
use crank_runtime::SecretCrypto;
|
||||
use time::{OffsetDateTime, format_description::well_known::Rfc3339};
|
||||
use tower::ServiceExt;
|
||||
@@ -120,12 +122,16 @@ async fn real_admin_startup_runs_immediate_import_maintenance() {
|
||||
String::from_utf8_lossy(&applied.stderr)
|
||||
);
|
||||
let pool = sqlx::PgPool::connect(&database_url).await.unwrap();
|
||||
let canonical_version = MigrationAuthority::sequence()
|
||||
.last()
|
||||
.expect("canonical migration sequence is nonempty")
|
||||
.version;
|
||||
assert_eq!(
|
||||
sqlx::query_scalar::<_, Option<i64>>("select max(version) from __crank_migrations")
|
||||
.fetch_one(&pool)
|
||||
.await
|
||||
.unwrap(),
|
||||
Some(23),
|
||||
Some(canonical_version),
|
||||
"migration binary must install the current canonical ledger",
|
||||
);
|
||||
sqlx::query(
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ COPY crank-community.png ./crank-community.png
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.30.6-alpine3.24-slim
|
||||
FROM nginx:1.30.7-alpine3.24-slim
|
||||
|
||||
RUN apk add --no-cache --upgrade \
|
||||
'pcre2>=10.49-r0' \
|
||||
|
||||
Reference in new issue
Block a user