Skip to content

Instantly share code, notes, and snippets.

View scoheb's full-sized avatar

Scott Hebert scoheb

  • Red Hat
  • Montreal, Canada
View GitHub Profile
import os
import textwrap
from smtplib import SMTP
import jira
from common import backlog_managers, search, send_mail, unique
query = """
"Parent Link" = RHTAP-990 AND status != Closed ORDER BY key DESC
@scoheb
scoheb / gist:3199e3e125186c2cce5efd750feb26f1
Created February 29, 2024 17:42
disable and delete deployments
#!/usr/bin/env bash
#set -x
namespace_list=("rhtas-tenant")
##namespace_list=($(oc get namespaces --no-headers | grep '\-tenant' | cut -f1 -d" "))
for ns in "${namespace_list[@]}"
do
echo "tenant: $ns"
oc project $ns 2> /dev/null
shebert@toolbox~/work/llama.cpp:master$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy==1.24.4 (from -r requirements.txt (line 1))
Downloading numpy-1.24.4.tar.gz (10.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 6.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
import com.redhat.cpaas.pipeline.actuators.IndexImagesCreator
import com.redhat.cpaas.pipeline.model.ActuatorData
import com.redhat.cpaas.pipeline.model.MSAddonImageSet
import com.redhat.cpaas.pipeline.BrewUtils;
import com.redhat.cpaas.pipeline.CIMessageFactory
import com.redhat.cpaas.pipeline.CIMessageFromTest
import com.redhat.cpaas.pipeline.CIMessageGreenwave
String getNVR(String nvrOverride) {
{
"sum_layer_size_bytes": 204745821,
"Time": "2019-09-27T18:43:15",
"certification_status": "FAIL",
"openscap_version": "1.2.17-2.el7",
"Scanner": "isv_reporting",
"UUID": "/scanin/33cbfe9d2324657e407314d8dfdf7f0ffcc9a5a80217c4ebde6c867e28799f06",
"Scan Type": "all",
"raw_data": {
"apb_yaml": "None",
{
"sum_layer_size_bytes": 204745821,
"Time": "2019-09-19T12:37:24",
"certification_status": "FAIL",
"openscap_version": "1.2.17-2.el7",
"Scanner": "isv_reporting",
"UUID": "/scanin/33cbfe9d2324657e407314d8dfdf7f0ffcc9a5a80217c4ebde6c867e28799f06",
"Scan Type": "all",
"raw_data": {
"apb_yaml": "None",
{
"sum_layer_size_bytes": "132005889",
"Time": "2019-09-13T15:43:48",
"certification_status": "FAIL",
"openscap_version": "1.2.17-4.el7",
"Scanner": "isv_reporting",
"UUID": "/scanin/0ad546a107ee845ad7a9ff94a9e2896e6af28fa87c1844ab5c6406f3a76fa6a6",
"Scan Type": "all",
"raw_data": {
"apb_yaml": "None",
{"builds":[{"build_args":{"arches":"x86_64 s390x ppc64le","branch":"extras-rhel-7.6","commit":"8614a40bd9d01571d521f5b87954947d1c8bbe33","original_parent":null,"renewed_odcs_compose_ids":null,"repository":"containers/rhel-server","target":"guest-rhel-7.6-containers-candidate"},"build_id":20762673,"dep_on":null,"dep_on_id":null,"event_id":8717,"id":13023,"name":"rhel-server-container","odcs_composes":[81135],"original_nvr":"rhel-server-container-7.6-202","rebuilt_nvr":"rhel-server-container-7.6-202.1553789841","state":1,"state_name":"DONE","state_reason":"Built successfully.","time_completed":"2019-03-28T17:04:30Z","time_submitted":"2019-03-28T16:17:21Z","type":1,"type_name":"IMAGE","url":"/api/1/builds/13023"},{"build_args":{"arches":"x86_64","branch":"rh-amqstreams-1.1-stunnelbase-openshift-rhel-7","commit":"b86cea6bca0e4cd5c7a2a45f7ece8ce4a1a95de3","original_parent":"rhel-server-container-7.6-202","renewed_odcs_compose_ids":[75062],"repository":"containers/amqstreams-1","target":"rh-amqstreams-1.1-rhel-7-co
{"builds":[{"build_args":{"arches":"x86_64 ppc64le","branch":"rhaos-3.11-rhel-7","commit":"7254f28765471da537236fdf5899ddfa312b8a96","original_parent":"rhel-server-container-7.6-151","renewed_odcs_compose_ids":null,"repository":"containers/logging-fluentd","target":"rhaos-3.11-rhel-7-containers-candidate"},"build_id":20270298,"dep_on":"rhel-server-container","dep_on_id":11446,"event_id":3909,"id":11527,"name":"logging-fluentd-container","odcs_composes":[63431],"original_nvr":"logging-fluentd-container-v3.11.69-6","rebuilt_nvr":"logging-fluentd-container-v3.11.69-6.1550575876","state":1,"state_name":"DONE","state_reason":"Built successfully.","time_completed":"2019-02-19T12:49:01Z","time_submitted":"2019-02-19T11:31:16Z","type":1,"type_name":"IMAGE","url":"/api/1/builds/11527"},{"build_args":{"arches":"x86_64","branch":"rhmap-4.7-rhel-7","commit":"bce3cba05f2812b8fe078d24fe64335015e282bc","original_parent":"rhel-server-container-7.6-151","renewed_odcs_compose_ids":[51088,51103],"repository":"containers/rhmap-m
pipeline {
agent {
kubernetes {
cloud 'openshift'
label 'my-label'
serviceAccount 'jenkins'
defaultContainer 'jnlp'
yaml """
apiVersion: v1
kind: Pod