Skip to content

Thread: use tmp path in isolation environment#42840

Merged
andy31415 merged 1 commit intoproject-chip:masterfrom
bukepo:thread-tmp-path
Jan 29, 2026
Merged

Thread: use tmp path in isolation environment#42840
andy31415 merged 1 commit intoproject-chip:masterfrom
bukepo:thread-tmp-path

Conversation

@bukepo
Copy link
Copy Markdown
Contributor

@bukepo bukepo commented Jan 28, 2026

Summary

This commit changes the OpenThread Border Router settings path to a tmp so that the /var/lib/thread is not required.

Related issues

This was recently reported due to merge of #42336.

Testing

The BLE-Thread test case will cover the change.

@bukepo bukepo changed the title Thread: use tmp path in isolation environment Thread: use tmp path in isolation environment Jan 28, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates several submodules, most notably ot-br-posix, which allows the OpenThread Border Router to use a temporary path for its settings. This change enables the removal of a workaround in scripts/tests/chiptest/linux.py that mounted /var/lib/thread as a temporary filesystem. The code removal is a clean and justified simplification of the test environment. The changes look good.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 28, 2026

PR #42840: Size comparison from ac0beeb to 4b2a9c0

Full report (31 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
platform target config section ac0beeb 4b2a9c0 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106440 1106440 0 0.0
RAM 178978 178978 0 0.0
bl702 lighting-app bl702+eth FLASH 661210 661210 0 0.0
RAM 135049 135049 0 0.0
bl702+wifi FLASH 837050 837050 0 0.0
RAM 124517 124517 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070974 1070974 0 0.0
RAM 117389 117389 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 903548 903548 0 0.0
RAM 105964 105964 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983620 983620 0 0.0
RAM 109884 109884 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771284 771284 0 0.0
RAM 103408 103408 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784320 784320 0 0.0
RAM 108736 108736 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729456 729456 0 0.0
RAM 97484 97484 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 714032 714032 0 0.0
RAM 97692 97692 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555340 555340 0 0.0
RAM 205496 205496 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589224 589224 0 0.0
RAM 205752 205752 0 0.0
esp32 all-clusters-app c3devkit DRAM 98124 98124 0 0.0
FLASH 1583502 1583502 0 0.0
IRAM 93514 93514 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934732 934732 0 0.0
RAM 161904 161904 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1694660 1694660 0 0.0
RAM 214404 214404 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1597300 1597300 0 0.0
RAM 211476 211476 0 0.0
light cy8ckit_062s2_43012 FLASH 1460940 1460940 0 0.0
RAM 197808 197808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1495044 1495044 0 0.0
RAM 225688 225688 0 0.0
qpg lighting-app qpg6200+debug FLASH 838716 838716 0 0.0
RAM 128032 128032 0 0.0
lock-app qpg6200+debug FLASH 777164 777164 0 0.0
RAM 118972 118972 0 0.0
realtek light-switch-app rtl8777g FLASH 701992 701992 0 0.0
RAM 113548 113548 0 0.0
lighting-app rtl8777g FLASH 743872 743872 0 0.0
RAM 114768 114768 0 0.0
stm32 light STM32WB5MM-DK FLASH 470804 470804 0 0.0
RAM 141408 141408 0 0.0
telink bridge-app tl7218x FLASH 711642 711642 0 0.0
RAM 93088 93088 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797432 797432 0 0.0
RAM 41272 41272 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788762 788762 0 0.0
RAM 96172 96172 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 717432 717432 0 0.0
RAM 54264 54264 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 753242 753242 0 0.0
RAM 73288 73288 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 721814 721814 0 0.0
RAM 34992 34992 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 609728 609728 0 0.0
RAM 117960 117960 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 822266 822270 4 0.0
RAM 94560 94560 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 28, 2026

PR #42840: Size comparison from ac0beeb to 24c69a2

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section ac0beeb 24c69a2 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106440 1106440 0 0.0
RAM 178978 178978 0 0.0
bl702 lighting-app bl702+eth FLASH 661210 661210 0 0.0
RAM 135049 135049 0 0.0
bl702+wifi FLASH 837050 837050 0 0.0
RAM 124517 124517 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070974 1070974 0 0.0
RAM 117389 117389 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 903548 903548 0 0.0
RAM 105964 105964 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983620 983620 0 0.0
RAM 109884 109884 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771284 771284 0 0.0
RAM 103408 103408 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784320 784320 0 0.0
RAM 108736 108736 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729456 729456 0 0.0
RAM 97484 97484 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 714032 714032 0 0.0
RAM 97692 97692 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555340 555340 0 0.0
RAM 205496 205496 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589224 589224 0 0.0
RAM 205752 205752 0 0.0
efr32 lock-app BRD4187C FLASH 967312 967304 -8 -0.0
RAM 123656 123656 0 0.0
BRD4338a FLASH 761124 761124 0 0.0
RAM 236944 236944 0 0.0
window-app BRD4187C FLASH 1063584 1063576 -8 -0.0
RAM 124780 124780 0 0.0
esp32 all-clusters-app c3devkit DRAM 98124 98124 0 0.0
FLASH 1583502 1583502 0 0.0
IRAM 93514 93514 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934732 934732 0 0.0
RAM 161904 161904 0 0.0
nxp contact mcxw71+release FLASH 744632 744632 0 0.0
RAM 67152 67152 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1694660 1694660 0 0.0
RAM 214404 214404 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1597300 1597300 0 0.0
RAM 211476 211476 0 0.0
light cy8ckit_062s2_43012 FLASH 1460940 1460940 0 0.0
RAM 197808 197808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1495044 1495044 0 0.0
RAM 225688 225688 0 0.0
qpg lighting-app qpg6200+debug FLASH 838716 838716 0 0.0
RAM 128032 128032 0 0.0
lock-app qpg6200+debug FLASH 777164 777164 0 0.0
RAM 118972 118972 0 0.0
realtek light-switch-app rtl8777g FLASH 701992 701992 0 0.0
RAM 113548 113548 0 0.0
lighting-app rtl8777g FLASH 743872 743872 0 0.0
RAM 114768 114768 0 0.0
stm32 light STM32WB5MM-DK FLASH 470804 470804 0 0.0
RAM 141408 141408 0 0.0
telink bridge-app tl7218x FLASH 711642 711642 0 0.0
RAM 93088 93088 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797432 797432 0 0.0
RAM 41272 41272 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788762 788762 0 0.0
RAM 96172 96172 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 717432 717432 0 0.0
RAM 54264 54264 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 753242 753242 0 0.0
RAM 73288 73288 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 721814 721814 0 0.0
RAM 34992 34992 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 609728 609728 0 0.0
RAM 117960 117960 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 822266 822270 4 0.0
RAM 94560 94560 0 0.0

@bukepo bukepo marked this pull request as ready for review January 28, 2026 23:40
Copilot AI review requested due to automatic review settings January 28, 2026 23:40
Copy link
Copy Markdown
Contributor

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 updates the Thread test environment so that OpenThread no longer requires /var/lib/thread inside the isolated environment/container, relying instead on a configurable settings path.

Changes:

  • Remove the explicit /var/lib/thread tmpfs mount from the Linux test helper (ensure_private_state), simplifying the test environment requirements.
  • Pass -DOT_POSIX_SETTINGS_PATH='\"tmp\"' to the OTBR CMake build in the GitHub Actions workflow so OpenThread stores settings under a tmp path instead of /var/lib/thread.

Reviewed changes

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

File Description
scripts/tests/chiptest/linux.py Drops the special remount of /var/lib/thread since the OTBR now uses a different settings path.
.github/workflows/tests.yaml Configures the OTBR CMake build in CI to use the tmp settings path, aligning with the updated test environment.

@bukepo bukepo requested a review from andy31415 January 29, 2026 03:10
@andy31415 andy31415 added the sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. label Jan 29, 2026
@andy31415
Copy link
Copy Markdown
Contributor

Thank you for the fix!

@andy31415 andy31415 merged commit 27b6094 into project-chip:master Jan 29, 2026
86 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github scripts sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants