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

Rename messageId into messageCounter #9688

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

kghost
Copy link
Contributor

@kghost kghost commented Sep 14, 2021

Problem

MessageCounter is the official name in the specs.

Change overview

This PR is generated by following commands:

git sed -f g messageId messageCounter
git sed -f g MessageId MessageCounter
git sed -f g MsgId MessageCounter
git sed -f g msgId messageCounter
git sed -f g msgID messageCounter

Testing

examples/minimal-mdns/client.cpp Outdated Show resolved Hide resolved
src/app/zap-templates/zcl/data-model/silabs/ami.xml Outdated Show resolved Hide resolved
src/messaging/ReliableMessageContext.cpp Outdated Show resolved Hide resolved
src/messaging/ReliableMessageContext.h Outdated Show resolved Hide resolved
@github-actions
Copy link

Size increase report for "gn_qpg-example-build" from 29e6bcd

File Section File VM
chip-qpg6100-lighting-example.out .text 36 36
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-qpg6100-lighting-example.out.map and ./pull_artifact/chip-qpg6100-lighting-example.out.map:

BLOAT EXECUTION FAILED WITH CODE 1:
bloaty: unknown file type for file './pull_artifact/chip-qpg6100-lighting-example.out.map'

Comparing ./master_artifact/chip-qpg6100-lighting-example.out and ./pull_artifact/chip-qpg6100-lighting-example.out:

sections,vmsize,filesize
.debug_str,0,240
.text,36,36
.strtab,0,22
.debug_line,0,4
.shstrtab,0,-2
[Unmapped],0,-36


@github-actions
Copy link

Size increase report for "esp32-example-build" from 29e6bcd

File Section File VM
chip-temperature-measurement-app.elf .flash.rodata 40 40
chip-bridge-app.elf .flash.rodata 32 32
chip-shell.elf .flash.rodata 40 40
chip-lock-app.elf .flash.text 68 68
chip-lock-app.elf .flash.rodata 32 32
chip-all-clusters-app.elf .flash.rodata 40 40
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

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

sections,vmsize,filesize
.debug_str,0,250
.flash.rodata,40,40
.strtab,0,22
.debug_line,0,2
.shstrtab,0,-2
[Unmapped],0,-40

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

sections,vmsize,filesize

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

sections,vmsize,filesize
.debug_str,0,250
.flash.rodata,32,32
.strtab,0,22
.debug_line,0,2
.shstrtab,0,2
[Unmapped],0,-32

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

sections,vmsize,filesize

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

sections,vmsize,filesize
.debug_str,0,230
.flash.rodata,40,40
.strtab,0,22
.debug_line,0,2
.shstrtab,0,-2
[Unmapped],0,-40

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

sections,vmsize,filesize
.debug_str,0,250
.flash.text,68,68
.flash.rodata,32,32
.strtab,0,22
.xt.prop._ZNK4chip4SpanIhE7SubSpanEjj,0,12
.xt.lit._ZNK4chip4SpanIhE7SubSpanEjj,0,8
.debug_loc,0,4
.debug_line,0,2
.shstrtab,0,2
[Unmapped],0,-100

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

sections,vmsize,filesize
.debug_str,0,250
.flash.rodata,40,40
.strtab,0,10
.debug_line,0,2
.shstrtab,0,-2
[Unmapped],0,-40

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

sections,vmsize,filesize


@github-actions
Copy link

Size increase report for "nrfconnect-example-build" from 29e6bcd

File Section File VM
chip-lock.elf rodata 40 36
chip-shell.elf rodata 32 36
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_str,0,240
rodata,36,40
.strtab,0,22
.debug_line,0,4
.debug_loc,0,4
.shstrtab,0,2

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

sections,vmsize,filesize
.debug_str,0,240
rodata,36,32
.strtab,0,22
.debug_line,0,4
.shstrtab,0,-2
.debug_loc,0,-4


@andy31415 andy31415 merged commit fa0ef98 into project-chip:master Sep 14, 2021
@@ -150,36 +150,36 @@ uint64_t ReliableMessageContext::GetActiveRetransmitTimeoutTick()
* @note
* This message is part of the CHIP Reliable Messaging protocol.
*
* @param[in] AckMsgId The msgId of incoming Ack message.
* @param[in] AckMessageCounter The messageCounter of incoming Ack message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-existing, somewhat, but this is really confusing. This is not the actual message counter of the ack message. It's the message counter being acked. In spec terms, this is the "Acknowledged Message Counter" field.

Please do a followup to clean up the documentation here, or let me know once this PR merges and I can do it.

@@ -2177,7 +2177,7 @@ using CHIP_ERROR = ::chip::ChipError;
* @def CHIP_ERROR_MESSAGE_ID_OUT_OF_WINDOW
*
* @brief
* The message id of the received message is out of receiving window
* The message counter of the received message is out of receiving window
*/
#define CHIP_ERROR_MESSAGE_ID_OUT_OF_WINDOW CHIP_CORE_ERROR(0xc7)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Followup: Should change the name of this error too?

@@ -150,36 +150,37 @@ uint64_t ReliableMessageContext::GetActiveRetransmitTimeoutTick()
* @note
* This message is part of the CHIP Reliable Messaging protocol.
*
* @param[in] AckMsgId The msgId of incoming Ack message.
* @param[in] ackMessageCounter The messageCounter of incoming Ack message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the "Acknowledged Message Counter" of the incoming message, not the "Message Counter", right?

Pre-existing; please either do a followup to fix this documentation to be less confusing or let me know when this merges and I will.

@@ -151,11 +151,11 @@ class ReliableMessageMgr
*
* @param[in] rc A pointer to the ExchangeContext object.
*
* @param[in] msgId message ID which has been acked.
* @param[in] messageCounter message ID which has been acked.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param[in] messageCounter message ID which has been acked.
* @param[in] messageCounter message counter which has been acked.

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.

5 participants