diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-06 09:54:59 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-06 13:09:36 +0200 |
commit | ca8fd841736ca65fa4292887052c78243512962a (patch) | |
tree | 3b8d1acde9debb5dc15a27583a776c0d08a582c6 /doc/invocations-http-server | |
parent | 169621189b6c35a1f15c16d3fe392732659ab5b0 (diff) | |
download | justbuild-ca8fd841736ca65fa4292887052c78243512962a.tar.gz |
Invocation server: present new exit codes and analysis erros
Diffstat (limited to 'doc/invocations-http-server')
-rwxr-xr-x | doc/invocations-http-server/server.py | 1 | ||||
-rw-r--r-- | doc/invocations-http-server/templates/invocation.html | 11 | ||||
-rw-r--r-- | doc/invocations-http-server/templates/invocations.html | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index f64f5439..e7969e6a 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -225,6 +225,7 @@ class InvocationServer: params["repo_config"] = meta.get('configuration') params["exit_code"] = profile.get('exit code') + params["analysis_errors"] = profile.get('analysis errors', []) # For complex conditional data fill with None as default for k in ["cmdline", "cmd", "target", "config"]: params[k] = None diff --git a/doc/invocations-http-server/templates/invocation.html b/doc/invocations-http-server/templates/invocation.html index b09ca0ac..bdcbb623 100644 --- a/doc/invocations-http-server/templates/invocation.html +++ b/doc/invocations-http-server/templates/invocation.html @@ -115,6 +115,15 @@ Inocations {{invocation | e}} </ul> {% if have_profile %} +{% if analysis_errors %} +<h2>Analysis errors</h2> +<ul> + {% for error in analysis_errors %} + <li> <pre>{{ error | e}}</pre></li> + {% endfor %} +</ul> +{% else %} +{% if exit_code == 1 or exit_code == 2 %} <h2>Failed actions</h2> {% if failed_actions %} <ul> @@ -141,6 +150,8 @@ In order of decreasing run time. {% else %} <i>(none)</i> {% endif %} +{% endif %} +{% endif %} {% else %} <b>No profiling data available; invocation data is not (yet) complete.</b> {% endif %} diff --git a/doc/invocations-http-server/templates/invocations.html b/doc/invocations-http-server/templates/invocations.html index bab67cd3..a3c6dfe2 100644 --- a/doc/invocations-http-server/templates/invocations.html +++ b/doc/invocations-http-server/templates/invocations.html @@ -21,6 +21,12 @@ Recent Invocations build failed {% elif invocation.exit_code == 2 %} failed + {% elif invocation.exit_code == 8 %} + analysis failure + {% elif invocation.exit_code == 16 %} + build-environment failure + {% elif invocation.exit_code == 32 %} + syntax/invocation error {% else %} exit code {{ invocation.exit_code | e }} {% endif %} |