Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit 41f86c7

Browse files
committed
ci: certification: clean up the repository manually
The certification tests generate files owned by root, since the different sigma agents need to run as root. To prevent the next job from failing to remove files owned by root, the files have their ownership reset at the end of every job (by the run_test_file.py script). When a job is canceled however, there is no way to change the ownership of those files, neither is there a way to remove them at the next run (because the very first thing the gitlab-runner does is to try to remove them). Set the clean flags to 'none', so that gitlab-runner doesn't do any cleanup at all, and do the cleanup ourselves. While we're at it, also remove the 'echo $CI_COMMIT_DESCRIPTION' leftover. It still won't allow us to mark the certification tests as interruptible, because the UCC does not terminate properly when canceling a job anyway. Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
1 parent 76469dd commit 41f86c7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ run-certification-tests:
330330
interruptible: false
331331
stage: test
332332
variables:
333+
GIT_CLEAN_FLAGS: none
333334
# TESTS_TO_RUN needs to be set by the user (or the pipeline schedule)
334335
GIT_CLONE_PATH: "/builds/prpl-foundation/prplmesh/prplMesh/"
335336
# device to test with: prplmesh for dummy bwl, axepoint for dwpal on axepoint
@@ -341,6 +342,7 @@ run-certification-tests:
341342
echo "Deploying to $DEVICE_UNDER_TEST"
342343
tools/deploy_ipk.sh --certification-mode $DEVICE_UNDER_TEST build/$DEVICE_UNDER_TEST/prplmesh.ipk
343344
fi
345+
- sudo git clean -ffdx
344346
- ci/git-clean-reset.sh /easymesh_cert "$(<"ci/easymesh_cert_version")"
345347
- sudo /easymesh_cert/run_test_file.py --upload-results --verbose --log-folder logs --device-under-test $DEVICE_UNDER_TEST $TESTS_TO_RUN
346348
artifacts:

ci/certification/generic.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.certification-generic:
22
interruptible: false
33
variables:
4+
GIT_CLEAN_FLAGS: none
45
# DEVICE_UNDER_TEST need to be set when extending the job
56
GIT_CLONE_PATH: "/builds/prpl-foundation/prplmesh/prplMesh/"
67
script:
7-
- echo $CI_COMMIT_DESCRIPTION
8+
- sudo git clean -ffdx
89
- ci/git-clean-reset.sh /easymesh_cert "$(<"ci/easymesh_cert_version")"
910
- sudo /easymesh_cert/run_test_file.py -v -o logs -d $DEVICE_UNDER_TEST "${CI_JOB_NAME%%:*}"
1011
artifacts:

0 commit comments

Comments
 (0)