Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-tasty for openSUSE:Factory checked in at 2026-11-06 19:50:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-tasty (Old) and /work/SRC/openSUSE:Factory/.ghc-tasty.new.3759290 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-tasty" Fri Nov 6 19:50:11 2026 rev:18 rq:1395569 version:1.5.5 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-tasty/ghc-tasty.changes 2026-06-10 16:11:00.053094584 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-tasty.new.3759290/ghc-tasty.changes 2026-11-06 19:57:17.713469767 +0100 @@ -1,0 +2,24 @@ +Tue Oct 20 23:13:54 UTC 2026 - Peter Simons <[email protected]> + +- Update tasty to version 1.5.5. + Version 1.5.5 + -------------- + + _2025-10-30_ + + * Revert making `-j` to entail `+RTS -N` automatically, restoring + the behaviour from `tasty-1.5.3` and earlier + ([#485](https://github.com/UnkindPartition/tasty/pull/485)). + * Ensure that disabling `--ansi-tricks` disables + terminal width detection via ANSI tricks and disables + attempts to hide / show the cursor + ([#477](https://github.com/UnkindPartition/tasty/pull/477), + [#481](https://github.com/UnkindPartition/tasty/pull/481)). + +------------------------------------------------------------------- +Mon Sep 28 20:19:07 UTC 2026 - Peter Simons <[email protected]> + +- Update tasty to version 1.5.4 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- Old: ---- tasty-1.5.4.tar.gz New: ---- tasty-1.5.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-tasty.spec ++++++ --- /var/tmp/diff_new_pack.EEM93c/_old 2026-11-06 19:57:19.059526113 +0100 +++ /var/tmp/diff_new_pack.EEM93c/_new 2026-11-06 19:57:19.061526197 +0100 @@ -19,7 +19,7 @@ %global pkg_name tasty %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} -Version: 1.5.4 +Version: 1.5.5 Release: 0 Summary: Modern and extensible testing framework License: MIT @@ -39,6 +39,8 @@ BuildRequires: ghc-stm-prof BuildRequires: ghc-tagged-devel BuildRequires: ghc-tagged-prof +BuildRequires: ghc-terminal-size-devel +BuildRequires: ghc-terminal-size-prof BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-prof BuildRequires: ghc-unix-devel ++++++ tasty-1.5.4.tar.gz -> tasty-1.5.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/CHANGELOG.md new/tasty-1.5.5/CHANGELOG.md --- old/tasty-1.5.4/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,20 @@ Changes ======= +Version 1.5.5 +-------------- + +_2025-10-30_ + +* Revert making `-j` to entail `+RTS -N` automatically, restoring + the behaviour from `tasty-1.5.3` and earlier + ([#485](https://github.com/UnkindPartition/tasty/pull/485)). +* Ensure that disabling `--ansi-tricks` disables + terminal width detection via ANSI tricks and disables + attempts to hide / show the cursor + ([#477](https://github.com/UnkindPartition/tasty/pull/477), + [#481](https://github.com/UnkindPartition/tasty/pull/481)). + Version 1.5.4 -------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/Test/Tasty/Ingredients/ConsoleReporter.hs new/tasty-1.5.5/Test/Tasty/Ingredients/ConsoleReporter.hs --- old/tasty-1.5.4/Test/Tasty/Ingredients/ConsoleReporter.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/Test/Tasty/Ingredients/ConsoleReporter.hs 2001-09-09 03:46:40.000000000 +0200 @@ -68,6 +68,10 @@ #endif import System.IO.Unsafe +#if defined(MIN_VERSION_terminal_size) +import qualified System.Console.Terminal.Size as TermSize +#endif + -------------------------------------------------- -- TestOutput base definitions -------------------------------------------------- @@ -130,11 +134,19 @@ -- to avoid unsafePerformIO. -- (We cannot add another argument to 'buildTestOutput' -- in the middle of tasty-1.5 series, because it is exported) -terminalWidth :: Maybe Int -terminalWidth = unsafePerformIO $ do - isTerminalStdin <- hIsTerminalDevice stdin - if isTerminalStdin - then fmap (fmap snd) getTerminalSize +terminalWidth :: Bool -> Maybe Int +terminalWidth isTermWithTricks = unsafePerformIO $ do + if isTermWithTricks + then do + isTerminalStdin <- hIsTerminalDevice stdin + if isTerminalStdin + then +#if defined(MIN_VERSION_terminal_size) + fmap (fmap TermSize.width) TermSize.size +#else + fmap (fmap snd) getTerminalSize +#endif + else pure Nothing else pure Nothing {-# NOINLINE terminalWidth #-} @@ -155,7 +167,8 @@ let -- Do not retain the reference to the tree more than necessary !rawAlignment = computeAlignment opts tree - !alignment = case terminalWidth of + !(AnsiTricks isTermWithTricks) = lookupOption opts + !alignment = case terminalWidth isTermWithTricks of Nothing -> rawAlignment Just width -> min (width - approxMaxResultShortDescriptionWidth) rawAlignment @@ -587,7 +600,7 @@ isTerm <- hSupportsANSI stdout isTermColor <- hSupportsANSIColor stdout - (\k -> if isTerm + (\k -> if isTerm && ansiTricks -- When killing with Ctrl+C 'showCursor' can fail -- to restore terminal cursor if not flushed explicitly then (do hideCursor; k) `finally` (do showCursor; hFlush stdout) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/Test/Tasty/Options/Core.hs new/tasty-1.5.5/Test/Tasty/Options/Core.hs --- old/tasty-1.5.4/Test/Tasty/Options/Core.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/Test/Tasty/Options/Core.hs 2001-09-09 03:46:40.000000000 +0200 @@ -20,8 +20,6 @@ #if !MIN_VERSION_base(4,11,0) import Data.Monoid #endif -import Control.Concurrent -import System.IO.Unsafe import Test.Tasty.Options import Test.Tasty.Patterns @@ -39,13 +37,12 @@ newtype NumThreads = NumThreads { getNumThreads :: Int } deriving (Eq, Ord, Num) instance IsOption NumThreads where - defaultValue = unsafePerformIO $ NumThreads <$> - if rtsSupportsBoundThreads then getNumProcessors else pure 1 + defaultValue = NumThreads numCapabilities parseValue = mfilter onlyPositive . fmap NumThreads . safeRead optionName = return "num-threads" optionHelp = return "Number of threads to use for tests execution" optionCLParser = mkOptionCLParser (short 'j' <> metavar "NUMBER") - showDefaultValue _ = Just "Number of cores when using threaded RTS, 1 for non-threaded" + showDefaultValue _ = Just "# of cores/capabilities" -- | Filtering function to prevent non-positive number of threads onlyPositive :: NumThreads -> Bool diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/Test/Tasty/Parallel.hs new/tasty-1.5.5/Test/Tasty/Parallel.hs --- old/tasty-1.5.4/Test/Tasty/Parallel.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/Test/Tasty/Parallel.hs 2001-09-09 03:46:40.000000000 +0200 @@ -41,12 +41,6 @@ -- actions themselves. Any exceptions that reach this function or its -- threads are by definition unexpected. runInParallel nthreads actions = do - -- When linked with threaded RTS, ensure we have enough Capabilities - -- so that all Haskell worker threads can truly run in parallel. - when rtsSupportsBoundThreads $ do - ncap <- getNumCapabilities - when (ncap < nthreads) $ setNumCapabilities nthreads - callingThread <- myThreadId -- Don't let the main thread be garbage-collected diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/Test/Tasty/Run.hs new/tasty-1.5.5/Test/Tasty/Run.hs --- old/tasty-1.5.4/Test/Tasty/Run.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/Test/Tasty/Run.hs 2001-09-09 03:46:40.000000000 +0200 @@ -22,9 +22,9 @@ import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reader (ReaderT(..), local, ask) import Control.Monad.Trans.Writer (execWriterT, tell) -import Control.Concurrent -import Control.Concurrent.STM -import Control.Concurrent.Async +import Control.Concurrent (threadDelay) +import Control.Concurrent.STM (TVar, STM, check, readTVar, writeTVar, atomically, retry, throwSTM, newTVarIO) +import Control.Concurrent.Async (wait, asyncThreadId, withAsync) import Control.Exception as E import Control.Arrow import Data.Monoid (First(..)) @@ -436,7 +436,7 @@ TGroup _ trees -> mconcat (map collectFinalizers trees) TAction _ -> mempty - goSeqGroup + goSeqGroup :: DependencyType -> Seq Dependency -> Tr diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/Test/Tasty/Runners/Utils.hs new/tasty-1.5.5/Test/Tasty/Runners/Utils.hs --- old/tasty-1.5.4/Test/Tasty/Runners/Utils.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/Test/Tasty/Runners/Utils.hs 2001-09-09 03:46:40.000000000 +0200 @@ -4,8 +4,6 @@ module Test.Tasty.Runners.Utils where import Control.Exception -import Control.Concurrent (mkWeakThreadId, myThreadId) -import Control.Monad (forM_) import Text.Printf import Foreign.C (CInt) @@ -27,6 +25,8 @@ #endif #if INSTALL_HANDLERS +import Control.Concurrent (mkWeakThreadId, myThreadId) +import Control.Monad (forM_) import System.Posix.Signals import System.Mem.Weak (deRefWeak) #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-1.5.4/tasty.cabal new/tasty-1.5.5/tasty.cabal --- old/tasty-1.5.4/tasty.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-1.5.5/tasty.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,6 @@ cabal-version: >=1.10 name: tasty -version: 1.5.4 +version: 1.5.5 synopsis: Modern and extensible testing framework description: Tasty is a modern testing framework for Haskell. It lets you combine your unit tests, golden @@ -27,6 +27,11 @@ Depend on the unix package to install signal handlers default: True +flag terminal-size + description: + Depend on the terminal-size package to get terminal size + default: True + library exposed-modules: Test.Tasty @@ -63,10 +68,14 @@ stm >= 2.3 && < 2.6, containers >= 0.5.8 && < 0.9, transformers >= 0.5 && < 0.7, - tagged >= 0.5 && < 0.9, + tagged >= 0.5 && < 0.10, optparse-applicative >= 0.14 && < 0.20, ansi-terminal >= 0.9 && < 1.2 + if flag(terminal-size) && !arch(wasm32) + build-depends: + terminal-size >= 0.3 && < 0.4 + -- No reason to depend on unbounded-delays on 64-bit architecture if(!arch(x86_64) && !arch(aarch64) && !arch(ppc64le) && !arch(ppc64) && !arch(s390x) && !arch(riscv64) && !arch(loongarch64)) build-depends:
