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
a5137e6b
Commit
a5137e6b
authored
4 years ago
by
Filippo Cremonese
Browse files
Options
Downloads
Patches
Plain Diff
Force top level action by default, provide option to not force
parent
016fc580
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
orchestra/cmds/clone.py
+2
-2
2 additions, 2 deletions
orchestra/cmds/clone.py
orchestra/cmds/configure.py
+2
-2
2 additions, 2 deletions
orchestra/cmds/configure.py
orchestra/cmds/install.py
+2
-2
2 additions, 2 deletions
orchestra/cmds/install.py
orchestra/executor.py
+2
-2
2 additions, 2 deletions
orchestra/executor.py
with
8 additions
and
8 deletions
orchestra/cmds/clone.py
+
2
−
2
View file @
a5137e6b
...
...
@@ -7,7 +7,7 @@ from ..model.configuration import Configuration
def
install_subcommand
(
sub_argparser
):
cmd_parser
=
sub_argparser
.
add_parser
(
"
clone
"
,
handler
=
handle_clone
,
help
=
"
Clone a component
"
)
cmd_parser
.
add_argument
(
"
component
"
)
cmd_parser
.
add_argument
(
"
--force
"
,
action
=
"
store_true
"
,
help
=
"
F
orce execution of the root action
"
)
cmd_parser
.
add_argument
(
"
--
no-
force
"
,
action
=
"
store_true
"
,
help
=
"
Don
'
t f
orce execution of the root action
"
)
def
handle_clone
(
args
,
config
:
Configuration
):
...
...
@@ -22,4 +22,4 @@ def handle_clone(args, config: Configuration):
print
(
"
This component does not have a git repository configured!
"
)
return
executor
=
Executor
(
args
)
executor
.
run
(
build
.
clone
,
force
=
args
.
force
)
executor
.
run
(
build
.
clone
,
no_
force
=
args
.
no_
force
)
This diff is collapsed.
Click to expand it.
orchestra/cmds/configure.py
+
2
−
2
View file @
a5137e6b
...
...
@@ -7,7 +7,7 @@ from ..model.configuration import Configuration
def
install_subcommand
(
sub_argparser
):
cmd_parser
=
sub_argparser
.
add_parser
(
"
configure
"
,
handler
=
handle_configure
,
help
=
"
Run configure script
"
)
cmd_parser
.
add_argument
(
"
component
"
)
cmd_parser
.
add_argument
(
"
--force
"
,
"
-f
"
,
action
=
"
store_true
"
,
help
=
"
F
orce execution of the root action
"
)
cmd_parser
.
add_argument
(
"
--
no-
force
"
,
action
=
"
store_true
"
,
help
=
"
Don
'
t f
orce execution of the root action
"
)
def
handle_configure
(
args
,
config
:
Configuration
):
...
...
@@ -19,4 +19,4 @@ def handle_configure(args, config: Configuration):
exit
(
1
)
executor
=
Executor
(
args
)
executor
.
run
(
build
.
configure
,
force
=
args
.
force
)
executor
.
run
(
build
.
configure
,
no_
force
=
args
.
no_
force
)
This diff is collapsed.
Click to expand it.
orchestra/cmds/install.py
+
2
−
2
View file @
a5137e6b
...
...
@@ -7,7 +7,7 @@ from ..model.configuration import Configuration
def
install_subcommand
(
sub_argparser
):
cmd_parser
=
sub_argparser
.
add_parser
(
"
install
"
,
handler
=
handle_install
,
help
=
"
Build and install a component
"
)
cmd_parser
.
add_argument
(
"
component
"
)
cmd_parser
.
add_argument
(
"
--force
"
,
"
-f
"
,
action
=
"
store_true
"
,
help
=
"
F
orce execution of the root action
"
)
cmd_parser
.
add_argument
(
"
--
no-
force
"
,
action
=
"
store_true
"
,
help
=
"
Don
'
t f
orce execution of the root action
"
)
cmd_parser
.
add_argument
(
"
--no-merge
"
,
action
=
"
store_true
"
,
help
=
"
Do not merge files into orchestra root
"
)
cmd_parser
.
add_argument
(
"
--create-binary-archives
"
,
action
=
"
store_true
"
,
help
=
"
Create binary archives
"
)
cmd_parser
.
add_argument
(
"
--keep-tmproot
"
,
action
=
"
store_true
"
,
help
=
"
Do not remove temporary root directories
"
)
...
...
@@ -22,4 +22,4 @@ def handle_install(args, config: Configuration):
exit
(
1
)
executor
=
Executor
(
args
)
executor
.
run
(
build
.
install
,
force
=
args
.
force
)
executor
.
run
(
build
.
install
,
no_
force
=
args
.
no_
force
)
This diff is collapsed.
Click to expand it.
orchestra/executor.py
+
2
−
2
View file @
a5137e6b
...
...
@@ -16,8 +16,8 @@ class Executor:
self
.
_failed_actions
:
List
[
Action
]
=
[]
self
.
_pool
=
futures
.
ThreadPoolExecutor
(
max_workers
=
threads
,
thread_name_prefix
=
"
Builder
"
)
def
run
(
self
,
action
,
force
=
False
):
self
.
_collect_actions
(
action
,
force
=
force
)
def
run
(
self
,
action
,
no_
force
=
False
):
self
.
_collect_actions
(
action
,
force
=
not
no_
force
)
self
.
_pending_actions
.
sort
(
key
=
lambda
a
:
a
.
qualified_name
)
if
not
self
.
_pending_actions
:
...
...
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