mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-09 23:34:41 +01:00
Fix random failures in pipeline
This commit is contained in:
parent
1e19260544
commit
4d57b1ed19
6 changed files with 10 additions and 15 deletions
|
|
@ -13,7 +13,6 @@ stages:
|
|||
- static_code_analysis
|
||||
- pipeline_test
|
||||
|
||||
|
||||
run_unit_test:
|
||||
stage: pipeline_test
|
||||
image: "${COMMON_IMAGE}"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ DROPBEAR_OBJECT='{"parent_dm": "Device.", "object": "X_IOWRT_EU_Dropbear"}'
|
|||
jq --argjson newObj "$DROPBEAR_OBJECT" '.daemon.services += [$newObj]' "/etc/bbfdm/services/core.json" > /tmp/updated_core.json
|
||||
mv /tmp/updated_core.json /etc/bbfdm/services/core.json
|
||||
|
||||
supervisorctl restart bbfdmd
|
||||
|
||||
echo "Compiling icmwp"
|
||||
build_icwmp
|
||||
|
||||
|
|
@ -23,12 +25,12 @@ mkdir -p /var/log
|
|||
mkdir -p /var/state/icwmpd
|
||||
|
||||
echo "Starting Services..."
|
||||
cp ./gitlab-ci/icwmp-dm.conf /etc/supervisor/conf.d/
|
||||
cp ./gitlab-ci/icwmp.conf /etc/supervisor/conf.d/
|
||||
supervisorctl reread
|
||||
supervisorctl update
|
||||
supervisorctl restart bbfdmd
|
||||
sleep 20
|
||||
supervisorctl status all
|
||||
supervisorctl status
|
||||
|
||||
echo "Checking cwmp status"
|
||||
check_cwmp_status
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
[program:download]
|
||||
priority=3
|
||||
command=/bin/bash -c "cd /tmp/firmware/ && python3 -m http.server 80"
|
||||
|
||||
[program:icwmp]
|
||||
priority=12
|
||||
command=/bin/bash -c "/usr/bin/valgrind --xml=yes --xml-file=/tmp/memory-icwmp-report.xml --leak-check=full --show-reachable=yes --show-leak-kinds=all --errors-for-leak-kinds=all --error-exitcode=1 --track-origins=yes --leak-resolution=high --show-error-list=yes --child-silent-after-fork=yes /usr/sbin/dm-service -m icwmp"
|
||||
|
||||
[program:bbfdmd]
|
||||
priority=15
|
||||
command=/bin/bash -c "/usr/sbin/bbfdmd"
|
||||
|
|
|
|||
3
gitlab-ci/icwmp-dm.conf
Normal file
3
gitlab-ci/icwmp-dm.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[program:icwmp-dm]
|
||||
priority=12
|
||||
command=/bin/bash -c "/usr/bin/valgrind --xml=yes --xml-file=/tmp/memory-icwmp-report.xml --leak-check=full --show-reachable=yes --show-leak-kinds=all --errors-for-leak-kinds=all --error-exitcode=1 --track-origins=yes --leak-resolution=high --show-error-list=yes --child-silent-after-fork=yes /usr/sbin/dm-service -m icwmp"
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
echo "preparation script"
|
||||
pwd
|
||||
|
||||
[ -d "/opt/dev/bbfdm" ] && cd /opt/dev/bbfdm && ./gitlab-ci/setup.sh && cd -
|
||||
[ -d "/opt/dev/bbfdm" ] && cd /opt/dev/bbfdm && ./gitlab-ci/setup.sh && cp -f ./gitlab-ci/bbfdm_services.conf /etc/supervisor/conf.d/ && cd -
|
||||
|
||||
cp -rf ./test/files/* /
|
||||
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@ echo "Compiling icmwp"
|
|||
build_icwmp
|
||||
|
||||
echo "Starting dependent services"
|
||||
cp ./gitlab-ci/icwmp-dm.conf /etc/supervisor/conf.d/
|
||||
supervisorctl reread
|
||||
supervisorctl update
|
||||
sleep 2
|
||||
supervisorctl restart all
|
||||
sleep 5
|
||||
supervisorctl stop icwmpd
|
||||
sleep 5
|
||||
supervisorctl status all
|
||||
supervisorctl status
|
||||
|
||||
ubus wait_for bbfdm
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue