Branch: refs/heads/build-ng
  Home:   https://github.com/NixOS/hydra
  Commit: 4d26546d3c137cf4afb2403c60c28a1053599894
      
https://github.com/NixOS/hydra/commit/4d26546d3c137cf4afb2403c60c28a1053599894
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-07-31 (Fri, 31 Jul 2015)

  Changed paths:
    M src/hydra-queue-runner/build-result.cc
    M src/hydra-queue-runner/build-result.hh
    M src/hydra-queue-runner/hydra-queue-runner.cc
    M src/hydra-queue-runner/queue-monitor.cc
    M src/hydra-queue-runner/state.hh
    M src/lib/Hydra/Controller/Job.pm
    A src/lib/Hydra/Schema/BuildMetrics.pm
    M src/lib/Hydra/Schema/Builds.pm
    M src/lib/Hydra/Schema/Jobs.pm
    M src/lib/Hydra/Schema/Jobsets.pm
    M src/lib/Hydra/Schema/Projects.pm
    M src/root/build.tt
    M src/root/common.tt
    M src/root/job.tt
    A src/root/metric.tt
    M src/root/static/css/hydra.css
    M src/sql/hydra.sql
    A src/sql/upgrade-39.sql

  Log Message:
  -----------
  Add support for tracking custom metrics

Builds can now emit metrics that Hydra will store in its database and
render as time series via flot charts. Typical applications are to
keep track of performance indicators, coverage percentages, artifact
sizes, and so on.

For example, a coverage build can emit the coverage percentage as
follows:

  echo "lineCoverage $pct %" > $out/nix-support/hydra-metrics

Graphs of all metrics for a job can be seen at

  http://.../job/<project>/<jobset>/<job>#tabs-charts

Specific metrics are also visible at

  http://.../job/<project>/<jobset>/<job>/metric/<metric>

The latter URL also allows getting the data in JSON format (e.g. via
"curl -H 'Accept: application/json'").


_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to