schrodinger.seam.testing.stu_tests.inplace_resume module

Test resuming a failed pipeline in place via seamcli.py resume --inplace.

A two-stage pipeline fails at stage 2 on its first run, leaving a checkpoint in the seam directory. Resuming with --inplace reuses that same directory instead of copying it to seam_resume. The resume should:

  1. Complete successfully, producing the pipeline output.

  2. Not create a seam_resume copy (the whole point of --inplace).

  3. Archive the failed stage’s log/worker/metrics subdirectories into seam/debug/failed_attempts/attempt_<N> so new artifacts do not mix with the old ones, while leaving the successfully completed stage’s artifacts in place.

Usage:

$SCHRODINGER/run python3 -m schrodinger.seam.testing.stu_tests.inplace_resume
class schrodinger.seam.testing.stu_tests.inplace_resume.MaybeFail(label: Optional[str] = None)

Bases: _LocalOnlyPTransform, MaybeFail

Double each element, but fail first if the sentinel file exists.

schrodinger.seam.testing.stu_tests.inplace_resume.main()