Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
f072d4f9
Commit
f072d4f9
authored
Mar 16, 2020
by
Samuel GAIST
Browse files
[algorithms] Remove dependency check and add push failure test
The check is done prior to the dependency list enumeration.
parent
17a3cea9
Changes
2
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/algorithms.py
View file @
f072d4f9
...
...
@@ -45,7 +45,6 @@ from beat.core.execution import DockerExecutor
from
beat.core.dock
import
Host
from
beat.core
import
hash
from
beat.backend.python.algorithm
import
Storage
as
AlgorithmStorage
from
beat.backend.python.algorithm
import
Algorithm
from
.
import
common
from
.
import
commands
...
...
@@ -330,9 +329,7 @@ def execute_impl(prefix, cache, instructions_file):
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
alg
=
Algorithm
(
prefix
,
asset_name
)
if
not
alg
.
valid
:
raise
RuntimeError
(
"Invalid algortihm: {}"
.
format
(
alg
.
errors
))
alg
=
algorithm
.
Algorithm
(
prefix
,
asset_name
)
dependencies
=
{}
...
...
beat/cmdline/test/test_algorithms.py
View file @
f072d4f9
...
...
@@ -59,6 +59,7 @@ class TestOnline(core.OnlineAssetTestCase):
"fork"
:
"user/forked_obj/1"
,
"push"
:
"user/db_input_loop_processor/1"
,
"not_owner_push"
:
"v1/integers_add/1"
,
"push_invalid"
:
"errors/description_too_long/1"
,
}
def
_modify_asset
(
self
,
asset_name
):
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment