Skip to content

Retain safe Fabric startup diagnostics after Kubernetes E2E cleanup #15039

Backlog

Description

@jyaunches

Problem

Retain enough safe Fabric startup error information for maintainers to diagnose failed Kubernetes E2E runs after CI cleanup, without reproducing the deployment just to recover the underlying error.

During PR #15033, candidate b423c5886871d114d644d69ca2b5a9545bdda703 was tested through merge revision 41eae05e812cf3078ebb095972e4e5ce61dc79f5. Both Linux architectures failed kind-kubernetes-development and kind-kubernetes-oidc at agent startup. The log reported:

sandbox/assistant: Fabric runtime operation failed at start (start_failed);
agent runtime is unknown; Fabric's message is in
.../deployment/diagnostics/fabric-assistant.json;
resources retained

The kind runner then deleted its cluster and temporary run directory. The job uploaded only the JUnit report, not an actionable diagnostic derived from the referenced file. The surviving output does not establish whether the original temporary-directory permission error persists or startup reaches a different failure.

Evidence

Scope

  • Trace the error from Fabric through the provider's private diagnostic file to the E2E runner. Determine which useful structured fields Fabric already exposes and where information becomes unavailable.
  • Preserve a bounded, safe failure report before run-directory and cluster cleanup. Associate it with the tested revision, scenario, sandbox, failed operation, and upstream error code/stage when available, and make its location discoverable from CI output.
  • Keep cleanup working on failure. Diagnostic collection failure must not replace the original failure or prevent resource teardown.
  • Preserve the current confidentiality boundary: Fabric's message can contain native harness output and secrets NemoClaw cannot reliably recognize. Do not print or automatically upload raw diagnostic JSON, native stderr, environment dumps, state, or credentials. Define an allowlisted report and its retention/access policy; report unavailable or withheld detail explicitly.
  • Reuse Fabric's supported diagnostics. If Fabric does not expose sufficient safe structured detail, document that upstream gap rather than adding an adapter patch or reconstructing native error semantics in NemoClaw.

Acceptance

  • A failed startup leaves a useful safe diagnostic available after the test's temporary directory and cluster are removed, rather than only start_failed and a dead local path.
  • The report identifies the revision, case, sandbox, and failed operation; available upstream error codes/stages survive without inventing a cause when details are unavailable.
  • Behavioral tests with an injected Fabric failure verify retention across cleanup, secret exclusion, missing/unreadable diagnostics, and collection failure without masking the original error. Use the owning unit/contract/integration layer, not source-string assertions.
  • A controlled CI failure demonstrates the report can be retrieved after teardown. Record the tested revision and remaining limits without leaving a permanently failing live scenario.
  • Document report contents, retrieval, retention/access, and the boundary between safe CI output and private diagnostics.

Related Work

Activity

  1. added
    area: e2e
    area: observability
    v1
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: e2earea: observabilitybugv1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions