fix: reconcile batch scope, resource safety and durable receipts (#44)
Core regression / Python core, intervention UI and release configuration (push) Failing after 9m5s
Core regression / JavaScript syntax (push) Successful in 7s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 8m0s
Core regression / JavaScript syntax (pull_request) Successful in 7s

This commit is contained in:
阿白叔 committed 2026-11-27 12:26:19 +08:00
1 parent 0b7f3e5c4a
commit 392ae365da
45 files changed
+2855 -305

No files matched your search

+11 -4
View File
@@ -6,6 +6,7 @@ Const VDM_COMPPIN = 4096
Const VD_ALL = 0
Const QP_COMPONENT_COORDINATE_TOLERANCE = 10
Const QP_ATTRIBUTE_COORDINATE_TOLERANCE = 10
Const QP_DATABOOK_TIMEOUT_EXIT = 4
Dim QP_Fso
Dim QP_Root
@@ -1646,7 +1647,7 @@ Sub QPAutomaticReplaceAndRestore(ByRef Command, ByVal SnapshotPath)
End Sub
Sub QPNativeReplace(ByRef Command, ByVal SnapshotPath)
Dim Shell, ExitCode, CommandLine, ErrorPath, ErrorDetail
Dim Shell, ExitCode, CommandLine, ErrorPath, ErrorDetail, ErrorSource
QPProgress "before_native", 0, 1
QPInvalidatePinIndex
If Len(QP_HelperExecutable) = 0 Or Not QP_Fso.FileExists(QP_HelperExecutable) Then _
@@ -1669,15 +1670,18 @@ Sub QPNativeReplace(ByRef Command, ByVal SnapshotPath)
QPInvalidatePinIndex
QPProgress "native_replace", 1, 1
If ExitCode <> 0 Then
ErrorSource = "QuickPartReplace"
If ExitCode = QP_DATABOOK_TIMEOUT_EXIT And Not QP_NativeMutationPossible Then _
ErrorSource = "QuickPartReplace.DxDataBookLookup"
ErrorPath = SnapshotPath & ".native.error.txt"
ErrorDetail = ""
If QP_Fso.FileExists(ErrorPath) Then ErrorDetail = Trim(QPReadUtf8(ErrorPath))
If Len(ErrorDetail) > 0 Then
Err.Raise vbObjectError + 839, "QuickPartReplace", _
Err.Raise vbObjectError + 839, ErrorSource, _
"automatic native replacement failed: " & ErrorDetail & _
"; report: " & SnapshotPath & ".native.json"
Else
Err.Raise vbObjectError + 839, "QuickPartReplace", _
Err.Raise vbObjectError + 839, ErrorSource, _
"automatic native replacement failed (exit=" & CStr(ExitCode) & "); see " & SnapshotPath & ".native.json"
End If
End If
@@ -3995,9 +3999,12 @@ Sub QPWriteStatus(ByVal Root, ByVal JobId, ByVal State, ByVal Code, ByVal Messag
End Sub
Sub QPFail(ByVal Root, ByVal State, ByVal Number, ByVal Source, ByVal Description)
Dim Code
On Error Resume Next
If Len(CStr(QP_CurrentJobId)) > 0 Then
QPWriteStatus Root, QP_CurrentJobId, State, CStr(Number), _
Code = CStr(Number)
If Source = "QuickPartReplace.DxDataBookLookup" Then Code = "lookup_unavailable"
QPWriteStatus Root, QP_CurrentJobId, State, Code, _
CStr(Source) & ": " & CStr(Description)
End If
QPLog Root, "ERROR", "stage=" & CStr(QP_Stage) & " number=" & Number & " source=" & Source & _