mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-21 20:21:02 +03:00
fix(db-load,db-update): диагностика аномального кода — только факты, без догадки о причине
Убрана спекулятивная гипотеза причины (headless/GUI/лицензия) из сообщения: краш сигналом/exception может быть вызван чем угодно, а зашитая догадка заякоривает модель-координатора на неверном диагнозе. Оставлены только факты (сигнал/exception-код, признак аномального завершения), следствие (ИБ может быть несогласованна) и нейтральное действие (verify before retrying). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
28f3410463
commit
00cd0f3f5f
@@ -1,4 +1,4 @@
|
|||||||
# db-load-cf v1.8 — Load 1C configuration from CF file
|
# db-load-cf v1.9 — Load 1C configuration from CF file
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||||
<#
|
<#
|
||||||
@@ -94,7 +94,7 @@ function Get-ExitAnnotation {
|
|||||||
-1073740791 = "0xC0000409 (stack overrun)"
|
-1073740791 = "0xC0000409 (stack overrun)"
|
||||||
}
|
}
|
||||||
if ($win.ContainsKey($Code)) {
|
if ($win.ContainsKey($Code)) {
|
||||||
return " — abnormal termination $($win[$Code]); the platform crashed; the infobase may be left in an inconsistent state"
|
return " — abnormal termination, exception $($win[$Code]); the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# db-load-cf v1.8 — Load 1C configuration from CF file
|
# db-load-cf v1.9 — Load 1C configuration from CF file
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@@ -111,16 +111,15 @@ def describe_exit(code):
|
|||||||
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
||||||
}
|
}
|
||||||
if code in win:
|
if code in win:
|
||||||
return f" — abnormal termination {win[code]}; the platform crashed; the infobase may be left in an inconsistent state"
|
return f" — abnormal termination, exception {win[code]}; the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
if -64 <= code < 0:
|
if -64 <= code < 0:
|
||||||
try:
|
try:
|
||||||
import signal
|
import signal
|
||||||
name = signal.Signals(-code).name
|
name = signal.Signals(-code).name
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
name = f"signal {-code}"
|
name = f"signal {-code}"
|
||||||
return (f" — terminated by {name}; the platform crashed abnormally "
|
return (f" — process terminated by {name} (abnormal termination, not a normal exit); "
|
||||||
"(often a headless environment without a GUI session or license); "
|
"the infobase may be left in an inconsistent state; verify it before retrying")
|
||||||
"the infobase may be left in an inconsistent state")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# db-load-dt v1.7 — Load 1C information base from DT file
|
# db-load-dt v1.8 — Load 1C information base from DT file
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||||
<#
|
<#
|
||||||
@@ -91,7 +91,7 @@ function Get-ExitAnnotation {
|
|||||||
-1073740791 = "0xC0000409 (stack overrun)"
|
-1073740791 = "0xC0000409 (stack overrun)"
|
||||||
}
|
}
|
||||||
if ($win.ContainsKey($Code)) {
|
if ($win.ContainsKey($Code)) {
|
||||||
return " — abnormal termination $($win[$Code]); the platform crashed; the infobase may be left in an inconsistent state"
|
return " — abnormal termination, exception $($win[$Code]); the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# db-load-dt v1.7 — Load 1C information base from DT file
|
# db-load-dt v1.8 — Load 1C information base from DT file
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@@ -111,16 +111,15 @@ def describe_exit(code):
|
|||||||
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
||||||
}
|
}
|
||||||
if code in win:
|
if code in win:
|
||||||
return f" — abnormal termination {win[code]}; the platform crashed; the infobase may be left in an inconsistent state"
|
return f" — abnormal termination, exception {win[code]}; the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
if -64 <= code < 0:
|
if -64 <= code < 0:
|
||||||
try:
|
try:
|
||||||
import signal
|
import signal
|
||||||
name = signal.Signals(-code).name
|
name = signal.Signals(-code).name
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
name = f"signal {-code}"
|
name = f"signal {-code}"
|
||||||
return (f" — terminated by {name}; the platform crashed abnormally "
|
return (f" — process terminated by {name} (abnormal termination, not a normal exit); "
|
||||||
"(often a headless environment without a GUI session or license); "
|
"the infobase may be left in an inconsistent state; verify it before retrying")
|
||||||
"the infobase may be left in an inconsistent state")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# db-load-git v1.13 — Load Git changes into 1C database
|
# db-load-git v1.14 — Load Git changes into 1C database
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||||
<#
|
<#
|
||||||
@@ -126,7 +126,7 @@ function Get-ExitAnnotation {
|
|||||||
-1073740791 = "0xC0000409 (stack overrun)"
|
-1073740791 = "0xC0000409 (stack overrun)"
|
||||||
}
|
}
|
||||||
if ($win.ContainsKey($Code)) {
|
if ($win.ContainsKey($Code)) {
|
||||||
return " — abnormal termination $($win[$Code]); the platform crashed; the infobase may be left in an inconsistent state"
|
return " — abnormal termination, exception $($win[$Code]); the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# db-load-git v1.13 — Load Git changes into 1C database
|
# db-load-git v1.14 — Load Git changes into 1C database
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@@ -133,16 +133,15 @@ def describe_exit(code):
|
|||||||
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
||||||
}
|
}
|
||||||
if code in win:
|
if code in win:
|
||||||
return f" — abnormal termination {win[code]}; the platform crashed; the infobase may be left in an inconsistent state"
|
return f" — abnormal termination, exception {win[code]}; the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
if -64 <= code < 0:
|
if -64 <= code < 0:
|
||||||
try:
|
try:
|
||||||
import signal
|
import signal
|
||||||
name = signal.Signals(-code).name
|
name = signal.Signals(-code).name
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
name = f"signal {-code}"
|
name = f"signal {-code}"
|
||||||
return (f" — terminated by {name}; the platform crashed abnormally "
|
return (f" — process terminated by {name} (abnormal termination, not a normal exit); "
|
||||||
"(often a headless environment without a GUI session or license); "
|
"the infobase may be left in an inconsistent state; verify it before retrying")
|
||||||
"the infobase may be left in an inconsistent state")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# db-load-xml v1.14 — Load 1C configuration from XML files
|
# db-load-xml v1.15 — Load 1C configuration from XML files
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||||
<#
|
<#
|
||||||
@@ -126,7 +126,7 @@ function Get-ExitAnnotation {
|
|||||||
-1073740791 = "0xC0000409 (stack overrun)"
|
-1073740791 = "0xC0000409 (stack overrun)"
|
||||||
}
|
}
|
||||||
if ($win.ContainsKey($Code)) {
|
if ($win.ContainsKey($Code)) {
|
||||||
return " — abnormal termination $($win[$Code]); the platform crashed; the infobase may be left in an inconsistent state"
|
return " — abnormal termination, exception $($win[$Code]); the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# db-load-xml v1.14 — Load 1C configuration from XML files
|
# db-load-xml v1.15 — Load 1C configuration from XML files
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@@ -111,16 +111,15 @@ def describe_exit(code):
|
|||||||
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
||||||
}
|
}
|
||||||
if code in win:
|
if code in win:
|
||||||
return f" — abnormal termination {win[code]}; the platform crashed; the infobase may be left in an inconsistent state"
|
return f" — abnormal termination, exception {win[code]}; the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
if -64 <= code < 0:
|
if -64 <= code < 0:
|
||||||
try:
|
try:
|
||||||
import signal
|
import signal
|
||||||
name = signal.Signals(-code).name
|
name = signal.Signals(-code).name
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
name = f"signal {-code}"
|
name = f"signal {-code}"
|
||||||
return (f" — terminated by {name}; the platform crashed abnormally "
|
return (f" — process terminated by {name} (abnormal termination, not a normal exit); "
|
||||||
"(often a headless environment without a GUI session or license); "
|
"the infobase may be left in an inconsistent state; verify it before retrying")
|
||||||
"the infobase may be left in an inconsistent state")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# db-update v1.8 — Update 1C database configuration
|
# db-update v1.9 — Update 1C database configuration
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||||
<#
|
<#
|
||||||
@@ -107,7 +107,7 @@ function Get-ExitAnnotation {
|
|||||||
-1073740791 = "0xC0000409 (stack overrun)"
|
-1073740791 = "0xC0000409 (stack overrun)"
|
||||||
}
|
}
|
||||||
if ($win.ContainsKey($Code)) {
|
if ($win.ContainsKey($Code)) {
|
||||||
return " — abnormal termination $($win[$Code]); the platform crashed; the infobase may be left in an inconsistent state"
|
return " — abnormal termination, exception $($win[$Code]); the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# db-update v1.8 — Update 1C database configuration
|
# db-update v1.9 — Update 1C database configuration
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@@ -111,16 +111,15 @@ def describe_exit(code):
|
|||||||
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
3221226505: "0xC0000409 (stack overrun)", -1073740791: "0xC0000409 (stack overrun)",
|
||||||
}
|
}
|
||||||
if code in win:
|
if code in win:
|
||||||
return f" — abnormal termination {win[code]}; the platform crashed; the infobase may be left in an inconsistent state"
|
return f" — abnormal termination, exception {win[code]}; the infobase may be left in an inconsistent state; verify it before retrying"
|
||||||
if -64 <= code < 0:
|
if -64 <= code < 0:
|
||||||
try:
|
try:
|
||||||
import signal
|
import signal
|
||||||
name = signal.Signals(-code).name
|
name = signal.Signals(-code).name
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
name = f"signal {-code}"
|
name = f"signal {-code}"
|
||||||
return (f" — terminated by {name}; the platform crashed abnormally "
|
return (f" — process terminated by {name} (abnormal termination, not a normal exit); "
|
||||||
"(often a headless environment without a GUI session or license); "
|
"the infobase may be left in an inconsistent state; verify it before retrying")
|
||||||
"the infobase may be left in an inconsistent state")
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user