Issues with implementation of Buildah and Nerdctl SAL #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upon investigation it seems that the following tests were not executing correctly and/or giving false positives:
rhai_tests/buildah/01_builder_pattern.rhairhai_tests/buildah/02_image_operations.rhairhai_tests/buildah/03_container_operations.rhairhai_tests/buildah/run_all_tests.rhaiEach of these files uses has a
is_buildah_availablefunction at the beginning of the script to check for the presence of thebuildahexecutable. As this function is inherently broken, none of the tests were able to get executed.The
runfunction gets registered to the engine upon the execution the of a test script usingherodo. Therunfunction is part of theprocessmodule, which gets registered when creating the engine (which gets done byherodowhen executing a.rhai-script). The function itself only creates aRhaiCommandBuilderinstance (registered as aCommandBuilderwith the engine), but does not yet execute the command. For that, an additional.execute()call is required.Fixing this (simple) bug lead to a chain of failing tests, which should -IMO- get fixed before continuing with herocode/sal#20.
Issues with running the `buildah` teststo Issues with implementation of Buildah and Nerdctl SALDue to multiple issues with the existing SAL modules for
BuildahandNerdctl, an extensive refactoring of the code is needed (WIP). For this I have created a new branchdevelopment_containers.Some of the main issues/bugs encountered are:
buildahandnerdctl: functions used in test scripts were not registered with the Rhai scripting engine or were simply non-existent.buildahandnerdctlmodulesIt looked like most of the tests written for these SAL modules were not properly executed before being committed.