You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 449ef90
Browse filesBrowse the repository at this point in the historyBrowse files
Classify Build, Attach and Confirm failures with fixed public diagnostics and a bounded reporting budget while preserving the original startup error.
Closes#5107
Depends on corrected PR #4791.
Signed-off-by: Shiju <[email protected]>
if refused_before_start && same_generation(current, &admission) {
5163
-
// The runtime refused what it accepted, so the workload never
5164
-
// started on it. Runtime text stays out of public status.
5165
-
admission.error = "The isolation backend refused this configuration before the workload started; create the sandbox again with a policy the backend accepts".to_string();
5166
-
} else {
5162
+
if let Some(current) = current {
5163
+
let accepted = current.state == i32::from(ConfigurationAdmissionState::Accepted);
5164
+
let rejected = current.state == i32::from(ConfigurationAdmissionState::Rejected);
5165
+
if refused_before_start
5166
+
&& (accepted || rejected)
5167
+
&& same_generation(current, &admission)
5168
+
{
5169
+
// A retry of the same failed generation retains its diagnostic.
5170
+
// Only exact known codes are projected; legacy/raw text stays out.
5171
+
admission.error = startup_diagnostic.unwrap_or_else(|| "The isolation backend refused this configuration before the workload started; create the sandbox again with a policy the backend accepts".to_string());
5172
+
} else if accepted {
5167
5173
// A rejected desired update does not invalidate an accepted runtime.
0 commit comments