[Piuparts-commits] [piuparts] 01/03: Rename reporting-sections to json-sections

Holger Levsen holger at moszumanska.debian.org
Sun Jun 22 09:24:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 835bf5ce56083fd2a5e15b1674b08589ee4d9274
Author: David Steele <dsteele at gmail.com>
Date:   Sat Jun 21 18:40:30 2014 -0400

    Rename reporting-sections to json-sections
    
    ... to make the role more clear - it assigns sections to summary.json
    categories.
---
 README_server.txt         |  8 ++++----
 piuparts-report.py        |  4 ++--
 piupartslib/pkgsummary.py | 10 +++++-----
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/README_server.txt b/README_server.txt
index 372018b..8c618ff 100644
--- a/README_server.txt
+++ b/README_server.txt
@@ -511,14 +511,14 @@ section, too, and will serve as defaults for all other sections
  rescheduling one of passed or failed logs, set the corresponding
  -count variable to zero.
 
-* "reporting-sections" is a space-separated list of the
+* "json-sections" is a space-separated list of the
  section/distribution names which receive test results for this
  section. The results, by package, are stored with this name/these
  names in the section and global test summary.json files. If
- "reporting-sections" is undefined, or defined as "default", piuparts
+ "json-sections" is undefined, or defined as "default", piuparts
  will assign the section to one of "unstable", "testing", "stable",
- "oldstable", "experimental", or "unknown". If "reporting-sections"
- is "none", the summary will not be created. The "reporting-sections"
+ "oldstable", "experimental", or "unknown". If "json-sections"
+ is "none", the summary will not be created. The "json-sections"
  name "overall" is reserved.
 
 Some of the configuration items are not required, but it is best
diff --git a/piuparts-report.py b/piuparts-report.py
index d736a90..89671bb 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -501,7 +501,7 @@ class Config(piupartslib.conf.Config):
                 "max-reserved": 1,
                 "doc-root": "/",
                 "known-problem-directory": "@sharedir@/piuparts/known_problems",
-                "reporting-sections": "default",
+                "json-sections": "default",
                 "precedence": 1,
                 "web-host": "piuparts.debian.org",
             },
@@ -1475,7 +1475,7 @@ class Section:
         if os.path.isfile(summary_path):
             os.unlink(summary_path)
 
-        reporting_sections = self._config['reporting-sections'].split()
+        reporting_sections = self._config['json-sections'].split()
         if not reporting_sections or reporting_sections[0] == 'default':
             reporting_sections = [self._config.get_std_distro()]
 
diff --git a/piupartslib/pkgsummary.py b/piupartslib/pkgsummary.py
index be7407e..8ac4b33 100644
--- a/piupartslib/pkgsummary.py
+++ b/piupartslib/pkgsummary.py
@@ -65,7 +65,7 @@
 #
 #
 # The packages are listed by source package. E.g. "unstable" here is a
-# reporting-section (see README_server.txt). The single character flags are
+# json-section (see README_server.txt). The single character flags are
 # defined below. The number is the number of packages which
 # are blocked from testing due to a failed package. The URL is a human
 # friendly page for inspecting the results for that package/distribution.
@@ -73,12 +73,12 @@
 # Binary package results are combined into source package results. The 'worst'
 # flag in the group is reported ("F" is worst overall).
 #
-# For the global summary, the packages 'worst' result across reporting-sections
+# For the global summary, the packages 'worst' result across json-sections
 # is used. In the case of a tie, the more-important-precedence
-# section/reporting-section result is used.
+# section/json-section result is used.
 #
-# The global file also includes an 'overall' reporting-section, which contains
-# the 'worst' result across the other reporting-sections.
+# The global file also includes an 'overall' json-section, which contains
+# the 'worst' result across the other json-sections.
 
 
 import json

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list