~aittner/canonical-server-hwe-utils:labkey-show-owner-tags

Last commit made on 2021-04-23
Get this branch:
git clone -b labkey-show-owner-tags https://git.launchpad.net/~aittner/canonical-server-hwe-utils
Only Alexandre Erwin Ittner can upload to this branch. If you are Alexandre Erwin Ittner please log in for upload directions.

Branch merges

Branch information

Name:
labkey-show-owner-tags
Repository:
lp:~aittner/canonical-server-hwe-utils

Recent commits

38d331f... by Alexandre Erwin Ittner

labkey: add command "show-owners"

This command will list the owner-* tags for all machines from a given
lab in a grep-friendly format.

In the simplest form, just show all owners:
    $ labkey show-owners 1ss

We can also use it for finding the machines assigned to a particular team:
    $ labkey show-owners 1ss | grep anbox

... or unowned machines:
    $ labkey show-owners 1ss | grep -v owner-

b9ef3a8... by dann frazier

labkey: Remove duplicate code, causing console to restart after exit

For the longest time I've been annoyed that I have to send console's
exit sequence (~.) twice to make it exit when called via labkey. I
just assumed there was some weird interaction between the labkey and
console process that caused it. Nope. I had literally just duplicated
the callout to console - presumably a debug cut & paste gone wrong.

28e824d... by dann frazier

installer-test-matrix: Add hirsute

8a537de... by Alexandre Erwin Ittner

Allow reading Atom feed data from standard input

Make parameter "-r" optional so, if not given, data will be read from
stdin. This allows the user to pipe data into the script and capture
the output with a single line:

curl http://user:pwd@jenkins-addr:8080/rssAll | ./jenkins-rss-to-trello-md.py | xsel -ib

2e04179... by dann frazier

pre-commit: Don't use mutable references

pre-commit complains about 'rev: master' not being supported:

[WARNING] The 'rev' field of repo 'https://github.com/psf/black' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.
[WARNING] The 'rev' field of repo 'https://gitlab.com/pycqa/flake8' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.

Apparently we should just run 'pre-commit autoupdate' periodically, and
commit the config it generates.

76adc6b... by dann frazier

installer-test-matrix: config.py: Add some explanatory comments

4466aa3... by dann frazier

installer-test-matrix: generate-matrix.py: Add a description to help text

7ea02ce... by dann frazier

installer-test-matrix: Add HWE option to focal config

df729f2... by dann frazier

jenkins-rss-to-trello-md.py: Initial commit

This tool is intended to help generate trello checklists for our weekly
scalebot job analysis rotations. The idea being that you can point it
at a copy of Jenkins' "Atom feed for just latest builds", and you'll
get some markdown you can cut & paste into a Trello checklist that has
clickable links, status info, etc.

4034518... by dann frazier

pre-commit: Use python3 instead of python3.8 for language_version

My system has upgraded to python3.9, other developers may still be on 3.8.