From c421a267956d6d5b97126bb92f6fa178c5ad65ea Mon Sep 17 00:00:00 2001 From: Sandro Date: Oct 20 2022 22:18:08 +0000 Subject: Disable "Building the Outer Ring" badges This is temporary in an attempt to see if it removes pressure on the message queue. Signed-off-by: Sandro --- diff --git a/rules/copr-build-01.yml b/rules/copr-build-01.yml deleted file mode 100644 index 16a1e83..0000000 --- a/rules/copr-build-01.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build I) -description: Successfully completed a copr build -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 1 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-01.yml.disabled b/rules/copr-build-01.yml.disabled new file mode 100644 index 0000000..16a1e83 --- /dev/null +++ b/rules/copr-build-01.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build I) +description: Successfully completed a copr build +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 1 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-02.yml b/rules/copr-build-02.yml deleted file mode 100644 index 8ba312e..0000000 --- a/rules/copr-build-02.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build II) -description: Successfully completed 20 copr builds -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-20.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 20 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-02.yml.disabled b/rules/copr-build-02.yml.disabled new file mode 100644 index 0000000..8ba312e --- /dev/null +++ b/rules/copr-build-02.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build II) +description: Successfully completed 20 copr builds +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-20.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 20 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-03.yml b/rules/copr-build-03.yml deleted file mode 100644 index 6803e74..0000000 --- a/rules/copr-build-03.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build III) -description: Successfully completed 60 copr builds -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-60.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 60 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-03.yml.disabled b/rules/copr-build-03.yml.disabled new file mode 100644 index 0000000..6803e74 --- /dev/null +++ b/rules/copr-build-03.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build III) +description: Successfully completed 60 copr builds +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-60.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 60 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-04.yml b/rules/copr-build-04.yml deleted file mode 100644 index 80e270a..0000000 --- a/rules/copr-build-04.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build IV) -description: Successfully completed 90 copr builds -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-90.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 90 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-04.yml.disabled b/rules/copr-build-04.yml.disabled new file mode 100644 index 0000000..80e270a --- /dev/null +++ b/rules/copr-build-04.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build IV) +description: Successfully completed 90 copr builds +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-90.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 90 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-05.yml b/rules/copr-build-05.yml deleted file mode 100644 index 5feb572..0000000 --- a/rules/copr-build-05.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build V) -description: Successfully completed 150 copr builds -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-150.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 150 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-05.yml.disabled b/rules/copr-build-05.yml.disabled new file mode 100644 index 0000000..5feb572 --- /dev/null +++ b/rules/copr-build-05.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build V) +description: Successfully completed 150 copr builds +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-150.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 150 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-06.yml b/rules/copr-build-06.yml deleted file mode 100644 index 76e4d5b..0000000 --- a/rules/copr-build-06.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build VI) -description: Successfully completed 300 copr builds -creator: ralph -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-300.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 300 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-06.yml.disabled b/rules/copr-build-06.yml.disabled new file mode 100644 index 0000000..76e4d5b --- /dev/null +++ b/rules/copr-build-06.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build VI) +description: Successfully completed 300 copr builds +creator: ralph +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-300.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 300 + +recipient: "%(msg.user)s" diff --git a/rules/copr-build-07.yml b/rules/copr-build-07.yml deleted file mode 100644 index 85611d1..0000000 --- a/rules/copr-build-07.yml +++ /dev/null @@ -1,32 +0,0 @@ -%YAML 1.2 ---- - -name: Building the Outer Ring (Copr Build VII) -description: Successfully completed 999 copr builds -creator: churchyard -discussion: https://pagure.io/design/issue/212 -image_url: https://badges.fedoraproject.org/pngs/copr-build-999.png -issuer_id: fedora-project - -# We'll perform our more costly check (defined below) only when -# we receive messages that match this 'trigger' -trigger: - all: - - topic: copr.build.end - - lambda: msg.get('msg', {}).get('status', None) is 1 - -# Once the check has been triggered, this defines what we actually check. -criteria: - datanommer: - filter: - topics: - - "%(topic)s" # The topic of the message that triggered us. - users: - - "%(msg.user)s" # The user that was created. - rows_per_page: 9999999 - operation: - lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) - condition: - greater than or equal to: 999 - -recipient: "%(msg.user)s" diff --git a/rules/copr-build-07.yml.disabled b/rules/copr-build-07.yml.disabled new file mode 100644 index 0000000..85611d1 --- /dev/null +++ b/rules/copr-build-07.yml.disabled @@ -0,0 +1,32 @@ +%YAML 1.2 +--- + +name: Building the Outer Ring (Copr Build VII) +description: Successfully completed 999 copr builds +creator: churchyard +discussion: https://pagure.io/design/issue/212 +image_url: https://badges.fedoraproject.org/pngs/copr-build-999.png +issuer_id: fedora-project + +# We'll perform our more costly check (defined below) only when +# we receive messages that match this 'trigger' +trigger: + all: + - topic: copr.build.end + - lambda: msg.get('msg', {}).get('status', None) is 1 + +# Once the check has been triggered, this defines what we actually check. +criteria: + datanommer: + filter: + topics: + - "%(topic)s" # The topic of the message that triggered us. + users: + - "%(msg.user)s" # The user that was created. + rows_per_page: 9999999 + operation: + lambda: sum(1 for msg in query.all() if msg.msg['status'] is 1) + condition: + greater than or equal to: 999 + +recipient: "%(msg.user)s"