Remove any bundles the installer will always install from
the list of optional bundles selectable by the user.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We added the new function to speed up the builds, but
didn't EOL the old code yet. Need to reduce coverage
for now, but we should do a code clean-up and update
coverage later this quarter.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
When building an initrd it's convenient to only install the 'os-core'
bundle, because any extra bundles are not required and bloat
intird.
This commit adds an option to only run the 'verify' command and not
install the extra bundles listed as 'core-bundles'.
Approved to reduce coverage for swupd library.
Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
Now check for which service is handling wired network interfaces.
Needed by the TUI which still handles static IP configurations for
wired connections.
TODO: Once NetworkManager is the new OS default, we can explore
configuring wireless interfaces via the TUI as well.
TODO: Consider change the other systemctl calls to use new dbus.
Dropping coverage requirement for this build
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
- The new -j flag detects ister json config format and converts it to yaml
- The existing -c flag also detects ister json config format, converts it to yaml
and continues as usual
- Handles the ister "rest" option for physical targets
- Handles multiple targets
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
Update the latest release telemetry configuration file
and update the post install hook with the new default
and new maximum.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We add an if statement to the model for the VirtualBox change
which is slightly lowering the coverage number. We won't be
able to add a VB test case, so lowering the default coverage.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Sometimes we get coverage reported as an empty string.
This can happen if there is a run time error during execution.
Now dump the contents of the newly generated coverage file
if there is a decrease.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
With this change we check all the tests decreased and print them
all instead of printing the first and exiting.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Add the user's ssh-keys configuration support as well as the required
bits to creathe the authorized_keys file.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
One of the steps check-coverage does is running "make check" and
writing it to a temporary file. This patch improves this step by
detecting the failure and better notifying the user it has failed,
also we show the result to the user if that's the case. Also remove
the left over temporary file case it fails.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
A alias can be used for a single partition only, this test makes
sure we test the case.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
I started increasing the minimal test but it's minimal for a reason -
to be minimal.
This patch moves the pre and post hook tests to their own test file.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
With this the user can add alias block devices and use these alias
to expand target media's Name values, i.e:
block-devices: [
{name: "target", file: "/dev/sda"}
]
targetMedia:
- name: ${target}
type: disk
...
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
The mass-installer use case for image generation requires to specify
the target system version. This patch allows the configuration of
an arbitrary version.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Introduce the initial support to post-install hooks. The code also
expands a set of pre-defined variables, for now the only exposed
variable is the chrootDir (the directory where the target system is
mounted).
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This patch introduces the local-travis, an small util program locally
emulate the remote travis execution. The program will read the travis
yaml file and execute the tasks.
The program is not intended to be manually executed but wrapped by
"make check-coverage". The program uses the env var TRAVIS_CONF to
know where to find the travis yaml file (the makefile will have it all
set for you).
We also use the http_proxy, https_proxy and no_proxy if they are set.
If we're executing a docker command that supports -e flag then these
variables are also handled.
The check-coverage.sh script will also auto update the coverage database
and commit the changes if it detects a coverage increase. In order to
do that check-coverage will only update the database if there's no
unstaged changes in the tree and if it's being executed with
make check-coverage.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Introduce a minimal valid test, it shows the use of only the required
fields - specially for storage/media configurations.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Also reduced the coverage for a couple of tests, we need to improve
local tests before updating the expected coverage file.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Now the kernel configuration is mandatory, with that the tests will
break if no kernel configuration is provided.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
The coverage comparison was using the "<" operator and failing
whenever the coverage had increased. This patch changes the operator
to use test's -lt operator.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This patch fixes the tests coverage regressions and add a small fix
to the script where it doesn't remove the temporary coverage report
file if it fails. Now it can be enabled on the CI and avoid adding
new testsuite regressions.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>