chore: follow reportist root entrypoint
Beffroi Reporting CI All checks passed and encrypted report archives were built.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
Beffroi Reporting CI All checks passed and encrypted report archives were built.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ab048d36d2
commit
83529e3e05
|
|
@ -26,7 +26,7 @@ command_name=${1:-help}; shift || true
|
|||
case "$command_name" in
|
||||
report)
|
||||
[[ $# -eq 2 ]]||usage 2; require typst
|
||||
reporter/tools/render.sh "$1" --output "$2"
|
||||
reporter/render.sh "$1" --output "$2"
|
||||
;;
|
||||
diagnostic)
|
||||
[[ $# -eq 7 ]]||usage 2; require git typst
|
||||
|
|
|
|||
2
reporter
2
reporter
|
|
@ -1 +1 @@
|
|||
Subproject commit fe421e4ffaf24f9898216eb4e46b932d591fed0a
|
||||
Subproject commit d5ad5bb0e687f9982f2d15092ceda0af539cfa0e
|
||||
|
|
@ -8,12 +8,16 @@ command -v uv >/dev/null 2>&1 || {
|
|||
exit 1
|
||||
}
|
||||
|
||||
for component in diagnostics reporter reports; do
|
||||
for component in diagnostics reports; do
|
||||
if [[ ! -f "$component/requirements.txt" || ! -d "$component/tests" || ! -x "$component/test.sh" ]]; then
|
||||
echo "Missing $component checks. Run: git submodule update --init --recursive" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
if [[ ! -f reporter/requirements.txt || ! -x reporter/render.sh || ! -x reporter/tests/test.sh ]]; then
|
||||
echo "Missing reporter entrypoint or checks. Run: git submodule update --init --recursive" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
command -v typst >/dev/null 2>&1 || {
|
||||
echo 'Typst is required for Reportist rendering checks.' >&2
|
||||
|
|
@ -22,11 +26,14 @@ command -v typst >/dev/null 2>&1 || {
|
|||
typst --version
|
||||
|
||||
uv --version
|
||||
for component in diagnostics reporter; do
|
||||
for component in diagnostics; do
|
||||
echo "Checking $component ($(git -C "$component" rev-parse HEAD))"
|
||||
"$component/test.sh"
|
||||
done
|
||||
|
||||
echo "Checking reporter ($(git -C reporter rev-parse HEAD))"
|
||||
reporter/tests/test.sh
|
||||
|
||||
echo "Checking reports ($(git -C reports rev-parse HEAD))"
|
||||
DIAGNOSTIC_VALIDATOR="$(pwd)/diagnostics/tools/validate.sh" \
|
||||
REPORT_VALIDATOR="$(pwd)/reporter/tools/validate.sh" \
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ reports/tools/diagnostic-to-report-all.sh --diagnostic-dir "$output_root/diagnos
|
|||
--branding "$PWD/reports/config/branding/default.json" --branding-root "$PWD/reports"
|
||||
while IFS= read -r -d '' report; do
|
||||
relative=${report#"$output_root/generations/"}; relative=${relative%/report.draft.json}
|
||||
reporter/tools/render.sh "$report" --output "$output_root/pdfs/$relative.pdf"
|
||||
reporter/render.sh "$report" --output "$output_root/pdfs/$relative.pdf"
|
||||
done < <(find "$output_root/generations" -type f -name report.draft.json -print0 | sort -z)
|
||||
echo "Created diagnostics, draft generations, and PDFs under $output_root"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ draft() {
|
|||
render() {
|
||||
[[ $# -eq 2 ]] || usage
|
||||
require_values "$@"
|
||||
bash reporter/tools/render.sh "$1" --output "$2"
|
||||
bash reporter/render.sh "$1" --output "$2"
|
||||
}
|
||||
|
||||
command_name="${1:-}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue