Module report

Module report 

Source
Expand description

HTML build report generation.

This module generates HTML reports summarizing build results. Reports include:

  • Summary statistics (succeeded, failed, skipped counts)
  • Failed packages with links to build logs
  • Skipped packages with reasons
  • Successfully built packages with build times

§Usage

use bob::{write_html_report, Database};
use std::path::Path;

let logdir = Path::new("/data/bob/logs");
write_html_report(db, logdir, &logdir.join("report.html"))?;

§Report Structure

The generated HTML report is self-contained with embedded CSS and JavaScript. Tables are sortable by clicking column headers.

§Failed Packages Section

Shows packages that failed to build, sorted by the number of other packages they block. Each entry includes:

  • Package name and path
  • Number of packages blocked by this failure
  • The build phase where failure occurred
  • Links to individual phase logs

§Skipped Packages Section

Shows packages that were not built, with the reason for skipping (e.g., “Dependency X failed”, “up-to-date”).

§Successful Packages Section

Shows all successfully built packages with their build duration.

Functions§

write_html_report
Generate an HTML build report from database.