Skip to content

Commit

Permalink
Feat: print skipped packages in yellow in the terminal output
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 2, 2024
1 parent 53e593d commit b635783
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nixpkgs_review/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Literal

from .nix import Attr
from .utils import System, info, link, warn
from .utils import System, info, link, skipped, warn


def print_number(
Expand Down Expand Up @@ -246,12 +246,13 @@ def print_console(self, pr: int | None) -> None:

for system, report in self.system_reports.items():
info(f"--------- Report for '{system}' ---------")
print_number(report.broken, "marked as broken and skipped")
print_number(report.broken, "marked as broken and skipped", log=skipped)
print_number(
report.non_existent,
"present in ofBorgs evaluation, but not found in the checkout",
log=skipped,
)
print_number(report.blacklisted, "blacklisted")
print_number(report.blacklisted, "blacklisted", log=skipped)
print_number(report.failed, "failed to build")
print_number(report.tests, "built", what="tests", log=print)
print_number(report.built, "built", log=print)
1 change: 1 addition & 0 deletions nixpkgs_review/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def wrapper(text: str) -> None:

warn = color_text(31, file=sys.stderr)
info = color_text(32)
skipped = color_text(33)
link = color_text(34)


Expand Down

0 comments on commit b635783

Please sign in to comment.