Skip to content

[Agent for Xhd2015] Migrate doctest to session.Doctest + in-memory once - #1

Open
xhd2015 wants to merge 2 commits into
masterfrom
master-2026-07-21-migrate-doctest-one-process
Open

[Agent for Xhd2015] Migrate doctest to session.Doctest + in-memory once#1
xhd2015 wants to merge 2 commits into
masterfrom
master-2026-07-21-migrate-doctest-one-process

Conversation

@xhd2015

@xhd2015 xhd2015 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Problem

Doctest free inject vars and multi-process session flock once are invalid under one-process suite.

Fix

  • Free DOCTEST_* → d *session.Doctest fields
  • Session disk flock build-once → process-local mutex + memo
  • Absolute paths from d for golden fixtures / module roots
  • Hierarchical gen: explicit stdlib imports in leaf SETUP/ASSERT; intermediate package parent-mark helpers where needed

Verify

  • local: doctest test -v --label-all …
  • CI: must PASS before merge

xhd2015 added 2 commits July 21, 2026 08:44
Free DOCTEST_* inject vars and multi-process session flock once are invalid
under the one-process suite model. Use d *session.Doctest fields and
process-local mutex + MkdirTemp binary memo.
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.

1 participant