Scoping a dependency upgrade
Send Qwen3.8-2.4T-A95B the dependency’s changelog together with a code search for the affected calls, and ask for the call sites to change and the order to change them in. Follow that order, then run the full test suite to make sure no call was missed.
Example: How much does this upgrade touch?
Material
- Changelog
- v3.0: parse() is renamed to parse_strict() and the old name is removed; parse_strict() raises on an empty string instead of returning None.
- Code search
- parse( appears 12 times in orders.py, 3 times in billing.py and 7 times in tests/; 2 of the billing.py calls check whether the result is None.
PromptUsing the changelog and the search results, list what has to change to upgrade to v3, and give an order of changes that won’t leave main broken for long.
Sample answer · written by hand to show the reasoning
There are 22 calls to change, and the 2 in billing.py need more than a rename: they rely on getting None back for an empty string, so after the upgrade they must catch the exception or check for an empty string first. Suggested order: on v2, change those 2 calls to check for an empty string first and merge; then rename all 22 calls and upgrade to v3 in one change, and run the full test suite.