Opened 13 months ago

Last modified 13 months ago

#15587 new bug

traceEvent tests failing in slow validate

Reported by: osa1 Owned by: osa1
Priority: normal Milestone: 8.6.1
Component: Test Suite Version: 8.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D5119
Wiki Page:

Description

traceEvent tests are failing in slow validate when testing in GHCi way:

=====> traceEvent(ghci) 1 of 2 [0, 0, 0]
cd "rts/traceEvent.run" && "/home/omer/haskell/ghc/inplace/test   spaces/ghc-stage2" traceEvent.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output  --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -eventlog< traceEvent.genscript
Actual stderr output differs from expected:
diff -uw "rts/traceEvent.run/traceEvent.stderr.normalised" "rts/traceEvent.run/traceEvent.run.stderr.normalised"
--- rts/traceEvent.run/traceEvent.stderr.normalised     2018-08-31 12:48:13.548375420 +0300
+++ rts/traceEvent.run/traceEvent.run.stderr.normalised 2018-08-31 12:48:13.548375420 +0300
@@ -1 +0,0 @@
-traceEvent: Event size exceeds EVENT_PAYLOAD_SIZE_MAX, bail out
*** unexpected failure for traceEvent(ghci)
=====> traceBinaryEvent(ghci) 2 of 2 [0, 1, 0]
cd "rts/traceBinaryEvent.run" && "/home/omer/haskell/ghc/inplace/test   spaces/ghc-stage2" traceBinaryEvent.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output  --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -eventlog< traceBinaryEvent.genscript
Actual stderr output differs from expected:
diff -uw "rts/traceBinaryEvent.run/traceBinaryEvent.stderr.normalised" "rts/traceBinaryEvent.run/traceBinaryEvent.run.stderr.normalised"
--- rts/traceBinaryEvent.run/traceBinaryEvent.stderr.normalised 2018-08-31 12:48:13.712373185 +0300
+++ rts/traceBinaryEvent.run/traceBinaryEvent.run.stderr.normalised     2018-08-31 12:48:13.712373185 +0300
@@ -1 +0,0 @@
-traceBinaryEvent: Event size exceeds EVENT_PAYLOAD_SIZE_MAX, bail out
*** unexpected failure for traceBinaryEvent(ghci)

Unexpected results from:
TEST="traceBinaryEvent traceEvent"

I think GHCi doesn't generate eventlogs so there's no way to make these pass. I submitted Phab:D5119 to skip these tests in GHCi way.

Change History (5)

comment:1 Changed 13 months ago by osa1

Status: newpatch

comment:2 Changed 13 months ago by Krzysztof Gogolewski <krz.gogolewski@…>

In c0e5087d/ghc:

Skip eventlog tests in GHCi way

Summary: (GHCi doesn't generate event logs)

Test Plan:
These tests were failing in GHCi way, they're now skipped in GHCi way as GHCi
doesn't generate eventlogs

Reviewers: bgamari, simonmar, maoe, alpmestan

Reviewed By: alpmestan

Subscribers: rwbarton, carter

GHC Trac Issues: #15587

Differential Revision: https://phabricator.haskell.org/D5119

comment:3 Changed 13 months ago by monoidal

Resolution: fixed
Status: patchclosed

comment:4 Changed 13 months ago by simonmar

Resolution: fixed
Status: closednew

Why would GHCi not create eventlogs? I can't think of a reason, perhaps this is a real bug? If it's not, can we document what the conflict is somewhere, and emit a more helpful error message if the user tries to do this?

comment:5 Changed 13 months ago by osa1

Owner: set to osa1

I'll investigate further.

Note: See TracTickets for help on using tickets.