Releases: viash-io/viashpy
0.8.0
0.7.0
New Functionality
- Added support for viash 0.9.0 (#23).
Breaking Changes
run_component
now executesviash run
with--engine docker
(or--platform docker
)
when the test is executed inline (and not as a result of using 'viash test')
instead of the first engine that is defined in the config. Another engine can be
specified by using theengine
keyword argument (#22).
Minor Changes
-
run_component
now usescachedbuild
setup strategy when tests are executed inline
with enginedocker
. This makes sure that the docker image is update when it already
exists on the system (#22). -
Added debugging information about the calls that are made to
viash
. If you want to enable
debugging information, use--log-cli-level=DEBUG
frompytest
(#22).
0.6.0
0.5.0
Breaking Changes
- Fixed an issue with
run_component
assigning too much memory when usingviash test
with--memory
.
Viash rounds the values for the units that are bigger than the unit specified with--memory
up to the nearest integer.
(i.e. with--memory 500GB
,memory_tb
becomes1
). Becauserun_component
took the value for the largest unit,
memory was being over-provisioned. The breaking change involvesrun_component
using the value from the
smallest (instead of largest) unit when the memory resources are specified with multiple units.
0.4.1
Bug fixes
- Fix an issue with
run_component
raisingAssertionError
when usingviash test
without--memory
.
0.4.0
New functionality
-
run_component
now passes thecpus
,memory_b
,memory_kb
,memory_mb
memory_gb
,memory_tb
,memory_pb
,
memory_tb
,memory_pb
keys, defined in themeta
dictionairy of the test module,
as memory and cpu contraints to the executed component. Thecpus
and all memory keys
can be set by usingviash (ns) test
with--cpus
or--memory
respectively.
The memory and cpu fields can also be set to a hardcoded value in the test script. In this case,
care should be taken to only specify one ofmemory_b
,memory_kb
,memory_mb
,memory_gb
,memory_tb
,memory_pb
.
If more than one value for memory resources are defined and a conflict exists between the values,
the value from the largest unit of measure is used. -
Added
memory_bytes
andcpus
fixtures.
0.3.2
Bug fixes
run_component
: fixed adding the captured output toCalledProcessError
object when a component execution fails.
0.3.1
Bug fixes
- Fix a bug where
pytest.fail
was used when running a component failed instead of usingCalledProcessError
.
0.3.0
0.2.1
Bug fixes
run_component
now outputs captured stdout and stderr from the component run.