Hello community,

here is the log from the commit of package cvise for openSUSE:Factory checked 
in at 2020-10-30 11:49:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cvise (Old)
 and      /work/SRC/openSUSE:Factory/.cvise.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cvise"

Fri Oct 30 11:49:10 2020 rev:18 rq:844890 version:1.8.0+git.20201029.d32ab1b

Changes:
--------
--- /work/SRC/openSUSE:Factory/cvise/cvise.changes      2020-10-22 
14:26:48.802994341 +0200
+++ /work/SRC/openSUSE:Factory/.cvise.new.3463/cvise.changes    2020-10-30 
11:50:07.673838043 +0100
@@ -1,0 +2,8 @@
+Thu Oct 29 14:45:05 UTC 2020 - mli...@suse.cz
+
+- Update to version 1.8.0+git.20201029.d32ab1b:
+  * Fix verbose output for sanity check.
+  * Improve wording for transformation opportunities.
+  * Improve debugging for InsaneTestCaseError.
+
+-------------------------------------------------------------------

Old:
----
  cvise-1.8.0+git.20201021.07d465a.tar.xz

New:
----
  cvise-1.8.0+git.20201029.d32ab1b.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cvise.spec ++++++
--- /var/tmp/diff_new_pack.BBbvw0/_old  2020-10-30 11:50:08.217838525 +0100
+++ /var/tmp/diff_new_pack.BBbvw0/_new  2020-10-30 11:50:08.221838529 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           cvise
-Version:        1.8.0+git.20201021.07d465a
+Version:        1.8.0+git.20201029.d32ab1b
 Release:        0
 Summary:        Super-parallel Python port of the C-Reduce
 License:        BSD-3-Clause

++++++ cvise-1.8.0+git.20201021.07d465a.tar.xz -> 
cvise-1.8.0+git.20201029.d32ab1b.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cvise-1.8.0+git.20201021.07d465a/cvise/cvise.py 
new/cvise-1.8.0+git.20201029.d32ab1b/cvise/cvise.py
--- old/cvise-1.8.0+git.20201021.07d465a/cvise/cvise.py 2020-10-21 
17:18:17.000000000 +0200
+++ new/cvise-1.8.0+git.20201029.d32ab1b/cvise/cvise.py 2020-10-29 
15:42:39.000000000 +0100
@@ -108,7 +108,7 @@
 
     def reduce(self, pass_group, skip_initial=False):
         self._check_prerequisites(pass_group)
-        self.test_manager.check_sanity()
+        self.test_manager.check_sanity(True)
 
         logging.info("===< {} >===".format(os.getpid()))
         logging.info("running {} interestingness test{} in 
parallel".format(self.test_manager.parallel_tests,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cvise-1.8.0+git.20201021.07d465a/cvise/passes/clangbinarysearch.py 
new/cvise-1.8.0+git.20201029.d32ab1b/cvise/passes/clangbinarysearch.py
--- old/cvise-1.8.0+git.20201021.07d465a/cvise/passes/clangbinarysearch.py      
2020-10-21 17:18:17.000000000 +0200
+++ new/cvise-1.8.0+git.20201029.d32ab1b/cvise/passes/clangbinarysearch.py      
2020-10-29 15:42:39.000000000 +0100
@@ -24,8 +24,8 @@
             if instances > best_count:
                 best = std
                 best_count = instances
-            logging.debug('available instances for %s: %d, took: %.2f s' % 
(std, instances, took))
-        logging.info('using C++ standard: %s with %d instances' % (best, 
best_count))
+            logging.debug('available transformation opportunities for %s: %d, 
took: %.2f s' % (std, instances, took))
+        logging.info('using C++ standard: %s with %d transformation 
opportunities' % (best, best_count))
         self.clang_delta_std = best
 
     def new(self, test_case, _=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cvise-1.8.0+git.20201021.07d465a/cvise/utils/testing.py 
new/cvise-1.8.0+git.20201029.d32ab1b/cvise/utils/testing.py
--- old/cvise-1.8.0+git.20201021.07d465a/cvise/utils/testing.py 2020-10-21 
17:18:17.000000000 +0200
+++ new/cvise-1.8.0+git.20201029.d32ab1b/cvise/utils/testing.py 2020-10-29 
15:42:39.000000000 +0100
@@ -106,7 +106,7 @@
                 return self
 
             # run test script
-            self.exitcode = self.run_test()
+            self.exitcode = self.run_test(False)
             return self
         except OSError as e:
             # this can happen when we clean up temporary files for cancelled 
processes
@@ -117,11 +117,13 @@
         finally:
             return self
 
-    def run_test(self):
+    def run_test(self, verbose):
         try:
             os.chdir(self.folder)
-            _, _, returncode = 
ProcessEventNotifier(self.pid_queue).run_process(self.test_script, shell=True,
-                    stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+            stdout, stderr, returncode = 
ProcessEventNotifier(self.pid_queue).run_process(self.test_script, shell=True)
+            if verbose and returncode != 0:
+                logging.debug('stdout:\n' + stdout)
+                logging.debug('stderr:\n' + stderr)
         finally:
             os.chdir(self.pwd)
         return returncode
@@ -261,18 +263,20 @@
 
         return "".join(diffed_lines)
 
-    def check_sanity(self):
+    def check_sanity(self, verbose=False):
         logging.debug("perform sanity check... ")
 
         folder = tempfile.mkdtemp(prefix=self.TEMP_PREFIX)
         test_env = TestEnvironment(None, 0, self.test_script, folder, None, 
self.test_cases, None)
         logging.debug("sanity check tmpdir = {}".format(test_env.folder))
 
-        returncode = test_env.run_test()
-        rmfolder(folder)
+        returncode = test_env.run_test(verbose)
         if returncode == 0:
+            rmfolder(folder)
             logging.debug("sanity check successful")
         else:
+            if not self.save_temps:
+                rmfolder(folder)
             raise InsaneTestCaseError(self.test_cases, self.test_script)
 
     def release_folder(self, future):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cvise-1.8.0+git.20201021.07d465a/cvise.py 
new/cvise-1.8.0+git.20201029.d32ab1b/cvise.py
--- old/cvise-1.8.0+git.20201021.07d465a/cvise.py       2020-10-21 
17:18:17.000000000 +0200
+++ new/cvise-1.8.0+git.20201029.d32ab1b/cvise.py       2020-10-29 
15:42:39.000000000 +0100
@@ -152,7 +152,7 @@
     parser.add_argument("--die-on-pass-bug", action="store_true", 
default=False, help="Terminate C-Vise if a pass encounters an otherwise 
non-fatal problem")
     parser.add_argument("--sllooww", action="store_true", default=False, 
help="Try harder to reduce, but perhaps take a long time to do so")
     parser.add_argument("--also-interesting", metavar="EXIT_CODE", type=int, 
help="A process exit code (somewhere in the range 64-113 would be usual) that, 
when returned by the interestingness test, will cause C-Vise to save a copy of 
the variant")
-    parser.add_argument("--debug", action="store_true", default=False, 
help="Print debug information")
+    parser.add_argument("--debug", action="store_true", default=False, 
help="Print debug information (alias for --log-level=DEBUG)")
     parser.add_argument("--log-level", type=str, choices=["INFO", "DEBUG", 
"WARNING", "ERROR"], default="INFO", help="Define the verbosity of the logged 
events")
     parser.add_argument("--log-file", type=str, help="Log events into LOG_FILE 
instead of stderr. New events are appended to the end of the file")
     parser.add_argument("--no-give-up", action="store_true", default=False, 
help="Don't give up on a pass that hasn't made progress for {} 
iterations".format(testing.TestManager.GIVEUP_CONSTANT))


Reply via email to