From e0c0529a3ca1805ee1648e2aad24b3f8d5de4773 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 20 Nov 2014 11:49:48 +0100
Subject: [PATCH] Provide generic workflows
Add workflow for logger, mailx and reportuploader.
Disable Red Hat Support workflow.
---
po/POTFILES.in | 5 +++++
src/workflows/Makefile.am | 24 +++++++++++++++++++-----
src/workflows/report_logger.conf | 6 ++++++
src/workflows/report_mailx.conf | 6 ++++++
src/workflows/report_rhel.conf | 14 +++++++-------
src/workflows/report_uploader.conf | 6 ++++++
src/workflows/workflow_Logger.xml.in | 11 +++++++++++
src/workflows/workflow_LoggerCCpp.xml.in | 12 ++++++++++++
src/workflows/workflow_Mailx.xml.in | 11 +++++++++++
src/workflows/workflow_MailxCCpp.xml.in | 12 ++++++++++++
src/workflows/workflow_Upload.xml.in | 3 +--
src/workflows/workflow_UploadCCpp.xml.in | 12 ++++++++++++
12 files changed, 108 insertions(+), 14 deletions(-)
create mode 100644 src/workflows/report_logger.conf
create mode 100644 src/workflows/report_mailx.conf
create mode 100644 src/workflows/report_uploader.conf
create mode 100644 src/workflows/workflow_Logger.xml.in
create mode 100644 src/workflows/workflow_LoggerCCpp.xml.in
create mode 100644 src/workflows/workflow_Mailx.xml.in
create mode 100644 src/workflows/workflow_MailxCCpp.xml.in
create mode 100644 src/workflows/workflow_UploadCCpp.xml.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 26acba1..7ba080c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -55,6 +55,11 @@ src/workflows/workflow_FedoraVmcore.xml.in
src/workflows/workflow_FedoraXorg.xml.in
src/workflows/workflow_FedoraLibreport.xml.in
src/workflows/workflow_FedoraJava.xml.in
+src/workflows/workflow_LoggerCCpp.xml.in
+src/workflows/workflow_Logger.xml.in
+src/workflows/workflow_MailxCCpp.xml.in
+src/workflows/workflow_Mailx.xml.in
+src/workflows/workflow_UploadCCpp.xml.in
src/workflows/workflow_Upload.xml.in
src/workflows/workflow_RHELCCpp.xml.in
src/workflows/workflow_RHELKerneloops.xml.in
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
index 54a6f31..0fc1019 100644
--- a/src/workflows/Makefile.am
+++ b/src/workflows/Makefile.am
@@ -8,14 +8,19 @@ dist_workflows_DATA = \
workflow_FedoraXorg.xml \
workflow_FedoraLibreport.xml \
workflow_FedoraJava.xml \
- workflow_Upload.xml \
workflow_RHELCCpp.xml \
workflow_RHELKerneloops.xml \
workflow_RHELPython.xml \
workflow_RHELvmcore.xml \
workflow_RHELxorg.xml \
workflow_RHELLibreport.xml \
- workflow_RHELJava.xml
+ workflow_RHELJava.xml \
+ workflow_Mailx.xml \
+ workflow_MailxCCpp.xml \
+ workflow_Upload.xml \
+ workflow_UploadCCpp.xml \
+ workflow_Logger.xml \
+ workflow_LoggerCCpp.xml
if BUILD_BUGZILLA
dist_workflows_DATA += \
@@ -36,7 +41,10 @@ workflowsdefdir = $(WORKFLOWS_DEFINITION_DIR)
dist_workflowsdef_DATA =\
report_fedora.conf \
- report_rhel.conf
+ report_rhel.conf \
+ report_mailx.conf \
+ report_logger.conf \
+ report_uploader.conf
if BUILD_BUGZILLA
dist_workflowsdef_DATA += \
@@ -54,14 +62,20 @@ EXTRA_DIST = \
workflow_FedoraXorg.xml.in \
workflow_FedoraLibreport.xml.in \
workflow_FedoraJava.xml.in \
- workflow_Upload.xml.in \
workflow_RHELCCpp.xml.in \
workflow_RHELKerneloops.xml.in \
workflow_RHELPython.xml.in \
workflow_RHELvmcore.xml.in \
workflow_RHELxorg.xml.in \
workflow_RHELLibreport.xml.in \
- workflow_RHELJava.xml.in
+ workflow_RHELJava.xml.in \
+ workflow_Mailx.xml.in \
+ workflow_MailxCCpp.xml.in \
+ workflow_Upload.xml.in \
+ workflow_UploadCCpp.xml.in \
+ workflow_Logger.xml.in \
+ workflow_LoggerCCpp.xml.in
+
if BUILD_BUGZILLA
EXTRA_DIST += \
diff --git a/src/workflows/report_logger.conf b/src/workflows/report_logger.conf
new file mode 100644
index 0000000..06f28e1
--- /dev/null
+++ b/src/workflows/report_logger.conf
@@ -0,0 +1,6 @@
+EVENT=workflow_LoggerCCpp analyzer=CCpp
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_Logger analyzer!=CCpp
+# this must be changed with new workflow
diff --git a/src/workflows/report_mailx.conf b/src/workflows/report_mailx.conf
new file mode 100644
index 0000000..0e38e76
--- /dev/null
+++ b/src/workflows/report_mailx.conf
@@ -0,0 +1,6 @@
+EVENT=workflow_MailxCCpp analyzer=CCpp
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_Mailx analyzer!=CCpp
+# this must be changed with new workflow
diff --git a/src/workflows/report_rhel.conf b/src/workflows/report_rhel.conf
index 38ee231..d32bde4 100644
--- a/src/workflows/report_rhel.conf
+++ b/src/workflows/report_rhel.conf
@@ -1,27 +1,27 @@
-EVENT=workflow_RHELLibreport analyzer=libreport
+#EVENT=workflow_RHELLibreport analyzer=libreport
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELCCpp analyzer=CCpp
+#EVENT=workflow_RHELCCpp analyzer=CCpp
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELPython analyzer=Python component!=anaconda
+#EVENT=workflow_RHELPython analyzer=Python component!=anaconda
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELKerneloops analyzer=Kerneloops
+#EVENT=workflow_RHELKerneloops analyzer=Kerneloops
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELvmcore analyzer=vmcore
+#EVENT=workflow_RHELvmcore analyzer=vmcore
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELxorg analyzer=xorg
+#EVENT=workflow_RHELxorg analyzer=xorg
# this is just a meta event which consists of other events
# the list is defined in the xml file
-EVENT=workflow_RHELJava analyzer=Java
+#EVENT=workflow_RHELJava analyzer=Java
# this is just a meta event which consists of other events
# the list is defined in the xml file
diff --git a/src/workflows/report_uploader.conf b/src/workflows/report_uploader.conf
new file mode 100644
index 0000000..428fe9d
--- /dev/null
+++ b/src/workflows/report_uploader.conf
@@ -0,0 +1,6 @@
+EVENT=workflow_UploadCCpp analyzer=CCpp
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_Upload analyzer!=CCpp
+# this must be changed with new workflow
diff --git a/src/workflows/workflow_Logger.xml.in b/src/workflows/workflow_Logger.xml.in
new file mode 100644
index 0000000..3ffe878
--- /dev/null
+++ b/src/workflows/workflow_Logger.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+ <_name>Export the problem data information to a text file</_name>
+ <_description>Analyze the problem locally and export the problem data information to a text file</_description>
+ <priority>-99</priority>
+
+ <events>
+ <event>collect_*</event>
+ <event>report_Logger</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_LoggerCCpp.xml.in b/src/workflows/workflow_LoggerCCpp.xml.in
new file mode 100644
index 0000000..9a67e7e
--- /dev/null
+++ b/src/workflows/workflow_LoggerCCpp.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+ <_name>Export the problem data information to a text file</_name>
+ <_description>Analyze the problem locally and export the problem data information to a text file</_description>
+ <priority>-99</priority>
+
+ <events>
+ <event>collect_*</event>
+ <event>analyze_LocalGDB</event>
+ <event>report_Logger</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_Mailx.xml.in b/src/workflows/workflow_Mailx.xml.in
new file mode 100644
index 0000000..63bd576
--- /dev/null
+++ b/src/workflows/workflow_Mailx.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+ <_name>Send the problem data via email</_name>
+ <_description>Analyze the problem locally and send information via email</_description>
+ <priority>-99</priority>
+
+ <events>
+ <event>collect_*</event>
+ <event>report_Mailx</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_MailxCCpp.xml.in b/src/workflows/workflow_MailxCCpp.xml.in
new file mode 100644
index 0000000..7b5c9fc
--- /dev/null
+++ b/src/workflows/workflow_MailxCCpp.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+ <_name>Send the problem data via email</_name>
+ <_description>Analyze the problem locally and send information via email</_description>
+ <priority>-99</priority>
+
+ <events>
+ <event>collect_*</event>
+ <event>analyze_LocalGDB</event>
+ <event>report_Mailx</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_Upload.xml.in b/src/workflows/workflow_Upload.xml.in
index 3965f99..a0bc658 100644
--- a/src/workflows/workflow_Upload.xml.in
+++ b/src/workflows/workflow_Upload.xml.in
@@ -5,7 +5,6 @@
<events>
<event>collect_*</event>
- <event>analyze_CCpp</event>
<event>report_Uploader</event>
</events>
-</workflow>
\ No newline at end of file
+</workflow>
diff --git a/src/workflows/workflow_UploadCCpp.xml.in b/src/workflows/workflow_UploadCCpp.xml.in
new file mode 100644
index 0000000..fbb9a23
--- /dev/null
+++ b/src/workflows/workflow_UploadCCpp.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+ <_name>Upload the problem data to a server</_name>
+ <_description>Analyze the problem locally and upload the data via scp or ftp</_description>
+ <priority>-99</priority>
+
+ <events>
+ <event>collect_*</event>
+ <event>analyze_LocalGDB</event>
+ <event>report_Uploader</event>
+ </events>
+</workflow>
--
1.8.3.1