Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orchestra-v3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Alessandro Di Federico
orchestra-v3
Commits
ae8268e2
Commit
ae8268e2
authored
4 years ago
by
Filippo Cremonese
Browse files
Options
Downloads
Patches
Plain Diff
More descriptive exception text on command failure
parent
3f93f954
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
orchestra/model/actions/clone.py
+1
-1
1 addition, 1 deletion
orchestra/model/actions/clone.py
orchestra/model/actions/configure.py
+1
-1
1 addition, 1 deletion
orchestra/model/actions/configure.py
orchestra/model/actions/install.py
+2
-2
2 additions, 2 deletions
orchestra/model/actions/install.py
with
4 additions
and
4 deletions
orchestra/model/actions/clone.py
+
1
−
1
View file @
ae8268e2
...
@@ -19,7 +19,7 @@ class CloneAction(Action):
...
@@ -19,7 +19,7 @@ class CloneAction(Action):
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
raise
Exception
(
"
S
cript failed
"
)
raise
Exception
(
"
Clone s
cript failed
"
)
def
is_satisfied
(
self
):
def
is_satisfied
(
self
):
source_dir
=
per_action_env
(
self
)[
"
SOURCE_DIR
"
]
source_dir
=
per_action_env
(
self
)[
"
SOURCE_DIR
"
]
...
...
This diff is collapsed.
Click to expand it.
orchestra/model/actions/configure.py
+
1
−
1
View file @
ae8268e2
...
@@ -17,7 +17,7 @@ class ConfigureAction(Action):
...
@@ -17,7 +17,7 @@ class ConfigureAction(Action):
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
raise
Exception
(
"
S
cript failed
"
)
raise
Exception
(
"
Configure s
cript failed
"
)
def
is_satisfied
(
self
):
def
is_satisfied
(
self
):
return
os
.
path
.
exists
(
self
.
_build_dir
())
return
os
.
path
.
exists
(
self
.
_build_dir
())
...
...
This diff is collapsed.
Click to expand it.
orchestra/model/actions/install.py
+
2
−
2
View file @
ae8268e2
...
@@ -24,7 +24,7 @@ class InstallAction(Action):
...
@@ -24,7 +24,7 @@ class InstallAction(Action):
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
Script executed:
{
self
.
script_to_run
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
raise
Exception
(
"
S
cript failed
"
)
raise
Exception
(
"
Install s
cript failed
"
)
post_file_list
=
self
.
_index_directory
(
genv
[
"
TMP_ROOT
"
],
strip_prefix
=
f
"
{
genv
[
'
TMP_ROOT
'
]
}{
genv
[
'
ORCHESTRA_ROOT
'
]
}
"
)
post_file_list
=
self
.
_index_directory
(
genv
[
"
TMP_ROOT
"
],
strip_prefix
=
f
"
{
genv
[
'
TMP_ROOT
'
]
}{
genv
[
'
ORCHESTRA_ROOT
'
]
}
"
)
new_files
=
[
f
for
f
in
post_file_list
if
f
not
in
pre_file_list
]
new_files
=
[
f
for
f
in
post_file_list
if
f
not
in
pre_file_list
]
...
@@ -69,7 +69,7 @@ class InstallAction(Action):
...
@@ -69,7 +69,7 @@ class InstallAction(Action):
logging
.
error
(
f
"
Script executed:
{
copy_command
}
"
)
logging
.
error
(
f
"
Script executed:
{
copy_command
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDOUT:
{
result
.
stdout
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
logging
.
error
(
f
"
STDERR:
{
result
.
stderr
}
"
)
raise
Exception
(
"
Script failed
"
)
raise
Exception
(
"
Post-install script failed (might be a bug in Orchestra)
"
)
os
.
makedirs
(
install_component_dir
(
self
.
index
.
config
),
exist_ok
=
True
)
os
.
makedirs
(
install_component_dir
(
self
.
index
.
config
),
exist_ok
=
True
)
installed_component_path
=
install_component_path
(
self
.
build
.
component
.
name
,
self
.
index
.
config
)
installed_component_path
=
install_component_path
(
self
.
build
.
component
.
name
,
self
.
index
.
config
)
...
...
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