Skip to content

feat(execute): show worker failures across Core and fix admission - #66

Merged
krafczyk merged 3 commits into
mainfrom
feat/raw-worker-tracebacks-main
Oct 6, 2026
Merged

krafczyk merged 3 commits into
mainfrom
feat/raw-worker-tracebacks-main

Conversation

@krafczyk

@krafczyk krafczyk commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Default to bounded raw worker tracebacks for trusted same-host generic Execute and Core invocation errors, including RemoteExecutionError.remote_traceback and CoreExecutionError.remote_traceback. Keep raw_traceback=False for type/category-only errors, preserve completed publication evidence and cleanup precedence, and bump the private worker protocol to v5 and Core outcome to v2.
  • Resolve DRYML runtime version from the same installed distribution inventory used by exact environment selection, fixing the reproduced caller/worker version mismatch without disabling admission.
  • Pass a flat list of selected TensorFlow physical GPUs to tf.config.set_visible_devices, fixing the reproduced tuple-as-one-device error during Keras import.

Review and verification

  • Owner-accepted disclosure risk: raw tracebacks are enabled by default and may expose private inputs, credentials, paths, source lines, and exception text in notebooks/logs. This is not a redaction guarantee. Use raw_traceback=False for secret-bearing work. The acceptance and scope are recorded in issue Report bounded raw Execute and Core worker tracebacks by default #62 and the parent workspace threat-model instructions.
  • Full local representative good-enough: 3,442 passed, 30 skipped in 19m58s on the exact source tree; no exhaustive suite was requested or run.
  • Focused environment/runtime/Core/Execute/Dispatch checks passed; the main-based PR worktree passed 11 focused tests after the commits were replayed.
  • Real GPU TensorFlow and external Ray integration were not run. These opt-in qualification gaps are not claimed green.

Closes #62. Separate follow-ups: #63 (generator-cardinality training flexibility), #64 (incomplete cleanup after failed work), and #65 (real TensorFlow GPU visibility qualification). The full traceback in the notebook identified the independent, documented BasicTraining safe-point/validation and finite-cardinality constraints; this PR does not relax either.

Exact worker selection compared two otherwise identical installation inventories but obtained different DRYML versions from an unrestricted metadata search of source-tree paths. Use the selected installation roots for both record fields and preserve a detectable digest change when the installed version changes.

Verified the source-path shadowing regression, exact worker selector integration, and the representative good-enough gate as part of the integrated change.
TensorFlow treats a non-list set_visible_devices argument as one device; the adapter supplied its internal tuple and rejected an otherwise available selected GPU before Keras import completed. Pass a list without changing allocation or visibility checks.

Verified fake TensorFlow API behavior for zero, one, and two selected GPUs and the representative runtime and good-enough suites. Real GPU qualification remains tracked separately.
Transport bounded, default-on raw tracebacks through the generic worker v5 channel and the version-2 Core outcome while retaining typed failure reasons, exact publication evidence, and cleanup precedence. The selected backend supports raw_traceback=False for secret-bearing work; the owner explicitly accepted this narrow unredacted diagnostic risk.

Cover setup/invocation failures, malformed and oversized diagnostics, opt-out, Ray unit transport, and real subprocess/Core regressions in the representative policy. The integrated local good-enough suite passed 3,442 tests with 30 skips; real Ray/GPU qualification remains opt-in.
@krafczyk
krafczyk merged commit 9cece32 into main Oct 6, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report bounded raw Execute and Core worker tracebacks by default

1 participant