The CI was failing due to two problems.
1. The `ci/static-checks.sh` was run from an incorrect place.
2. `rustfmt` was failing as some code wasn't correctly formatted.
This patch address all the changed requested by rustfmt and the
`static-checks.sh` script was updated
Fixes: #83
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
This adds an option to the agent to control the hotplug timeout of block devices.
Retains the previous behaviour of defaulting to 3 seconds if not specified.
Can be increased when block device hot plugging is taking longer than expected.
fixes#62
Signed-off-by: Alex Price <aprice@atlassian.com>
The `skip_*` macros will be useful across the different tests so having
them in a separate module can help with code duplication. This change
creates a new module and exports the macros at crate level.
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
Fixes to allow the rust agent to be built using a gnu target.
Specifically, remove assumptions about musl-specific types.
Fixes: #70.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Since build with --release produces corrupted binary in ci, we removed
--release. However, the make install target cannot find the binary,
set BUILDTYPE to debug
Fixes: #67
Signed-off-by: Yang Bo <bo@hyper.sh>
The get_key_value method is currently only avaiable in nightly rust.
As only this feature is required it worth to refactor and enable building
in the stable channel.
The method was removed by first getting the value from the CGROUPS hashmap,
then key is get by iterating over all the keys. The checks for an empty key and
key == "devices" were moved out of the hashmap block.
The README.md was updated as well to detail the instructions for stable rust.
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
Create a config module and add more tests. Also enable setting the log
level from the kernel command-line.
Fixes: #59, #63.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
We use a packagecloud OSS account for package hosting.
As part of the arrangement with packagecloud we need to
credit them and add a link back to https://packagecloud.io
on our website and project README.
This repository's README is probably the closest we have to
a "project README", so let's add it here.
Signed-off-by: Thierry Carrez <thierry@openstack.org>
PR #7 was merged inadvertently, so apply the Documentation Team's
review comments to `README.md`.
Fixes#10.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
The HTML anchor generated by github for "osbuilder" wasn't working, so
removed the slash from the title.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Remove backticks from repos that are not the name of files/commands.
Also, mark first instance of "Linux" with asterisk.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Fixed incorrect indentation for the README's table of contents.
Also, sorted alphabetically.
Fixes#3.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a `README.md` that explains the purpose of this repository along
with pointers to the other repositories.
Fixes#1.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>