Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
9a3c541c
Commit
9a3c541c
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[scripts][rebuild] Test for unexpected exception throwing from conda_build.api.test()
parent
d3d01123
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#27914
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/scripts/rebuild.py
+9
-6
9 additions, 6 deletions
bob/devtools/scripts/rebuild.py
with
9 additions
and
6 deletions
bob/devtools/scripts/rebuild.py
+
9
−
6
View file @
9a3c541c
...
...
@@ -167,17 +167,20 @@ def rebuild(recipe_dir, python, condarc, config, append_file,
# the build fails, depending on the reason. This bit of code tries to
# accomodate both code paths and decides if we should rebuild the package
# or not
logger
.
info
(
'
Testing %s
'
,
src
)
try
:
logger
.
info
(
'
Testing %s
'
,
src
)
result
=
conda_build
.
api
.
test
(
destpath
,
config
=
conda_config
)
should_build
=
not
result
except
Exception
as
error
:
logger
.
exception
(
error
)
finally
:
if
should_build
:
logger
.
warn
(
'
Test for %s: FAILED. Building...
'
,
src
)
else
:
logger
.
info
(
'
Test for %s: SUCCESS (package is up-to-date)
'
,
src
)
except
:
logger
.
error
(
'
conda_build.api.test() threw an unknown exception -
'
\
'
looks like bad programming, but not on our side this time...
'
)
if
should_build
:
logger
.
warn
(
'
Test for %s: FAILED. Building...
'
,
src
)
else
:
logger
.
info
(
'
Test for %s: SUCCESS (package is up-to-date)
'
,
src
)
if
should_build
:
#something wrong happened, run a full build
...
...
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