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

TODOs from PR #6561 #8900

Merged
merged 4 commits into from
Aug 17, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

Some TODOs left over from PR #6561.

Change overview

  • Remove the temporary PrepareEventsWithTimeout(), which was added in Generalize socket-based event loop #6561 to provide unit tests back-door access to the event loop select() timeout, and have the tests that used it use a normal System::Layer timer instead.
  • Remove obsolete TODOs.

Fixes #7760 Some unit tests supply a timeout at low level
Fixes #7756 add a timer for sleepTime.tv_sec = 10; sleepTime.tv_usec = 0;

Testing

Ran the affected tests.

src/inet/tests/TestInetEndPoint.cpp Outdated Show resolved Hide resolved
src/inet/tests/TestInetLayer.cpp Outdated Show resolved Hide resolved
src/inet/tests/TestInetLayerDNS.cpp Outdated Show resolved Hide resolved
src/inet/tests/TestInetLayerMulticast.cpp Outdated Show resolved Hide resolved
src/inet/tests/TestLwIPDNS.cpp Outdated Show resolved Hide resolved
@kpschoedel kpschoedel marked this pull request as draft August 11, 2021 20:57
#### Problem

Some TODOs left over from PR project-chip#6561.

#### Change overview

- Remove the temporary `PrepareEventsWithTimeout()`, and have the tests
  that used it use a timer instead.
- Remove obsolete TODOs.

Fixes project-chip#7760 _Some unit tests supply a timeout at low level_
Fixes project-chip#7756 _add a timer for sleepTime.tv_sec = 10; sleepTime.tv_usec = 0;_

#### Testing

Ran the affected tests.
@kpschoedel kpschoedel force-pushed the x7725-system-event-8-todos branch from b12411a to c8f09a7 Compare August 11, 2021 21:50
@kpschoedel kpschoedel marked this pull request as ready for review August 11, 2021 21:50
@github-actions
Copy link

Size increase report for "nrfconnect-example-build" from 6a36256

File Section File VM
chip-lock.elf device_handles -8 -8
chip-lock.elf text -56 -56
chip-shell.elf device_handles -12 -12
chip-shell.elf text -52 -52
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-lock.elf and ./pull_artifact/chip-lock.elf:

sections,vmsize,filesize
.debug_ranges,0,40
.debug_abbrev,0,35
.shstrtab,0,1
.debug_aranges,0,-8
device_handles,-8,-8
.debug_frame,0,-16
.debug_line,0,-21
text,-56,-56
.symtab,0,-64
.debug_str,0,-100
.strtab,0,-125
.debug_loc,0,-152
.debug_info,0,-2530

Comparing ./master_artifact/chip-shell.elf and ./pull_artifact/chip-shell.elf:

sections,vmsize,filesize
.debug_str,0,315
.debug_ranges,0,40
.debug_abbrev,0,35
.shstrtab,0,1
.debug_aranges,0,-8
device_handles,-12,-12
.debug_frame,0,-16
.debug_line,0,-23
text,-52,-52
.symtab,0,-64
.debug_loc,0,-91
.strtab,0,-125
.debug_info,0,-1276


@github-actions
Copy link

Size increase report for "esp32-example-build" from 6a36256

File Section File VM
chip-lock-app.elf .flash.text -68 -68
chip-temperature-measurement-app.elf .flash.text -60 -60
chip-ipv6only-app.elf .flash.text -172 -172
chip-shell.elf .flash.text 8 8
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-lock-app.elf and ./pull_artifact/chip-lock-app.elf:

sections,vmsize,filesize
[Unmapped],0,68
.flash.text,-68,-68

Comparing ./master_artifact/chip-temperature-measurement-app.elf and ./pull_artifact/chip-temperature-measurement-app.elf:

sections,vmsize,filesize
[Unmapped],0,60
.flash.text,-60,-60

Comparing ./master_artifact/chip-ipv6only-app.elf and ./pull_artifact/chip-ipv6only-app.elf:

sections,vmsize,filesize
[Unmapped],0,172
.flash.text,-172,-172

Comparing ./master_artifact/chip-pigweed-app.elf and ./pull_artifact/chip-pigweed-app.elf:

sections,vmsize,filesize

Comparing ./master_artifact/chip-bridge-app.elf and ./pull_artifact/chip-bridge-app.elf:

sections,vmsize,filesize

Comparing ./master_artifact/chip-persistent-storage.elf and ./pull_artifact/chip-persistent-storage.elf:

sections,vmsize,filesize

Comparing ./master_artifact/chip-all-clusters-app.elf and ./pull_artifact/chip-all-clusters-app.elf:

sections,vmsize,filesize

Comparing ./master_artifact/chip-shell.elf and ./pull_artifact/chip-shell.elf:

sections,vmsize,filesize
.flash.text,8,8
[Unmapped],0,-8


@kpschoedel
Copy link
Contributor Author

@andy31415 andy31415 merged commit f493235 into project-chip:master Aug 17, 2021
@kpschoedel kpschoedel deleted the x7725-system-event-8-todos branch August 17, 2021 14:30
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
* TODOs from PR project-chip#6561

#### Problem

Some TODOs left over from PR project-chip#6561.

#### Change overview

- Remove the temporary `PrepareEventsWithTimeout()`, and have the tests
  that used it use a timer instead.
- Remove obsolete TODOs.

Fixes project-chip#7760 _Some unit tests supply a timeout at low level_
Fixes project-chip#7756 _add a timer for sleepTime.tv_sec = 10; sleepTime.tv_usec = 0;_

#### Testing

Ran the affected tests.

* fix kSleepTimeMilliseconds

* review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants