lp://staging/~pollinate/pollinate/trunk

Created by Dustin Kirkland  and last modified
Get this branch:
bzr branch lp://staging/~pollinate/pollinate/trunk
Members of pollinate can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
pollinate
Project:
pollinate
Status:
Development

Recent revisions

375. By Scott Moser

opening 4.34

374. By Scott Moser

releasing 4.33

373. By Scott Moser

pollinate: use systemd-detect-virt if available.

Previously code would use systemd-detect-virt if /run/systemd was
st directory. Testing found that /run/systemd existed in 14.04 environments
but systemd-detect-virt did not.

So, a better path is to just check for availability of systemd-detect-virt,
and use it if it is available.

372. By Scott Moser

pollinate: fix bug on xen when not booted with systemd.

When booted in xen without systemd, user-agent would contain
virt/virt/xen rather than virt/xen. The change here fixes that to now
report virt/xen.

371. By Scott Moser

opening 4.33

370. By Scott Moser

releasing 4.32

369. By Scott Moser

pollinate: include img/build_name/server in user-agent.

Ubuntu minimal images include build_name as 'minimal', so the
stated reason for not including 'server' is now invalid.

368. By Dustin Kirkland 

opening 4.32

367. By Dustin Kirkland 

releasing 4.31

366. By Scott Moser

pollinate: Speedups when collecting information for user-agent.

The primary win here is in reducing the number of calls to dpkg-query
from 3 (1 per package query) to 1. The other change is to reduce
invocations of uname from 3 to 1.

The net win depends really on how many packages are in the dpkg database.
Very unscientifically here are some results of 100 runs:
Inside a stock bionic container:
  # baseline (run 'sh -c :' instead of pollinate)
  # time sh -c 'i=0; while [ $i -lt 100 ] && i=$((i+1)); do sh -c :; done'
  real 0m0.067s user 0m0.062s sys 0m0.006s

  ## stock bionic container (~450 packages)
  # orig
  real 0m4.358s user 0m3.471s sys 0m1.109s
  # new
  real 0m2.567s user 0m2.126s sys 0m0.652s

  ## desktop system (bionic with ~ 3700 packages)
  # orig
  real 0m19.709s user 0m17.741s sys 0m2.294s
  # new
  real 0m7.335s user 0m6.642s sys 0m0.996s

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers