Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
## how to use
## ./dci-rhel-agent.sh <command>
function build() {
podman build -f Dockerfile -t dci-rhel-agent --no-cache
}
function run() {
@hguemar
hguemar / triage_bug_drop_py2removal.py
Created January 23, 2019 07:23
Triage fedora tracking tickets for py2 removal using rdoinfo to sort tickets relevant to RDO
#! /usr/bin/python3
import functools
import os.path
import bugzilla
from distroinfo.info import DistroInfo
URL = 'https://bugzilla.redhat.com'
TICKET = '1625773'
RDOINFO_RAW_URL = \
@hguemar
hguemar / register_pkgs.py
Created July 23, 2018 10:33
Register RDO packages in CBS tags
#! /usr/bin/python3
import koji
import os
import rdoinfo
import six
import sys
def get_build_tags(info, release):
#! /usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#! /bin/bash
REPLICATION_HOME=/home/gerrit
MISSING_LOG=$REPLICATION_HOME/missing.log
MISSING_CONFIG=$REPLICATION_HOME/missing.config
for i in $REPLICATION_HOME/.ssh/*key; do
key=`basename $i`
project=${key//.key}
grep $project replication.config &>/dev/null || echo "missing project: $project" > $MISSING_LOG
#! /bin/bash
set -x
GH_API_KEY=
RPMF_HOST=review.rdoproject.org
EMAIL=hguemar@fedoraproject.org
GERRIT_USER=hguemar
GERRIT_PASS=
GERRIT_ADMIN_PASS=
#! /usr/bin/python3
import argparse
from operator import attrgetter
import os
import sys
from github import Github
def main():
#!/usr/bin/expect -f
spawn rpm --addsign {*}$argv
expect -exact "Enter pass phrase: "
send -- "Secret passphrase\r"
expect eof
#! /bin/bash
#set -ex
SF_URL=https://review.rdoproject.org
SF_PWD=REPLACE_ME
RDOINFO=~/rdoinfo
# Retrieve list of registered users
registered_users=`sfmanager --url $SF_URL --auth admin:$SF_PWD membership list`