Skip to content

Conversation

@tokangas
Copy link
Contributor

@tokangas tokangas commented Nov 6, 2025

Enabled CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS and CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS in unit tests. The notifications were tested by the UT, but not the notification subscriptions.

@tokangas tokangas requested a review from a team as a code owner November 6, 2025 11:34
Copilot AI review requested due to automatic review settings November 6, 2025 11:34
@NordicBuilder NordicBuilder added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Nov 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables subscription configurations for modem sleep and TAU pre-warning notifications in the LTE LC API unit tests. These notification features were previously tested but their subscription configurations were not enabled in the test suite.

Key changes:

  • Enabled CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS and CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS in test configuration
  • Introduced enable_notifications() helper function to consolidate notification setup mocking
  • Refactored multiple test cases to use the new helper function for cleaner test code

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/lib/lte_lc_api/prj.conf Enabled modem sleep and TAU pre-warning notification subscription configurations
tests/lib/lte_lc_api/src/lte_lc_api_test.c Added enable_notifications() helper and updated test cases to mock notification subscriptions conditionally

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Nov 6, 2025

CI Information

To view the history of this post, click the 'edited' button above
Build number: 2

Inputs:

Sources:

sdk-nrf: PR head: be9848341759a51759dcf20b4148c099f91fd6b3

more details

sdk-nrf:

PR head: be9848341759a51759dcf20b4148c099f91fd6b3
merge base: 9398c96d435608c247fe500d4edf345a0f3b32eb
target head (main): a04c3ca2caeb1294c012fa1255cf01a6e0a5a32f
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (3)
tests
│  ├── lib
│  │  ├── lte_lc_api
│  │  │  ├── prj.conf
│  │  │  ├── src
│  │  │  │  │ lte_lc_api_test.c
│  │  │  │ testcase.yaml

Outputs:

Toolchain

Version: df3cc9d822
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:df3cc9d822_e595b21c39

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 1
  • ✅ Integration tests
Disabled integration tests
    • test-fw-nrfconnect-nrf_lrcs_positioning
    • desktop52_verification
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-ps-main
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread-main
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-wifi
    • test-secdom-samples-public

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

Enabled CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS and
CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS in unit tests.
The notifications were tested by the UT, but not the
notification subscriptions.

Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no>
@tokangas tokangas force-pushed the lte_lc_ut_enable_subscriptions branch from 9519eb0 to be98483 Compare November 7, 2025 10:42
@tokangas tokangas requested a review from jhirsi November 7, 2025 13:42
@tokangas tokangas removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants