Skip to content
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

[tools] Try to fix bloat check when comment has empty cell #26479

Merged
merged 1 commit into from
May 11, 2023

Conversation

Damian-Nordic
Copy link
Contributor

The bloat check has been failing for months now because gh_report.py script seems to assume that the first row in a comment to the analyzed PR has no empty cells, and for the cc32xx platform, which happens to finish the build as the first one, a row with a blank section name is added.

I don't know what is the reason of the blank section, but the script should not give up just because of one invalid entry as we miss important code size increase warnings.

@github-actions
Copy link

PR #26479: Size comparison from 95acf3d to d9e3652

Increases (1 build for cc32xx)
platform target config section 95acf3d d9e3652 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19674627 19674628 1 0.0
Decreases (1 build for nrfconnect)
platform target config section 95acf3d d9e3652 change % change
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 778212 778208 -4 -0.0
Full report (7 builds for cc32xx, linux, mbed, nrfconnect)
platform target config section 95acf3d d9e3652 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605002 605002 0 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 957619 0 0.0
.debug_aranges 101232 101232 0 0.0
.debug_frame 342080 342080 0 0.0
.debug_info 19674627 19674628 1 0.0
.debug_line 2671903 2671903 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491139 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94412 0 0.0
.debug_str 3131828 3131828 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104314 104314 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483089 0 0.0
.symtab 287232 287232 0 0.0
.text 498564 498564 0 0.0
linux chip-tool-ipv6only arm64 (read only) 12259548 12259548 0 0.0
(read/write) 746696 746696 0 0.0
.bss 34392 34392 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 688336 688336 0 0.0
.dynamic 560 560 0 0.0
.got 15752 15752 0 0.0
.init 24 24 0 0.0
.init_array 216 216 0 0.0
.rodata 570208 570208 0 0.0
.text 9916596 9916596 0 0.0
thermostat-no-ble arm64 (read only) 2528308 2528308 0 0.0
(read/write) 145816 145816 0 0.0
.bss 56392 56392 0 0.0
.data 1784 1784 0 0.0
.data.rel.ro 78048 78048 0 0.0
.dynamic 560 560 0 0.0
.got 5472 5472 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 130136 130136 0 0.0
.text 2133440 2133440 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2495056 2495056 0 0.0
.bss 216304 216304 0 0.0
.data 5144 5144 0 0.0
.text 1457740 1457740 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1176352 1176352 0 0.0
bss 155563 155563 0 0.0
rodata 132752 132752 0 0.0
text 807276 807276 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1123444 1123444 0 0.0
bss 154757 154757 0 0.0
rodata 109748 109748 0 0.0
text 778212 778208 -4 -0.0
all-clusters-app nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1436080 1436080 0 0.0
bss 135303 135303 0 0.0
rodata 228768 228768 0 0.0
text 777936 777936 0 0.0

@github-actions
Copy link

PR #26479: Size comparison from 8635ca4 to 63a8ec3

Decreases (1 build for cc32xx)
platform target config section 8635ca4 63a8ec3 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19674627 19674626 -1 -0.0
Full report (1 build for cc32xx)
platform target config section 8635ca4 63a8ec3 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605002 605002 0 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 957619 0 0.0
.debug_aranges 101232 101232 0 0.0
.debug_frame 342080 342080 0 0.0
.debug_info 19674627 19674626 -1 -0.0
.debug_line 2671903 2671903 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491139 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94412 0 0.0
.debug_str 3131828 3131828 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104314 104314 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483089 0 0.0
.symtab 287232 287232 0 0.0
.text 498564 498564 0 0.0

The bloat check has been failing for months now because
gh_report.py script seems to assume that the first row
in a comment to the analyzed PR has no empty cells, and
for the cc32xx platform, which happens to finish the build
as the first one, a row with a blank section name is added.

I don't know what is the reason of the blank section, but
the script should not give up just because of one invalid
entry as we miss important code size increase warnings.

Also, replace deprecated DataFrame.append with concat().
@github-actions
Copy link

PR #26479: Size comparison from bb3ce44 to cd51370

Increases (1 build for cc32xx)
platform target config section bb3ce44 cd51370 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19674626 19674627 1 0.0
Full report (1 build for cc32xx)
platform target config section bb3ce44 cd51370 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605002 605002 0 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 957619 0 0.0
.debug_aranges 101232 101232 0 0.0
.debug_frame 342080 342080 0 0.0
.debug_info 19674626 19674627 1 0.0
.debug_line 2671903 2671903 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491139 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94412 0 0.0
.debug_str 3131828 3131828 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104314 104314 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483089 0 0.0
.symtab 287232 287232 0 0.0
.text 498564 498564 0 0.0

@Damian-Nordic Damian-Nordic merged commit b3b2dc2 into project-chip:master May 11, 2023
@Damian-Nordic Damian-Nordic deleted the bloat-check branch May 11, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants