11 releases

0.1.1 Nov 20, 2024
0.1.0 Nov 6, 2024
0.0.44 Oct 2, 2024
0.0.43 Sep 21, 2024
0.0.33 May 23, 2023

#383 in Parser implementations

Download history 91/week @ 2024-10-19 71/week @ 2024-10-26 282/week @ 2024-11-02 297/week @ 2024-11-09 314/week @ 2024-11-16 239/week @ 2024-11-23 202/week @ 2024-11-30 243/week @ 2024-12-07 215/week @ 2024-12-14 188/week @ 2024-12-21 137/week @ 2024-12-28 212/week @ 2025-01-04 106/week @ 2025-01-11 114/week @ 2025-01-18 77/week @ 2025-01-25 350/week @ 2025-02-01

655 downloads per month
Used in ognibuild

GPL-2.0+

520KB
13K SLoC

The build log consultant can parse and analyse build log files.

Currently supported container formats:

  • sbuild
  • plain

For a longer introduction, see the blog post.

Example usage


$ analyze-sbuild-log < build.log
Error: unsatisfied apt dependencies: librust-breezyshim+dirty-tracker-dev:amd64 (>= 0.1.138-\~\~)
Issue found at lines 105-120:
    (I)Dose_deb: Parsing Packages file -...
    (I)Dose_common: total packages 71128
    (I)Dose_applications: Cudf Universe: 71128 packages
    (I)Dose_applications: --checkonly specified, consider all packages as background packages
    (I)Dose_applications: Solving...
 >  output-version: 1.2
 >  native-architecture: amd64
 >  report:
 >   -
 >    package: sbuild-build-depends-main-dummy
 >    version: 0.invalid.0
 >    architecture: amd64
 >    status: broken
 >    reasons:
 >     -
 >      missing:
 >       pkg:
 >        package: sbuild-build-depends-main-dummy
 >        version: 0.invalid.0
 >        architecture: amd64
 >        unsat-dependency: librust-breezyshim+dirty-tracker-dev:amd64 (>= 0.1.138-~~)

    background-packages: 71127
    foreground-packages: 1
    total-packages: 71128
    broken-packages: 1
Identified issue: unsatisfied apt dependencies: librust-breezyshim+dirty-tracker-dev:amd64 (>= 0.1.138-\~\~)

Or using the JSON output:

$ analyze-sbuild-log --json < build.log
{
  "details": {
    "relations": "librust-breezyshim+dirty-tracker-dev:amd64 (>= 0.1.138-\~\~)"
  },
  "line": "      unsat-dependency: librust-breezyshim+dirty-tracker-dev:amd64 (>= 0.1.138-\~\~)\n",
  "lineno": 120,
  "problem": "unsatisfied-apt-dependencies"
}

Dependencies

~11–43MB
~653K SLoC