ЛР 3: финальная проверка и исправление лимита памяти API
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.35kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate internal] load build definition from Dockerfile.migrate
|
||||
#2 transferring dockerfile: 448B 0.0s done
|
||||
#2 DONE 0.1s
|
||||
|
||||
#3 [api internal] load build definition from Dockerfile
|
||||
#3 transferring dockerfile: 516B 0.0s done
|
||||
#3 DONE 0.1s
|
||||
|
||||
#4 [migrate internal] load metadata for docker.io/library/alpine:3.22
|
||||
#4 DONE 1.0s
|
||||
|
||||
#5 [api internal] load metadata for docker.io/library/golang:1.27.1-alpine
|
||||
#5 DONE 1.1s
|
||||
|
||||
#6 [api internal] load .dockerignore
|
||||
#6 transferring context: 196B 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [migrate internal] load build context
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [api internal] load build context
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [api builder 1/7] FROM docker.io/library/golang:1.27.1-alpine@sha256:8a5910f31396cd4d89662f56c68b3ae31d374308270a1c3bd96672ee5ed43414
|
||||
#9 resolve docker.io/library/golang:1.27.1-alpine@sha256:8a5910f31396cd4d89662f56c68b3ae31d374308270a1c3bd96672ee5ed43414 0.0s done
|
||||
#9 resolve docker.io/library/golang:1.27.1-alpine@sha256:8a5910f31396cd4d89662f56c68b3ae31d374308270a1c3bd96672ee5ed43414 0.0s done
|
||||
#9 DONE 0.1s
|
||||
|
||||
#10 [api stage-1 1/4] FROM docker.io/library/alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f
|
||||
#10 resolve docker.io/library/alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f 0.1s done
|
||||
#10 DONE 0.1s
|
||||
|
||||
#8 [api internal] load build context
|
||||
#8 transferring context: 1.10MB 0.3s done
|
||||
#8 DONE 0.3s
|
||||
|
||||
#7 [migrate internal] load build context
|
||||
#7 transferring context: 33.26kB 0.2s done
|
||||
#7 DONE 0.3s
|
||||
|
||||
#11 [migrate builder 6/7] COPY db/migrations/ ./db/migrations/
|
||||
#11 CACHED
|
||||
|
||||
#12 [migrate stage-1 3/4] WORKDIR /app
|
||||
#12 CACHED
|
||||
|
||||
#13 [migrate builder 5/7] COPY cmd/migrate/ ./cmd/migrate/
|
||||
#13 CACHED
|
||||
|
||||
#14 [migrate builder 3/7] COPY go.mod go.sum ./
|
||||
#14 CACHED
|
||||
|
||||
#15 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /app/migrate ./cmd/migrate
|
||||
#15 CACHED
|
||||
|
||||
#16 [migrate stage-1 2/4] RUN addgroup -S app && adduser -S app -G app
|
||||
#16 CACHED
|
||||
|
||||
#17 [migrate stage-1 4/4] COPY --from=builder /app/migrate ./migrate
|
||||
#17 CACHED
|
||||
|
||||
#18 [api builder 4/7] RUN go mod download
|
||||
#18 CACHED
|
||||
|
||||
#19 [api builder 2/7] WORKDIR /app
|
||||
#19 CACHED
|
||||
|
||||
#20 [api builder 3/6] COPY go.mod go.sum ./
|
||||
#20 CACHED
|
||||
|
||||
#21 [api builder 4/6] RUN go mod download
|
||||
#21 CACHED
|
||||
|
||||
#22 [migrate] exporting to image
|
||||
#22 exporting layers 0.0s done
|
||||
#22 exporting manifest sha256:f9386379be320689b8f66beb5804e0502b393675deae6f3dca70b2d5f0c1d903 0.0s done
|
||||
#22 exporting config sha256:26ab7e4d92e4d383c587384ad886c17702da50d21366982abbe7fcf13e423b07
|
||||
#22 exporting config sha256:26ab7e4d92e4d383c587384ad886c17702da50d21366982abbe7fcf13e423b07 0.0s done
|
||||
#22 exporting attestation manifest sha256:26a694bc9b68e3794ebfa9a72d8cd8ea2b27879fb8ec3ffc559d2dc31069bce0 0.0s done
|
||||
#22 exporting manifest list sha256:1e29b8234e3a91369a7be992479a4e752cc5cb3c45d5ae3d0a30486f11d26fde 0.0s done
|
||||
#22 naming to docker.io/library/lab2-test-2aea210090f8-migrate:check done
|
||||
#22 unpacking to docker.io/library/lab2-test-2aea210090f8-migrate:check 0.0s done
|
||||
#22 DONE 0.3s
|
||||
|
||||
#23 [api builder 5/6] COPY . .
|
||||
#23 DONE 0.3s
|
||||
|
||||
#24 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#24 ...
|
||||
|
||||
#25 [migrate] resolving provenance for metadata file
|
||||
#25 DONE 0.0s
|
||||
|
||||
#24 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
@@ -0,0 +1,4 @@
|
||||
python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,16 @@
|
||||
test_actual_stop_and_start_preserve_the_same_volume (test_stack.StackTests.test_actual_stop_and_start_preserve_the_same_volume) ... ok
|
||||
test_cache_stop_and_restart_require_real_changes (test_stack.StackTests.test_cache_stop_and_restart_require_real_changes) ... ok
|
||||
test_changed_volume_cannot_pass_restart (test_stack.StackTests.test_changed_volume_cannot_pass_restart) ... ok
|
||||
test_compose_paths_with_spaces_remain_single_arguments (test_stack.StackTests.test_compose_paths_with_spaces_remain_single_arguments) ... ok
|
||||
test_lifecycle_evidence_records_actual_states_without_hook_stdout (test_stack.StackTests.test_lifecycle_evidence_records_actual_states_without_hook_stdout) ... ok
|
||||
test_noop_restart_cannot_pass (test_stack.StackTests.test_noop_restart_cannot_pass) ... ok
|
||||
test_project_must_be_explicit_before_any_docker_action (test_stack.StackTests.test_project_must_be_explicit_before_any_docker_action) ... ok
|
||||
test_skipped_or_empty_go_run_cannot_pass (test_stack.StackTests.test_skipped_or_empty_go_run_cannot_pass) ... ok
|
||||
test_snapshot_collects_all_api_replicas_and_checks_project (test_stack.StackTests.test_snapshot_collects_all_api_replicas_and_checks_project) ... ok
|
||||
test_stopped_container_cannot_pass_restart (test_stack.StackTests.test_stopped_container_cannot_pass_restart) ... ok
|
||||
test_two_api_replicas_must_both_restart_without_recreation (test_stack.StackTests.test_two_api_replicas_must_both_restart_without_recreation) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 11 tests in 0.022s
|
||||
|
||||
OK
|
||||
@@ -0,0 +1,14 @@
|
||||
test_adapter_output_is_not_exposed_on_failure (test_harness.HarnessTests.test_adapter_output_is_not_exposed_on_failure) ... ok
|
||||
test_client_timeout_is_failure_not_a_successful_server_timeout (test_harness.HarnessTests.test_client_timeout_is_failure_not_a_successful_server_timeout) ... ok
|
||||
test_counter_reset_missing_and_boolean_do_not_pass (test_harness.HarnessTests.test_counter_reset_missing_and_boolean_do_not_pass) ... ok
|
||||
test_default_all_is_blocked_and_does_not_pretend_success (test_harness.HarnessTests.test_default_all_is_blocked_and_does_not_pretend_success) ... ok
|
||||
test_fixture_size_thresholds_are_not_silently_lowered (test_harness.HarnessTests.test_fixture_size_thresholds_are_not_silently_lowered) ... ok
|
||||
test_hooks_need_both_explicit_opt_in_and_real_configuration (test_harness.HarnessTests.test_hooks_need_both_explicit_opt_in_and_real_configuration) ... ok
|
||||
test_recovery_runs_even_when_failure_hook_partially_fails (test_harness.HarnessTests.test_recovery_runs_even_when_failure_hook_partially_fails) ... ok
|
||||
test_snapshot_comparison_rejects_missing_changed_or_same_database (test_harness.HarnessTests.test_snapshot_comparison_rejects_missing_changed_or_same_database) ... ok
|
||||
test_unimplemented_adapter_is_blocked (test_harness.HarnessTests.test_unimplemented_adapter_is_blocked) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 9 tests in 0.972s
|
||||
|
||||
OK
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"project": "lab2-test-2aea210090f8",
|
||||
"status": "FAIL",
|
||||
"results": [
|
||||
{
|
||||
"check": "contracts",
|
||||
"status": "PASS",
|
||||
"seconds": 3.225
|
||||
},
|
||||
{
|
||||
"check": "harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.959
|
||||
},
|
||||
{
|
||||
"check": "lab2-harness",
|
||||
"status": "PASS",
|
||||
"seconds": 1.691
|
||||
},
|
||||
{
|
||||
"check": "compose-up",
|
||||
"status": "FAIL",
|
||||
"detail": "TimeoutExpired",
|
||||
"seconds": 300.129,
|
||||
"runner_budget_seconds": 300
|
||||
},
|
||||
{
|
||||
"check": "cleanup",
|
||||
"status": "PASS",
|
||||
"seconds": 2.321
|
||||
}
|
||||
],
|
||||
"scope": "full",
|
||||
"redis_fixture": "critical session store; explicit REDIS_ADDR=redis:6379 in test override",
|
||||
"failure": "compose-up timed out; see partial sanitized log"
|
||||
}
|
||||
Reference in New Issue
Block a user