Releases: viash-io/viashpy
0.9.0
0.8.0
0.7.0
New Functionality
- Added support for viash 0.9.0 (#23).
Breaking Changes
run_componentnow executesviash runwith--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 theenginekeyword argument (#22).
Minor Changes
-
run_componentnow usescachedbuildsetup 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=DEBUGfrompytest(#22).
0.6.0
0.5.0
Breaking Changes
- Fixed an issue with
run_componentassigning too much memory when usingviash testwith--memory.
Viash rounds the values for the units that are bigger than the unit specified with--memoryup to the nearest integer.
(i.e. with--memory 500GB,memory_tbbecomes1). Becauserun_componenttook the value for the largest unit,
memory was being over-provisioned. The breaking change involvesrun_componentusing 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_componentraisingAssertionErrorwhen usingviash testwithout--memory.
0.4.0
New functionality
-
run_componentnow passes thecpus,memory_b,memory_kb,memory_mbmemory_gb,memory_tb,memory_pb,
memory_tb,memory_pbkeys, defined in themetadictionairy of the test module,
as memory and cpu contraints to the executed component. Thecpusand all memory keys
can be set by usingviash (ns) testwith--cpusor--memoryrespectively.
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_bytesandcpusfixtures.
0.3.2
Bug fixes
run_component: fixed adding the captured output toCalledProcessErrorobject when a component execution fails.
0.3.1
Bug fixes
- Fix a bug where
pytest.failwas used when running a component failed instead of usingCalledProcessError.