Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
30
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
692726de
Commit
692726de
authored
1 year ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
feat(BSS-2): fail build_test if fails are found
parent
93c18642
No related branches found
No related tags found
1 merge request
!498
feat(BSS-2): fail build_test if fails are found
Pipeline
#28725
canceled with stage
Stage:
in 40 minutes and 54 seconds
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/hxtorch/package.py
+14
-1
14 additions, 1 deletion
packages/hxtorch/package.py
packages/pynn-brainscales/package.py
+14
-1
14 additions, 1 deletion
packages/pynn-brainscales/package.py
with
28 additions
and
2 deletions
packages/hxtorch/package.py
+
14
−
1
View file @
692726de
...
...
@@ -4,6 +4,8 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import
os
import
unittest.mock
import
sys
import
xml.etree.ElementTree
as
ET
from
spack
import
*
from
spack.util.environment
import
EnvironmentModifications
...
...
@@ -171,7 +173,18 @@ class Hxtorch(WafPackage):
def
build_test
(
self
):
self
.
builder
.
waf
(
'
build
'
,
'
--test-execall
'
)
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
prefix
,
'
.build
'
))
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
prefix
,
"
.build
"
))
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
stage
.
path
,
"
.install_time_tests
"
))
# propagate failures from junit output to spack
tree
=
ET
.
parse
(
'
build/test_results/summary.xml
'
)
for
testsuite
in
tree
.
getroot
():
for
testcase
in
testsuite
:
for
elem
in
testcase
:
if
(
elem
.
tag
==
'
failure
'
)
and
not
(
elem
.
get
(
'
message
'
).
startswith
(
"
pylint:
"
)
or
elem
.
get
(
'
message
'
).
startswith
(
"
pycodestyle:
"
)
or
(
"
OK
"
in
elem
.
get
(
'
message
'
)
and
"
Segmentation fault
"
in
elem
.
get
(
'
message
'
))):
raise
RuntimeError
(
"
Failed test found: {}
"
.
format
(
testcase
.
get
(
'
name
'
)))
def
install_args
(
self
):
args
=
[
'
--test-execnone
'
]
...
...
This diff is collapsed.
Click to expand it.
packages/pynn-brainscales/package.py
+
14
−
1
View file @
692726de
...
...
@@ -4,6 +4,8 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import
os
import
unittest.mock
import
sys
import
xml.etree.ElementTree
as
ET
from
spack
import
*
from
spack.util.environment
import
EnvironmentModifications
...
...
@@ -170,7 +172,18 @@ class PynnBrainscales(WafPackage):
def
build_test
(
self
):
self
.
builder
.
waf
(
'
build
'
,
'
--test-execall
'
)
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
prefix
,
'
.build
'
))
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
prefix
,
"
.build
"
))
copy_tree
(
'
build/test_results
'
,
join_path
(
self
.
stage
.
path
,
"
.install_time_tests
"
))
# propagate failures from junit output to spack
tree
=
ET
.
parse
(
'
build/test_results/summary.xml
'
)
for
testsuite
in
tree
.
getroot
():
for
testcase
in
testsuite
:
for
elem
in
testcase
:
if
(
elem
.
tag
==
'
failure
'
)
and
not
(
elem
.
get
(
'
message
'
).
startswith
(
"
pylint:
"
)
or
elem
.
get
(
'
message
'
).
startswith
(
"
pycodestyle:
"
)
or
(
"
OK
"
in
elem
.
get
(
'
message
'
)
and
"
Segmentation fault
"
in
elem
.
get
(
'
message
'
))):
raise
RuntimeError
(
"
Failed test found: {}
"
.
format
(
testcase
.
get
(
'
name
'
)))
def
install_args
(
self
):
args
=
[
'
--test-execnone
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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