Problem:
The wifi-usp.t script is impacting tests that verify the default wifi
interface configuration (network.t and wifi.t).
Cause:
The wifi-usp.t script, which recently started manipulating VAPs, is
being executed before network.t and wifi.t. Those tests implicitly
assume that VAPs have never been enabled, causing the precondition to
be broken.
Solution:
Run the wifi-usp.t script at the appropriate time after network.t and
wifi.t.
Note:
The wifi-usp.t script was being executed twice because it existed in
the generic/ folder and also a symlink is pointing to it in the DUT
folder.
To resolve this, and by the way the initial purpose of this commit,
let's move it under wifi/ folder and update symlinks accordingly.
Closes: PPW-1259
References: PPW-1208
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
This commit adds a test to verify that USP events are raised through
the pwhm USP direct socket
Closes: PPW-1259
References: PPW-1208
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
(cherry picked from commit d8602b0e1e)
The prplmesh_utils script was updated to correctly include a process check for the prplmesh ieee1905_transport process.
Before this fix, pgrep wouldn't match the process fully because of the 15 char limit.
This is a test script change to accomodate the fixed prplmesh_utils.sh script.
Reference: PPM-3436, PPM-3662
Signed-off-by: Maarten De Decker <maarten.dedecker@mind.be>
Integrates following changes:
- controller: wifi_manager: switch from usp to ubus backend (24aa909b1)
- CI: Add Mozart build and boardfarm jobs (290952cb0)
- prplmesh_utils: use pgrep -f flag to avoid the 15-char limit (d045393ac)
References: PPM-3659, PPM-3364, PPM-3436
Signed-off-by: Maarten De Decker <maarten.dedecker@mind.be>
[ backport:
- mainline-23.05 timeout https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/12183415293#L275
- extending the timeout from 40 to 42 minutes as there is 309 tests being run,
on latest-24.10 we've 323 test cases ]
The prplWare-Smoke-Test-Suite on OSPv2 (MXL25641-HDK-6) has been experiencing
test runtime increases of approximately 9.2%, causing the CDRouter test to
take 33 minutes 51 seconds, which exceeds the default 40-minute CI job
timeout threshold.
This provisional change extends the timeout from 40 to 45 minutes to prevent
CI failures while the root cause of the performance degradation is being
investigated.
The performance issue appears to be specific to the OSPv2 platform on the
latest-24.10 branch, which runs consistently slower than other platforms
(Freedom, Mozart) and has shown a recent increase beyond its historical
average of ~31 minutes.
This is a temporary workaround. The underlying performance regression still
needs to be identified and resolved.
References: PPW-908, PCF-2058
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11338822768
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 0395f03cc0)
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Integrates following changes:
- subscription: Add remote subscription index vs. named test [fix] (92c9b66f)
- subscription: Add remote subscription index vs. named test [fix] (aa3735b9)
- [dmproxy][amx timeouts] Replace synchronous describe call from dmproxy (3fb84b92)
- refactor: rename amxb_subscription_new_v2 to amxb_subscription_new_no_check (459b2900)
- docs: enhance subscription API documentation and add internal code comments (dad44643)
References: PPW-1048
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- ci: enable crosscompilations and unit tests (5d5a4bc0)
- baf: fix documentation generation (7175dbf8)
- ci: baf: update autogenerated files (2196bf7a)
- captive_portal: update root directory for captive portal UI (499ba3ae)
- tr181-captiveportal: changed service startup scripts to be started and monitored by procd for auto-respawn (a062c931)
- tr181-captiveportal: Fix Redirection to Portal URL's were not happening. (5556ca81)
- tr181-captiveportal: Fix Captive Portal root dir. (39505a50)
- ci: baf: update autogenerated files (ef22f60b)
References: PPW-876, PCF-2069, PCF-1990, TR-181, PPW-623
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- [Captive Portal] Fix Redirection to Portal URL's were not happening. (967b7e74)
- ci: baf: update autogenerated files (7612ac36)
References: TR-181, PPW-876
Signed-off-by: default avatarprplbot <bot@prplfoundation.org>
Integrates following changes:
- fix: subscribe to wait:Unbound instead of wait:done (9b720b5c)
- [Captive Portal] Fix Redirection to Portal URL's were not happening. (a13ca18f)
References: PPW-876, TR-181
Signed-off-by: default avatarprplbot <bot@prplfoundation.org>
In commit 1eb70463 ("tr181-captiveportal: Fix Redirection to Portal
URL's were not happening.") lighttpd config files/etc/lighttpd/conf.d/51-prplos-webui.conf
was removed and since it was last file in files directory the complete
directory was removed, but package install rules weren't updated,
resulting into following build failures:
cp: cannot stat './files/*': No such file or directory
So lets fix the package install rules and cleanup the conffiles as well.
Fixes: PPW-1170
References: PPW-876
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/12094851780#L10300
Fixes: 1eb70463 ("tr181-captiveportal: Fix Redirection to Portal URL's were not happening.")
Signed-off-by: default avatarPetr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 381f6410)
The test 055-ssh-server.t is currently unstable and fails frequently,
leading to repeated CI job re-runs just to achieve a CI green status.
This unnecessarily consumes CI resources.
In commit 1b75a99538 ("PROVISORY: ci: 055-ssh-server.t: disable
unstable Session DM test") the relevant failing part was removed, but it
turned out, that it sometimes currently fails in subsequent test as well:
--- .gitlab/tests/cram/generic/acceleration-plan-components/055-ssh-server.t
+++ .gitlab/tests/cram/generic/acceleration-plan-components/055-ssh-server.t.err
@@ -68,6 +68,9 @@
Wait a bit and check that the Session datamodel is empty:
$ sleep 4 ; R "ubus call SSH.Server.3.Session _get | jsonfilter -e @[*].IPAddress -e @[*].User -e @[*].Alias" | sort
+ 192.168.1.2
+ cpe-Session-3
+ root
So temporarily disable that test until the underlying issues are resolved.
References: PPW-600
Fixes: 1b75a99538 ("PROVISORY: ci: 055-ssh-server.t: disable unstable Session DM test")
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11605567496#L115
Reported-by: Nikolai Merinov <n.merinov@inango-systems.com>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit eb46007a74)
The test 055-ssh-server.t is currently unstable and fails frequently,
leading to repeated CI job re-runs just to achieve a CI green status.
This unnecessarily consumes CI resources.
Temporarily disable the test until the underlying issues are resolved.
References: PPW-600
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 1b75a99538)
The prplmesh_utils.sh status output no longer shows the
ieee1905_transport process because the helper uses `pgrep -l
ieee1905_transport` and only matches the comm field, which is truncated
to TASK_COMM_LEN (15 chars). As a result, the ieee1905_transp line is
missing from the status output and the cram tests expecting it fail.
As a temporary workaround, drop the `ieee1905_transp` expectation from
the prplmesh status checks so the tests match the current status output.
Once the PPM-3436 fix is backported into the prplMesh used by
prplware-4.0, this check should be re-enabled.
References: PPM-3662, PPM-3436
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
[ during backport fixed Mozart in 100-prplmesh.t as there is no
110-prplmesh-dataelements.t in the mainline-23.05 branch,
additionally removed ieee1905_transp process check as this
is not being provided in the current version of prplmesh_utils.sh
script ]
Currently the prplMesh test pipes the prplmesh_utils.sh status output
(including PIDs) into LC_ALL=C sort and then matches the full lines,
which makes the check sensitive to ASCII PID ordering once PIDs cross
digit boundaries and results in random false negatives as seen in
PPW-881.
So lets strip the leading PIDs before sorting and only assert on the
sorted list of beerocks process names to make the agent operational
check deterministic and CI-stable.
Fixes: PPW-881
Debugged-by: Lu Dai <lu.dai@mind.be>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 176b975c80)
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Currently the test fails as the test is not being updated during merge
requests, since Mozart is Regular Track platform and thus not mandatory.
Since its no brainer to fix it, lets do it now to keep the number of
failing at minimum.
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
We're seeing this test failing a bit more lately, so lets remove it
to save some time and enable it once its fixed.
References: PPW-860
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit d2a30e7432)
There is a race condition somewhere in the system causing randomly
different lspci output in various test runs, like for example:
--- .gitlab/tests/cram/wnc-freedom/015-platform.t
+++ .gitlab/tests/cram/wnc-freedom/015-platform.t.err
@@ -8,7 +8,7 @@
0000:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
lspci: Unable to load libkmod resources: error -2
\tSubsystem: Qualcomm Technologies, Inc Device 5201 (esc)
- \tFlags: fast devsel, IRQ 35 (esc)
+ \tFlags: bus master, fast devsel, latency 0, IRQ 35 (esc)
\tMemory at 28300000 (64-bit, non-prefetchable) [size=4K] (esc)
\tMemory at 28301000 (64-bit, non-prefetchable) [size=4K] (esc)
Purpose of this test is to assure, that the modem is available on the
PCI bus and this Flag: check is not necessary for this purpose, simply
fix it by removing the check.
Fixes: PCF-2050
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/10930563907#L247
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit dc306ec71e)
Currently the test is always failing on OSPv2 as there is incompatible
udpst being used in UPDK. So lets skip this test on OSPv2 until its
fixed.
References: PPW-1093
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Integrates following changes:
- pwhm: radmgt: Update channel for existing station MAC in createNonAssociatedDevice (ed251ebd)
References: PPW-1147
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- Revert "libswla: dm: fix unit test not working" (702e685c)
- Revert "libswla: dm: add support for param group handler" (760a20b3)
References: SSW-9943, PPW-308
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- Revert "pwhm: hostapd: fix failure to start hostapd with 11be when backhaul bw is 160MHz" (dd49fccb)
- Revert "pwhm: hostapd: fix failure to start hostapd with only 11be enabled" (6883dce1)
- Revert "pwhm: rad: fix operating Standard is not boot persistent" (349efe95)
- Revert "pwhm: chanmgt: fix failure to set Auto bandwidth after static bw value" (77136c26)
- Revert "pwhm: chanmgt: fix bandwidth changed after chanspec being auto set" (d25b4944)
- Revert "pwhm: chanmgt: fix autoChannelselection still enabled when we change the channel from AP WebUI" (0541c3d9)
- Revert "pwhm: chanmgt: fix auto bandwidth selection does not work on channel 6/213" (0f2d94d5)
- Revert "pwhm: chanmgt: fix simultaneous switch of channel and bandwidth" (56f30018)
References: PPW-308
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- Revert "libswlc: common: add preprocessor macros to loop over variable arguments" (05bab0af)
- Revert "libswlc: chanspec: add unit tests for apis to get applicable bandwidths per radio standard" (57b27838)
- Revert "libswlc: chanspec: add util apis to get applicable radio bandwitdhs per radio standard" (7b5d0d00)
- Revert "libswlc: radStd: add unit tests for api to get and check enabled radStds" (02e391da)
- Revert "libswlc: radStd: add apis to get enabled radio standards" (3c8f7eaf)
- Revert "libswlc: radStd: deprecate inconsistent type swl_radioStandard_m" (516a3366)
Signed-off-by: prplbot <bot@prplfoundation.org>
Problem:
During the mlo.t cram test execution, the wld process may get stuck for
the same reason when previously the pwhm.t test was causing a similar
issue. (cf 72689c9980)
Cause:
- When mlo.t starts, we suspend the beerocks processes using SIGSTOP.
- When pwhm raises an event through the USP socket, it expects an
acknowledgement from prplmesh (the client). Since prplmesh is suspended
it never replies.
- This concerns ony the direct socket case, which is point-to-point
connection. With ubus, events are broadcasted, so no pear acknowledgement
is required.
- The issue became visible after unfiltering custom events in amxb_usp.
Solution:
Do the same fix as done in pwhm.t. ie: stop prplmesh properly before
starting the script so that it cleanly disconnects from the USP backend.
Fixes: PPW-1017
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
(cherry picked from commit c58a2c3f87)
Integrates following changes:
- Change BackhaulWireIface for Freedom and else (e3c1b122f)
- bwl: whm: Unassoc Query Issues: Channel Not Passed to pWHM and Incorrect Band Selection in prplMesh (6b6ea0f6f)
- Revert "common: whm: easymesh duplicate credential update" (cafbd9135)
- multi_vendor: optimize vendor-specific TLV insertion logic (6c5499739)
- tlvf_airties_utils: fix MAC mismatch in Airties Device Metrics TLV (74a4543e7)
- bwl: whm: set MAC Filtering Mode object back to "Off" when DM returns false (04adf434f)
- ci: boardfarm: nbapi_radio: index mismatch (f622b301e)
- Use general Ambiorix USP backend instead of pWhm-specific socket (33201ba55)
- fronthaul_manager:monitor: Allow chan_util reporting when threshold is zero (50a594feb)
- agent: topology task: fix incorrect role in 1905 device info TLV (9fa1af998)
References: PPM-3647, PPM-3640, PPM-3486, PPM-3587, PPM-3473, PPW-1112,
PPM-3615, PPM-3606, PPM-3476, PPM-3554
Signed-off-by: Maarten De Decker <maarten.dedecker@mind.be>
Integrates following changes:
- Upstream Inteface: Properly enable/disable when switching WANModes (68737a78)
- Cellular Interface should be disabled when not used (f3e88ec1)
- ci: baf: update autogenerated files (6b93326b)
References: PPW-515
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- Use dates in UTC format not Local (d05f8c05)
- [CI] Update changelog for release master_v1.0.2 (0390485e)
- BootCount and WatchdogBootCount must not be reset on Reboot.RemoveAllReboots() calls (3770a584)
- Add 'Source' parameter to 'Firmware Upgrade/Downgrade' reason (9e137363)
- [CI] Update changelog for release master_v1.0.3 (776f38d8)
- [CI] Update changelog for release master_v1.1.0 (65d5b28e)
- [CI] Update changelog for release master_v1.2.0 (c726cf34)
- Update Reboot.Reboot.{i}.TimeStamp last entry when NTP is synchronised (111accb6)
- [CI] Update changelog for release master_v1.2.1 (7c460f53)
- [CI] Update changelog for release master_v1.2.2 (06547915)
- rc.d : Plugin shutdown order should be adjusted (5e750b0e)
- [CI] Update changelog for release master_v1.2.3 (25cfb515)
- Fix overflow issue when applying NTP offset to timestamp in reboot entry (76098b2e)
- [CI] Update changelog for release master_v1.3.0 (77378c18)
- Address Code Review Remarks from prpl (c32e4f3c)
- [CI] Update changelog for release master_v1.3.1 (f9497453)
- [reboot-service] No rotation of reboot entries (e26a0813)
- [CI] Update changelog for release master_v1.3.2 (46610e4e)
- odl: Change populate behavior for duplicate instances to "update" (bd5a715e)
- [CI] Update changelog for release master_v1.3.3 (1e358343)
- Issue: [AppAmor][reboot-service] AppAmor profile should be created for reboot-service (041459f5)
- ci: baf: update autogenerated files (b7ea0232)
References: PPW-612
Signed-off-by: prplbot <bot@prplfoundation.org>
Since OSPv2 B-Step devices are de-facto a standard devices currently being sold,
we should include those images in the release.
References: PCF-2200
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 3d4789ed74)
Since OSPv2 B-Step devices are de-facto a standard devices currently
being sold, it was decided to start using them for testing in prplOS CI
instead of current OSPv2 A-Step boards.
References: PCF-2200
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit 7310621934)
The PKG_SOURCE_URL was changed incorrectly during the integration of
tag/release 0.2.8 where the package source was switched to source code tarball
archive, which doesn't contain the dist/ directory which is produced during the
release process by npm build process, leading to following build breakage:
cp: cannot stat '/builds/prpl-foundation/prplos/prplos/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/prpl-webui-0.2.8/dist/*': No such file or directory
So lets fix it by using the correct PKG_SOURCE_URL which is the one that points
to the release tarball archive.
Fixes: PPW-1172
References: PCF-1057, PPW-1170
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/12099954437#L8657
Fixes: 60a9f14660 ("profiles: prpl: feed-prplos: prpl-webui: Replace vendor prefix (FEAT-51)")
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Fixes an issue in commit 99dcb0e625 ("gitlab:build: Add option to export
staging rootfs for debugging") where the CI_BUILD_EXPORT_STAGING_ROOTFS
variable was not properly escaped in the export message.
Fixes: PCF-2201
Reported-by: Lu Dai <lu.dai@mind.be>
Fixes: 99dcb0e625 ("gitlab:build: Add option to export staging rootfs for debugging")
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
(cherry picked from commit e5ae0a5103)