From e7d4820f74f65a27d155959672ad52da6b562333 Mon Sep 17 00:00:00 2001 From: Timo Sairiala Date: Mon, 29 Jul 2024 08:47:31 +0300 Subject: [PATCH] update baseimage v3.3.0 Needed to change from jfrog -> digitalocean also remove legacy coverity tools --- packaging/Dockerfile.coverity | 27 --------------------------- packaging/Dockerfile.sitl | 2 +- packaging/coverity.yaml | 10 ---------- packaging/entrypoint_coverity.sh | 32 -------------------------------- 4 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 packaging/Dockerfile.coverity delete mode 100644 packaging/coverity.yaml delete mode 100755 packaging/entrypoint_coverity.sh diff --git a/packaging/Dockerfile.coverity b/packaging/Dockerfile.coverity deleted file mode 100644 index 6358369f5ed1..000000000000 --- a/packaging/Dockerfile.coverity +++ /dev/null @@ -1,27 +0,0 @@ -FROM ghcr.io/tiiuae/px4-firmware-builder-base:latest - -# coverity docker registry access token to download coverity tool -# for more details refer to confluence page "Coverity docker scan" -# https://ssrc.atlassian.net/wiki/spaces/DRON/pages/705823997/Coverity+docker+scan -ARG COVERITY_DOCKER_REGISTRY_USERNAME -ARG COVERITY_DOCKER_REGISTRY_ACCESS_TOKEN - -# coverity license file to run coverity tool -ARG COVERITY_LICENSE_DAT_B64 -RUN echo "$COVERITY_LICENSE_DAT_B64" | base64 -d > /license.dat - -# access token for our internal server -ARG COVERITY_ACCESS_TOKEN_B64 -RUN echo "$COVERITY_ACCESS_TOKEN_B64" | base64 -d > /auth_key.txt -RUN chmod 400 /auth_key.txt - -# - download coverity installer package -# - chmod and run the installer -# - remove installation package to reduce image size -RUN curl https://sig-repo.synopsys.com/artifactory/coverity-releases/2023.6.0/cov-analysis-linux64-2023.6.0.sh -o /coverity_install.sh -u ${COVERITY_DOCKER_REGISTRY_USERNAME}:${COVERITY_DOCKER_REGISTRY_ACCESS_TOKEN} \ - && chmod +x /coverity_install.sh \ - && /coverity_install.sh -q --installation.dir=/cov --license.region=6 --license.agreement=agree --license.type.choice=0 --license.cov.path=/license.dat \ - && rm /coverity_install.sh - -COPY px4-firmware/packaging/entrypoint_coverity.sh / -ENTRYPOINT [ "/entrypoint_coverity.sh" ] diff --git a/packaging/Dockerfile.sitl b/packaging/Dockerfile.sitl index a60728b8a31c..3969b137ce1b 100644 --- a/packaging/Dockerfile.sitl +++ b/packaging/Dockerfile.sitl @@ -1,4 +1,4 @@ -FROM ghcr.io/tiiuae/fog-ros-baseimage-builder:v2.1.0 +FROM ghcr.io/tiiuae/fog-ros-baseimage-builder:v3.3.0 RUN apt-get update && apt-get install -y --no-install-recommends \ wget diff --git a/packaging/coverity.yaml b/packaging/coverity.yaml deleted file mode 100644 index da2ca70fe40e..000000000000 --- a/packaging/coverity.yaml +++ /dev/null @@ -1,10 +0,0 @@ -capture: - build: - build-command: packaging/build_px4fw.sh ssrc_saluki-v2_default - -commit: - connect: - auth-key-file: /auth_key.txt - stream: px4-coverity-test - url: https://coverity.ssrc.fi:443/ - on-new-cert: trust diff --git a/packaging/entrypoint_coverity.sh b/packaging/entrypoint_coverity.sh deleted file mode 100755 index 5962684f81da..000000000000 --- a/packaging/entrypoint_coverity.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -eu - -COVERITY_SUMMARY_OUT=/main_ws/cov-analyze-result.txt -COVERITY_SCAN_OUT=/main_ws/cov-scan-output.txt -COVERITY_REPORT_OUT=/main_ws/coverity-output - -cp /main_ws/packaging/coverity.yaml /main_ws/coverity.yaml - -export PATH=$PATH:/cov/bin/ -cov-configure --gcc -coverity scan --exclude-language java |tee ${COVERITY_SCAN_OUT} -coverity list - -# find important information from coverity scan to be shown on github action step summary -# link for coverity -grep 'Results are available at' ${COVERITY_SCAN_OUT} >> ${COVERITY_SUMMARY_OUT} -echo 'send a slack message to tampere-drones if you have access issues' >> ${COVERITY_SUMMARY_OUT} - -echo "Analysis summary:">> ${COVERITY_SUMMARY_OUT} -# '```' marks the code block for output -echo '```' >> ${COVERITY_SUMMARY_OUT} -# check analysis summary output and save everything beginning from "analysis summary report" to a file -cov-analyze --dir idir --strip-path /main_ws/src/ |sed -n -E -e '/Analysis summary report:/,$ p'>>${COVERITY_SUMMARY_OUT} -# '```' ends the code block for output -echo '```' >> ${COVERITY_SUMMARY_OUT} - -echo "File findings:">> ${COVERITY_SUMMARY_OUT} -echo '------' >> ${COVERITY_SUMMARY_OUT} - -# save coverity html output -cov-format-errors --dir idir --html-output ${COVERITY_REPORT_OUT} -echo 'for more details please check attached html report from "Artifacts" -sections above' >> ${COVERITY_SUMMARY_OUT}