-
Notifications
You must be signed in to change notification settings - Fork 7.7k
fix(merge): Fix merging CN Json #11574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
@lucasssvaz have you ran this against 3.2.1 and posted the jsons? |
Yes, all good |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Description of Change
This pull request updates scripts in the
.github/scripts
directory to improve handling of Chinese version sorting and refine version appending logic for ESP packages. The changes include modifications to the version normalization logic, adjustments to filtering criteria for appending versions, and an update to the script's metadata.Updates to version handling:
.github/scripts/merge_packages.py
: Enhanced thepkgVersionNormalized
function to ensure Chinese versions (-cn
) are sorted after official versions when mixed. This is achieved by adjusting thesys.maxsize
value used for sorting.Refinements to version appending logic:
.github/scripts/release_append_cn.py
: Modified theappend_cn_to_versions
function to skip tools that are not part of theesp32
package, improving the filtering criteria for appending Chinese versions.Script metadata update:
.github/scripts/merge_packages.py
: Updated the script header to reflect the new functionality for handling Chinese version sorting, with attribution to the contributor.Tests scenarios
Tested locally and used to fix CN JSON files.