I would like to debug why a PR, which has been fully approved by all the code owners, is not accepted by bors. My debug would be simplified if bors would log the debug messages in:
approvers: {} ) end defmodule BorsNG.CodeOwnerParser do # Returns a list of lists # Items in the inner lists are joined by an OR statement # Items in the the outer list are joined by an AND statement # [[A], [A, B], [A, C]] -> A and (A or B) and (A or C) @spec list_required_reviews(%BorsNG.CodeOwners{}, [%BorsNG.GitHub.File{}]) :: [[String.t()]] def list_required_reviews(code_owners, files) do Logger.debug("Code Owners: #{inspect(code_owners)}") Logger.debug("Files modified: #{inspect(files)}") required_reviewers = Enum.map(files, fn x -> # Convert each file to an array of matching owners pats = Enum.map(code_owners.patterns, fn owner -> cond do String.equivalent?("*", owner.file_pattern) ->
Is there some configuration option / environment variable that I can set to change the logging priority?
(Note that I deployed bors-ng through the provided docker image).
Looking into the config file section that sets up the logging subsystem it does not seem to be possible to easily override its settings, with, say, an env var: https://github.com/bors-ng/bors-ng/blob/3d0453eb229b1d773952020960a913ff4cedd3c5/config/config.exs#L5-L23
perhaps you can supply a customized https://github.com/bors-ng/bors-ng/blob/3d0453eb229b1d773952020960a913ff4cedd3c5/config/prod.exs to the docker image through a ro volume to modify the logging levels
1 Like
I think I figured out why bors sometimes rejects fully-approved PRs:
opened 01:56PM - 14 Jan 21 UTC
In my project some files are owned by teams and some by individuals. Sometimes fully approved PRs are still rejected by...