mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
With this patch, ECLAIR jobs will need to be manually started for "people/.*" pipelines and will not be triggered if the WTOKEN variable is missing. This avoids occupying the runner on analyzes that might not be used by developers. If developers want to analyze their own repositories they need to launch them from GitLab. Signed-off-by: Simone Ballarin <simone.ballarin@bugseng.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
30 lines
1.1 KiB
Bash
Executable File
30 lines
1.1 KiB
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
ECLAIR_ANALYSIS_DIR=automation/eclair_analysis
|
|
ECLAIR_DIR="${ECLAIR_ANALYSIS_DIR}/ECLAIR"
|
|
ECLAIR_OUTPUT_DIR=$(realpath "${ECLAIR_OUTPUT_DIR}")
|
|
|
|
"${ECLAIR_ANALYSIS_DIR}/prepare.sh" "${VARIANT}"
|
|
|
|
ex=0
|
|
"${ECLAIR_DIR}/analyze.sh" "${VARIANT}" "${RULESET}" || ex=$?
|
|
"${ECLAIR_DIR}/action_log.sh" ANALYSIS_LOG \
|
|
"ECLAIR analysis log" \
|
|
"${ECLAIR_OUTPUT_DIR}/ANALYSIS.log" \
|
|
"${ex}"
|
|
"${ECLAIR_DIR}/action_log.sh" REPORT_LOG \
|
|
"ECLAIR report log" \
|
|
"${ECLAIR_OUTPUT_DIR}/REPORT.log" \
|
|
"${ex}"
|
|
[ "${ex}" = 0 ] || exit "${ex}"
|
|
|
|
# Fail in case of new reports
|
|
"${ECLAIR_DIR}/action_clean_added.sh" "${ECLAIR_OUTPUT_DIR}" || ex=$?
|
|
"${ECLAIR_DIR}/action_log.sh" DIFF_CHECK_LOG \
|
|
"ECLAIR diff check" \
|
|
"${ECLAIR_OUTPUT_DIR}/clean_added.log" \
|
|
"${ex}"
|
|
|
|
"${ECLAIR_DIR}/action_push.sh" "${WTOKEN}" "${ECLAIR_OUTPUT_DIR}"
|
|
[ "${ex}" = 0 ] || exit "${ex}"
|