Skip to content

fix(updating): avoid circular reference when rendering JSON-serialized _copier_conf variable - #2449

Merged
sisp merged 1 commit into
masterfrom
fix/circular-reference-copier-conf-json
Jan 9, 2026
Merged

fix(updating): avoid circular reference when rendering JSON-serialized _copier_conf variable#2449
sisp merged 1 commit into
masterfrom
fix/circular-reference-copier-conf-json

Conversation

@sisp

@sisp sisp commented Jan 9, 2026

Copy link
Copy Markdown
Member

I've fixed a circular reference bug when rendering the JSON-serialized _copier_conf variable during an update. According to my debugging attempt, the problem is caused by assigning more than just actual answers to the new_worker's data attribute, specifically copier._user_data.DEFAULT_DATA which is part of self.answers.combined and not filtered out. Assigning only actual answers fixes the problem. Hopefully #2376 will also resolve this problem more fundamentally. 🤞

Fixes #2448.

@sisp sisp mentioned this pull request Jan 9, 2026
@codecov

codecov Bot commented Jan 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (620e452) to head (e33e210).
⚠️ Report is 155 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2449   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files          55       55           
  Lines        6288     6299   +11     
=======================================
+ Hits         6116     6127   +11     
  Misses        172      172           
Flag Coverage Δ
unittests 97.26% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sisp
sisp merged commit 572b03f into master Jan 9, 2026
21 checks passed
@sisp
sisp deleted the fix/circular-reference-copier-conf-json branch January 9, 2026 22:42
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.

Circular reference detected

1 participant