Skip to content

[CI] Silent test-suite fails on Windows #10189

Open
@jasagredo

Description

@jasagredo

Describe the bug
In the test: PackageTests\Regression\T5309\cabal.test.hs

The command

*** Exception: Command "D:\a\cabal\cabal\dist-newstyle-validate-ghc-9.10.1\build\x86_64-windows\ghc-9.10.1\cabal-install-3.13.0.0\x\cabal\build\cabal\cabal.exe" "v2-test" "-vverbose +markoutput +nowrap" "--builddir" "C:\Users\runneradmin\AppData\Local\Temp\cabal-testsuite-34792\cabal.dist\work\.\dist" "-j1" "--package-db=D:\a\cabal\cabal\testdb\intree\store\ghc-9.10.1-c219\package.db" "--package-db=D:\a\cabal\cabal\testdb\intree\dist-newstyle\packagedb\ghc-9.10.1" "all" "--test-show-details=direct" failed.

which should produce some output directly on the screen (because of "--test-show-details=direct") shows no output and just fails, making the test fail on CI. On my machine this test passes succesfully. I'm not sure how one could debug this (perhaps with a tmate action into the machine).

I have observed in the past that sometimes if a library is missing the testsuite fails to execute without any message to the screen, perhaps that is the case.

To Reproduce

https://github.com/haskell/cabal/actions/runs/9848153818/job/27189577694?pr=10186

System information

  • Operating system: GHA windows-2022 20240630.1.0
  • cabal, ghc versions: cabal 3.12.1.0, GHC 9.10.1 and 9.6.4 observed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions