Repository navigation
Closed
Labels
Description
Part of #4839 (split from it in task TALE-176).
Problem
#4839 addendum 4, defects 9 and 10, and addendum 5, defect 15. Paths are under tools/cli/src/lib/deployment/ unless noted.
| # | Defect | Code | What the operator sees |
|---|---|---|---|
| 9 | Configuration errors become a generic failure | identity.ts:1070-1076 wraps the callback (tools/cli/src/commands/deploy/provision.ts:166) in a bare catch: :1073 } catch {, :1074 throw externalDepError('Native configuration provisioning failed.');. That replaces authored refusals operationalFailure keeps (tools/cli/src/commands/operational-failure.ts:31, :35): CliErrors (configuration.ts:42-43, configs.ts:39-40) and the ConfigError "release artifact checksum/size mismatch" (configs.ts:95, tools/cli/src/lib/config/releases/manifest.ts:167-169) |
Every configuration failure on the full provisioning path ends as "Native configuration provisioning failed.", exit code 5. Bundle deployment shows "… It reported: Native configuration provisioning failed. (exit 5)" (apply.ts:351, backend-cli.ts:89). The specific, safe reason is lost |
| 10 | The acceptance health check gives every failure one cause | acceptance-health.ts:158 } catch { turns every failure into :160 "The declared origin did not prove the expected healthy serving version.", with no cause (:159-161). That covers DNS, TLS and connection errors (acceptance-request.ts:93), a non-200 answer (acceptance-request.ts:63-68; acceptance-health.ts:121-122), a bad identity (:123-128, :35), the 64 KiB bound (:137), decoding (:140-142), the 10 s timeout (:105-107) and an older version (:150-151 throw new Error('health version');) |
tale deploy accept (acceptance.ts:298) reports an origin that doesn't resolve like a version mismatch, exit code 5, with no Cause: line even with --verbose. The operator can't tell whether to fix DNS or certificates, or to wait for the rollout. The backend check (:153-156) checks no version but gets the same sentence |
| 15 | A configuration-only apply is refused in terms of credential export | tale deploy --bundle <dir> --configuration-only calls observeReadyRuntime (apply.ts:722-724, :752), which runs observeReadyState (runtime-apply.ts:1415), written for export callers (:1412-1414). Six of its eight refusals name credential export (:1434, :1439, :1450, :1461, :1475, :1488), for example :1434 "Credential export requires the exact ready runtime receipt."; :1465 and :1495 are neutral |
An operator updating configuration on a drifted or not-ready runtime is told credential export failed, an operation they didn't run, exit code 3 (runtime-model.ts:182). Nothing helps them repair the runtime for the apply they started |
Notes, all at 29e9445:
- ci: add CI workflows for all services and standardize build triggers #9: the
--configuration-onlypath calls the callback atidentity.ts:703with no inner catch. Its outer catch keeps aCliError(:1111) and turns anything else into "Native instance provisioning failed." (:1113). bug(cli): digit-led project names can never deploy, --host rewrites .env even on --dry-run, and the Windows installer closes the session on error #4839 also namedNonInteractiveError; nothing on the callback path throws one. - refactor(rag): modularize main.py into routers and utilities #15: the dry-run preview (
apply.ts:640) usually refuses first, in neutral words (apply.ts:719-721). Two cases reliably reach the export wording. A running container whose health readsstartingorunhealthy: the preview needs only a health record (runtime-apply.ts:648-649),:1475needs'healthy'(:622,:757-758). Image digest or alias drift: the preview compares names only (:654) and returns at:1218, so drift fails at:1488(except a protocol-2 platform image, checked at:1128-1155). - refactor(rag): modularize main.py into routers and utilities #15: the full
deploy --bundlepath gets the same wording after its rollout (apply.ts:873,runtime-apply.ts:1531). bug(cli): digit-led project names can never deploy, --host rewrites .env even on --dry-run, and the Windows installer closes the session on error #4839 placed:873in the configuration-only branch, which returns atapply.ts:781.tale deploy acceptgets it too (acceptance.ts:187,:328), though its doc says it does no credential export (:107). Onlyclient-export.ts:321fits the wording.
Expected
- ci: add CI workflows for all services and standardize build triggers #9: pass the error through
operationalFailure, and keep the fixed sentence for unexpected errors only. A rawConfigErrorre-thrown atidentity.ts:1073would still be replaced at:1113andprovision.ts:326.operationalFailuremakes it aCliError(operational-failure.ts:35), which survives both. - docs: remove outdated documentation files #10: name the failing step (connect, status, body, version) in the message.
- refactor(rag): modularize main.py into routers and utilities #15: word the shared ready-state refusals neutrally ("The deployment's ready runtime doesn't match its receipt…"), or pass the caller's operation name.
Regression:
- ci: add CI workflows for all services and standardize build triggers #9:
identity.test.ts:1362: keep the plain-error redaction (:1378,:1383), and add callbacks that throw aCliErrorand aConfigError. Their messages must reach the caller. At 29e9445 both become "Native configuration provisioning failed.". - docs: remove outdated documentation files #10:
acceptance-readers.test.ts:91-112asserts only "healthy serving version" (:111). A 503, a wrong version and an oversize body must each name their step. At 29e9445 all three give the same sentence.acceptance.test.ts:593,:612and:631assert the same substring. - refactor(rag): modularize main.py into routers and utilities #15: in
apply.test.ts(:2307), a configuration-only apply whose backend health readsunhealthymust be refused without "credential export". At 29e9445 it gets "Credential export requires the complete healthy pinned runtime.". The drift cases at:2846-2887andruntime-observe.test.ts:92-129use a bare.rejects.toThrow()(:2884,:123).
Severity and owner
- Severity: not stated in bug(cli): digit-led project names can never deploy, --host rewrites .env even on --dry-run, and the Windows installer closes the session on error #4839 (addenda 4 and 5 give none).
- Owner: CLI (managed deployment).
- Evidence: static reading at
train29e9445, same atfeature-train12625af; nothing was run. The cited paths are unchanged attrain1ae4a95 andfeature-train2334ceb. - Related: none named in the sources.
Activity
fix(cli): name the real cause of deploy provisioning and health failures
docs: amend the v0.5.95 release notes
docs: amend the v0.5.95 release notes