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

tests: on_target: add memfault test #79

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Conversation

DematteisGiacomo
Copy link
Collaborator

Add memfault test.
Test check that coredump are uploaded to memfault.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎯 Core Changes

  • Introduced a new functional test for Memfault integration in the test_memfault.py file. This test verifies that coredumps are correctly uploaded to the Memfault API by simulating a fault and checking for new coredump traces.

⚠️ Concerns

  • The test relies on environment variables for configuration, which may not be set in all environments, potentially leading to test failures.
  • The test uses a hardcoded timeout value for waiting on coredump uploads, which might not be suitable for all network conditions or environments.

Verdict:

  • Comment: The test is a valuable addition for verifying Memfault integration, but there are concerns about the reliance on environment variables and hardcoded timeout values. Consider adding checks for environment variable presence and making the timeout configurable.

Code review performed by OPENAI - gpt-4o.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎯 Core Changes

  • The update focuses on adding a test for Memfault integration, ensuring that coredumps are uploaded correctly to Memfault.

⚠️ Concerns

  • Previous concerns about environment variables and hardcoded timeout values remain unaddressed. These issues could lead to test failures in different environments and under varying network conditions.

Verdict:

  • Comment: The test is a valuable addition, but it is important to address the concerns regarding environment variable checks and configurable timeout values to ensure robust and flexible test execution.

Code review performed by OPENAI - gpt-4o.

@DematteisGiacomo DematteisGiacomo force-pushed the memfault_test branch 3 times, most recently from 9458bdd to dad3717 Compare February 26, 2025 11:22
Add memfault test.
Test check that coredump are uploaded to memfault.

Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
@DematteisGiacomo DematteisGiacomo merged commit 972741d into main Feb 26, 2025
2 of 3 checks passed
@DematteisGiacomo DematteisGiacomo deleted the memfault_test branch February 26, 2025 11:52
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.

1 participant