Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ellie Hermaszewska
head.hackage
Commits
61af43d0
Commit
61af43d0
authored
5 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
ci: Describe cause for failure
parent
2149422e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/TestPatches.hs
+12
-5
12 additions, 5 deletions
ci/TestPatches.hs
with
12 additions
and
5 deletions
ci/TestPatches.hs
+
12
−
5
View file @
61af43d0
...
@@ -122,11 +122,18 @@ testPatches cfg = do
...
@@ -122,11 +122,18 @@ testPatches cfg = do
print
$
resultSummary
(
configExpectedBrokenPkgs
cfg
)
runResult
print
$
resultSummary
(
configExpectedBrokenPkgs
cfg
)
runResult
BSL
.
writeFile
"results.json"
$
encode
runResult
BSL
.
writeFile
"results.json"
$
encode
runResult
exitWith
$
if
anyFailures
(
configExpectedBrokenPkgs
cfg
)
runResult
then
ExitFailure
1
else
ExitSuccess
case
failedPatches
(
configExpectedBrokenPkgs
cfg
)
runResult
of
[]
->
return
()
anyFailures
::
BrokenPackages
->
RunResult
->
Bool
badPatches
->
do
anyFailures
broken
(
RunResult
testedPatches
)
=
print
$
"Failed due to unexpected failures in:"
PP
.<$$>
PP
.
indent
2
(
any
failed
testedPatches
vcat
[
prettyPkgVer
(
patchedPackageName
tp
)
(
patchedPackageVersion
tp
)
|
tp
<-
badPatches
])
exitWith
$
ExitFailure
1
failedPatches
::
BrokenPackages
->
RunResult
->
[
TestedPatch
]
failedPatches
broken
(
RunResult
testedPatches
)
=
filter
failed
testedPatches
where
where
failed
tp
=
failed
tp
=
patchFailed
tp
/=
failureExpected
broken
(
patchedPackageName
tp
)
patchFailed
tp
/=
failureExpected
broken
(
patchedPackageName
tp
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment