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

[Size reports] Script improvements (1/3) #12886

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

Recent memory size investigations suggest some improvements:

  • Scripts use PR==0 to distinguish pull requests from master commits
    (push events), but it would be useful to record the associated PR
    along with commits.
  • Sometimes push events run on pull requests, and those are not
    currently distinguishable from master push events.
  • Sorting by build timestamp is inaccurate, since CI runs may finish
    in a different order than the commits.

Change overview

This is the first of three steps.

  • Use event rather than PR number to distinguish PR builds from
    master commit builds.
  • Record GitHub event and ref in the database representation, and
    add ref to the JSON (event was already present).
  • For master commits, use the commit timestamp rather than the build
    time.

The second step will add the event to artifact names, so that it can
be used to filter artifact downloads instead of PR==0.

The third step will add the PR number from master commits, extracted
from the commit message.

Testing

Manually run offline, but final confirmation requires live CI runs.

#### Problem

Recent memory size investigations suggest some improvements:

- Scripts use PR==0 to distinguish pull requests from master commits
  (push events), but it would be useful to record the associated PR
  along with commits.
- Sometimes push events run on pull requests, and those are not
  currently distinguishable from master push events.
- Sorting by build timestamp is inaccurate, since CI runs may finish
  in a different order than the commits.

#### Change overview

This is the first of three steps.

- Use `event` rather than PR number to distinguish PR builds from
  master commit builds.
- Record GitHub `event` and `ref` in the database representation, and
  add `ref` to the JSON (`event` was already present).
- For master commits, use the commit timestamp rather than the build
  time.

The second step will add the event to artifact names, so that it can
be used to filter artifact downloads instead of PR==0.

The third step will add the PR number from master commits, extracted
from the commit message.

#### Testing

Manually run offline, but final confirmation requires live CI runs.
@github-actions
Copy link

github-actions bot commented Dec 10, 2021

PR #12886: Size comparison from de0af9a to c017d3b

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section de0af9a c017d3b change % change
efr32 lighting-app BRD4161A (read only) 809188 809188 0 0.0
(read/write) 123148 123148 0 0.0
.bss 121288 121288 0 0.0
.data 1860 1860 0 0.0
.text 809180 809180 0 0.0
BRD4161A+rpc (read only) 796824 796824 0 0.0
(read/write) 139824 139824 0 0.0
.bss 137864 137864 0 0.0
.data 1960 1960 0 0.0
.text 796816 796816 0 0.0
window-app BRD4161A (read only) 786164 786164 0 0.0
(read/write) 121280 121280 0 0.0
.bss 119456 119456 0 0.0
.data 1824 1824 0 0.0
.text 786156 786156 0 0.0
esp32 all-clusters-app c3devkit (read only) 856018 856018 0 0.0
(read/write) 1305050 1305050 0 0.0
.dram0.bss 65032 65032 0 0.0
.dram0.data 14124 14124 0 0.0
.flash.rodata 172856 172856 0 0.0
.flash.text 856018 856018 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 959935 959935 0 0.0
(read/write) 450776 450776 0 0.0
.dram0.bss 74320 74320 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 210620 210620 0 0.0
.flash.text 954551 954551 0 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 669576 669576 0 0.0
.bss 73872 73872 0 0.0
.data 1892 1892 0 0.0
.text 588012 588012 0 0.0
lock-app k32w061+debug (read/write) 619524 619524 0 0.0
.bss 72024 72024 0 0.0
.data 1852 1852 0 0.0
.text 539848 539848 0 0.0
shell k32w061+debug (read/write) 624624 624624 0 0.0
.bss 74252 74252 0 0.0
.data 1832 1832 0 0.0
.text 542740 542740 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6848196 6848196 0 0.0
(read/write) 318945 318945 0 0.0
.bss 51985 51985 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208656 208656 0 0.0
.dynamic 560 560 0 0.0
.got 53384 53384 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 364116 364116 0 0.0
.text 5803380 5803380 0 0.0
thermostat-no-ble arm64 (read only) 1947044 1947044 0 0.0
(read/write) 137201 137201 0 0.0
.bss 59601 59601 0 0.0
.data 832 832 0 0.0
.data.rel.ro 70304 70304 0 0.0
.dynamic 560 560 0 0.0
.got 3592 3592 0 0.0
.init 24 24 0 0.0
.init_array 272 272 0 0.0
.rodata 125444 125444 0 0.0
.text 1614096 1614096 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2313768 2313768 0 0.0
.bss 184300 184300 0 0.0
.data 5232 5232 0 0.0
.heap 846912 846912 0 0.0
.text 1276344 1276344 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308944 2308944 0 0.0
.bss 175824 175824 0 0.0
.data 5528 5528 0 0.0
.heap 855096 855096 0 0.0
.text 1271544 1271544 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2282064 2282064 0 0.0
.bss 174864 174864 0 0.0
.data 5520 5520 0 0.0
.heap 856064 856064 0 0.0
.text 1244664 1244664 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053336 2053336 0 0.0
.bss 156900 156900 0 0.0
.data 4864 4864 0 0.0
.heap 874680 874680 0 0.0
.text 1015936 1015936 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 906795 906795 0 0.0
bss 116296 116296 0 0.0
rodata 101980 101980 0 0.0
text 612912 612912 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 869827 869827 0 0.0
bss 112644 112644 0 0.0
rodata 93276 93276 0 0.0
text 587640 587640 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832794 832794 0 0.0
bss 117672 117672 0 0.0
rodata 97236 97236 0 0.0
text 543340 543340 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 879407 879407 0 0.0
bss 113560 113560 0 0.0
rodata 98096 98096 0 0.0
text 592356 592356 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 805666 805666 0 0.0
bss 114968 114968 0 0.0
rodata 93388 93388 0 0.0
text 522876 522876 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 884347 884347 0 0.0
bss 113472 113472 0 0.0
rodata 99452 99452 0 0.0
text 595948 595948 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 877587 877587 0 0.0
bss 113348 113348 0 0.0
rodata 97588 97588 0 0.0
text 591144 591144 0 0.0
shell nrf52840dk_nrf52840 (read/write) 781927 781927 0 0.0
bss 109544 109544 0 0.0
rodata 74276 74276 0 0.0
text 523588 523588 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 696974 696974 0 0.0
bss 110524 110524 0 0.0
rodata 68920 68920 0 0.0
text 444228 444228 0 0.0
p6 all-clusters-app default (read/write) 2354544 2354544 0 0.0
.bss 112436 112436 0 0.0
.data 2520 2520 0 0.0
.heap 918384 918384 0 0.0
.text 1312808 1312808 0 0.0
light-app default (read/write) 2294720 2294720 0 0.0
.bss 101016 101016 0 0.0
.data 2360 2360 0 0.0
.heap 929968 929968 0 0.0
.text 1252984 1252984 0 0.0
lock-app default (read/write) 2270784 2270784 0 0.0
.bss 99896 99896 0 0.0
.data 2328 2328 0 0.0
.heap 931120 931120 0 0.0
.text 1229048 1229048 0 0.0
qpg lighting-app qpg6100+debug (read only) 521328 521328 0 0.0
(read/write) 122336 122336 0 0.0
.bss 82712 82712 0 0.0
.data 992 992 0 0.0
.text 516008 516008 0 0.0
lock-app qpg6100+debug (read only) 495696 495696 0 0.0
(read/write) 122332 122332 0 0.0
.bss 81848 81848 0 0.0
.data 948 948 0 0.0
.text 490376 490376 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 810978 810978 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 566032 566032 0 0.0

@andy31415 andy31415 merged commit 7e6b25f into project-chip:master Dec 10, 2021
kpschoedel added a commit to kpschoedel/connectedhomeip that referenced this pull request Dec 14, 2021
#### Problem

Recent memory size investigations suggest some improvements:

- Scripts use PR==0 to distinguish pull requests from master commits
  (push events), but it would be useful to record the associated PR
  along with commits.
- Sometimes push events run on pull requests, and those are not
  currently distinguishable from master push events.
- Sorting by build timestamp is inaccurate, since CI runs may finish
  in a different order than the commits.

#### Change overview

This is the third of three steps. The first step (project-chip#12886) added `event`
and `ref` handling, and the second (project-chip#12947) added the `event` to artifact
names.

This step adds the PR number for pushes to master, extracted
from the commit message.

#### Testing

Manually checked offline, but final confirmation requires live CI.
andy31415 pushed a commit that referenced this pull request Dec 14, 2021
#### Problem

Recent memory size investigations suggest some improvements:

- Scripts use PR==0 to distinguish pull requests from master commits
  (push events), but it would be useful to record the associated PR
  along with commits.
- Sometimes push events run on pull requests, and those are not
  currently distinguishable from master push events.
- Sorting by build timestamp is inaccurate, since CI runs may finish
  in a different order than the commits.

#### Change overview

This is the third of three steps. The first step (#12886) added `event`
and `ref` handling, and the second (#12947) added the `event` to artifact
names.

This step adds the PR number for pushes to master, extracted
from the commit message.

#### Testing

Manually checked offline, but final confirmation requires live CI.
@kpschoedel kpschoedel deleted the nubloat-16a branch December 16, 2021 20:11
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.

2 participants