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

samples: matter: Refactored diagnostic crash logs module #15455

Merged
merged 1 commit into from
May 29, 2024

Conversation

kkasperczyk-no
Copy link
Contributor

Refactored and enhanced diagnostic crash logs module:

  • Extracted crash logs specific methods from generic diagnostic logs provider to the diagnostic logs crash module.
  • Removed usage of persistent storage as a back-up for the retention RAM memory
  • Added saving intent implementation object as a part of mIntentMap what allows to perform several independent log collection sessions at the same time.

@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. manifest changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels May 23, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented May 23, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
matter nrfconnect/sdk-connectedhomeip@78d81b4 nrfconnect/sdk-connectedhomeip@4171153 nrfconnect/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@NordicBuilder
Copy link
Contributor

NordicBuilder commented May 23, 2024

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-fw-nrfconnect-chip X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

Copy link
Contributor

@ArekBalysNordic ArekBalysNordic left a comment

Choose a reason for hiding this comment

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

LGTM

@kkasperczyk-no kkasperczyk-no force-pushed the crash_logs_refactor branch 2 times, most recently from 8dacfc7 to e7787ff Compare May 24, 2024 09:47
@NordicBuilder NordicBuilder removed the DNM label May 24, 2024
@kkasperczyk-no kkasperczyk-no requested a review from a team as a code owner May 28, 2024 12:26
Refactored and enhanced diagnostic crash logs module:
* Extracted crash logs specific methods from generic diagnostic
logs provider to the diagnostic logs crash module.
* Removed usage of persistent storage as a back-up for the
retention RAM memory
* Added saving intent implementation object as a part of
mIntentMap what allows to perform several independent log
collection sessions at the same time.

Signed-off-by: Kamil Kasperczyk <[email protected]>
Copy link
Contributor

@markaj-nordic markaj-nordic left a comment

Choose a reason for hiding this comment

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

Looks great now.

mIntent = other.mIntent;
mIntentImpl = other.mIntentImpl;
/* Nullptr the copied data to prevent from deleting it by the source. */
other.mIntentImpl = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we should also invalidate the intent with IntentEnum::kUnknownEnumValue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will add it in the next PR. I will open it just after merging this one.

return *this;
}

operator bool() const { return true; }
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
operator bool() const { return true; }
operator bool() const { return mIntentImpl && (mIntent != IntentEnum::kUnknownEnumValue); }

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now mIntentImpl can be nullptr. This is needed,because we don't have network logs implementation and we want to use it for testing purposes.

@rlubos rlubos merged commit a67b8d5 into nrfconnect:main May 29, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. doc-required PR must not be merged without tech writer approval. manifest-matter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants