Skip to content

Commit 1a10192

Browse files
committed
Instruct build agent to clean the logs
If the build logs are left in the current directory, the backport/rebase agent can decide to analyze them on its own, and that can have unwanted effects. It should always use just the summary it was given by the build agent. Signed-off-by: Nikola Forró <[email protected]>
1 parent 3dad71e commit 1a10192

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agents/build_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def get_instructions() -> str:
3434
using the `download_artifacts` tool to the current directory. If there are no log files,
3535
just return the error message. Otherwise, start with `builder-live.log` and try to identify
3636
the build failure. If not found, try the same with `root.log`. Summarize the findings
37-
and return them as `error`. If the build failed due to a build timeout, set `is_timeout` to `true` in your output.
37+
and return them as `error`. If the build failed due to a build timeout, set `is_timeout` to `true`
38+
in your output. Remove the downloaded *.log.gz files, if any.
3839
3940
General instructions:
4041

0 commit comments

Comments
 (0)