Open sir4ur0n opened 3 years ago
This is a great idea, but many of us use marge-bot with groups of projects, so we really need to prepend group/project!MR
to each log line. So,
2021-06-21 06:29:14,476 WARNING git returned 128
would become:
2021-06-21 06:29:14,476 WARNING group/project/!123 git returned 128
Current Marge Bot logs do not always tell which MR Marge is working on, which can make debugging unnecessarily tedious, as one needs to read previous log lines to find an MR number or branch name, and hope the current log line is related.
Examples of logging with not enough info in itself:
It would be great if the MR (or MRs, in case of batching? We don't use batching on my project so I don't know) - if any - that triggers a log line was (optionally? a configuration flag?) part of the log line.
I reckon not all log lines would be eligible, e.g. such logs are - I guess - meta and not directly linked to an MR:
That way, one could easily search all logs related to an MR in case it fails and Marge greets us with the famous "I am broken inside" :grin:
Note: Such info should probably be easily parseable to be digested into a log system, e.g. ELK or Prometheus/Grafana
What do you think about this idea?
Thank you for this tool!