Skip to content

Mc sync survives a bad document - #1395

Merged
sbillinge merged 3 commits into
regro:mainfrom
sbillinge:mc-sync-survives-a-bad-document
Oct 11, 2026
Merged

sbillinge merged 3 commits into
regro:mainfrom
sbillinge:mc-sync-survives-a-bad-document

Conversation

@sbillinge

Copy link
Copy Markdown
Contributor

No description provided.

sbillinge and others added 3 commits October 6, 2026 07:58
…yncing

A line copied, id and all, to where a line is of another kind, such as
a finished task copied under an On-deck goal, was noted as a copy and
then brought the sync down with a bare StopIteration when the copy was
settled against the wrong collection.  The reader in mc.py now keeps
which kind each id was first written on and refuses such a line with a
message naming it and what to do.

The collections are written once every document is read, so the crash
also lost what every other document said, after each was reported as
written.  mcsynchelper.py now reports a document it falls over on and
goes on, so the rest is still written.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…bad-document

# Conflicts:
#	src/regolith/mc.py
…ction

A task copied under a holding section is now refused as being in two
places, before its kind is looked at.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.63%. Comparing base (5dd2d14) to head (af8868e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1395      +/-   ##
==========================================
+ Coverage   91.58%   91.63%   +0.05%     
==========================================
  Files          29       29              
  Lines        3445     3467      +22     
==========================================
+ Hits         3155     3177      +22     
  Misses        290      290              
Files with missing lines Coverage Δ
tests/test_mc_parser.py 100.00% <100.00%> (ø)
tests/test_mcsynchelper.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbillinge
sbillinge merged commit 89fccf4 into regro:main Oct 11, 2026
7 checks passed
@sbillinge
sbillinge deleted the mc-sync-survives-a-bad-document branch October 11, 2026 22:27
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