summaryrefslogtreecommitdiffstats
path: root/controller
Commit message (Collapse)AuthorAgeFilesLines
* controller: autoconfiscate #2Pavel Raiskup2014-10-248-29/+45
| | | | | | | | | | | | | | | | | | | | | | | | Move 'results_stats' and 'commit_results' binaries into libexec and adjust appropriately. Also html template is now in $pkgdatadir. * .gitignore: Add tags/ChangeLog generated files. * README: Just some random notes. Needs to be rewritten anyway. * controller/.gitignore: Add newly 'make'd files. * controller/Makefile.am: Generate libexec/bin files. * controller/commit_results: Move to controller/libexec as dtf-result-stats.in. * controller/configure.ac: Also substitute resulttemplatedir. * controller/etc/dtf.conf.d/config.sh.template: The DTF_DATABASE was misleading - use rather DTF_DATABASE_DEFAULT. * controller/libexec/dtf-commit-results.in: Moved from controller/commit_results. * controller/result_stats: Moved to controller/libexec/dtf-result-stats.in. * controller/libexec/dtf-result-stats.in: Moved from controller/result_stats. * controller/result_templates/html.tmpl: Moved to controller/share/dtf-controller/results-stats-templates/html.tmpl.
* controller/dtf-run-remote: fix problems with default OS IDPavel Raiskup2014-10-232-7/+8
| | | | | | | | | | | | Rename the config vairable from DTF_OPENSTACK_ID to DTF_OPENSTACK_DEFAULT_ID to better match the name with its purpose. * controller/bin/dtf-run-remote.in: Use DTF_OPENSTACK_DEFAULT_ID instead of DTF_OPENSTACK_ID. * controller/config/config.sh.template: Moved. * controller/etc/dtf.conf.d/config.sh.template: Document renamed variable on new place.
* controller: autoconfiscatePavel Raiskup2014-10-2318-34/+148
| | | | | | | | | | | | | | | | | | | | | | | First part of converting controller to autoconf/automake solution. * .gitignore: New gitignore; autotools ignores. * Makefile.am: New file. * get_machine: Renamed to template bin/dtf-get-machine.in. * bin/dtf-get-machine.in: New template based on get_machine. * run_remote: Renamed to template bin/dtf-run-remote.in. * bin/dtf-run-remote.in: New binary template from run_remote. * build: New bootstrap like helper script (git-only). * configure.ac: New file. * etc/dtf.sh.in: Likewise. * ansible_helpers/wait-for-ssh: Renamed to libexec/dtf-wait-for-ssh. * share/dtf-controller/parse_credsfile: Reworked script for parsing OS credentials. * parse_credsfile: Moved to share/dtf-controller. * libexec/dtf-wait-for-ssh: Renamed from wait-for-ssh. * ansible/*: Moved into share/dtf-controller/ansible/*. * share/dtf-controller/ansible/vars/generated-vars.yml.in: New template file exporting configure-time variables into playbooks.
* controller/get_machine: allow specifying name of VMPavel Raiskup2014-10-221-3/+5
| | | | * get_machine: New option --name and variable $opt_name.
* controller/commit_results: new helper scriptPavel Raiskup2014-10-221-0/+24
| | | | | | | .. to reuse remotely generated results and commit them to local controller-database. * commit_results: New script.
* controller: allow parsing credsfile from anywherePavel Raiskup2014-10-221-1/+3
| | | | | * controller/parse_credsfile: Detect $srcdir to be able to read the correct secret file from any CWD.
* tester/controller: better test-result layoutPavel Raiskup2014-10-221-6/+21
| | | | | | | | | | | | Make sure that on tester machine everything is put into $DTF_RESULTDIR. Similarly, on controller machine, everything should be put into --workdir. * controller/run_remote: Detect $srcdir. (workdir_prereq): The $opt_workdir is temporary directory by default. * tester/run (run): Task results now go into $DTF_RESULTDIR/tasks. The main xml result goes into $DTF_RESULT/dtf.xml.
* big reorg: prepare for generalizationPavel Raiskup2014-10-2219-1/+503
| | | | | | | | | | | | Try to split into three separate components -> controller, tester, and 'tasks' (postgresql-tasks in our case). The controller component is the main part which is able to run the task remotely. Tester is more-like library for 'tasks' component (should be reusable on the raw git level). * controller: Almost separated component. * postgresql-tasks: Likewise. * tester: Likewise.
* controller: rsync results to presenterPavel Raiskup2014-10-141-1/+4
| | | | | | * controller: Just rsync. * config/config.sh.template: Document the DTF_PRESENTER_PLACE option.
* controller: configuration cleanupPavel Raiskup2014-10-141-14/+21
| | | | | | | | | | | | | | | | | | | | | | | Better define configuration and provide examples. * controller: Unpack results to correct directory, load the configuration from new place, call run_remote with proper arguments, generate 'results.html' with result_stats script. * ansible/run_include: Adjust to better simulate run_remote. * ansible/fedora.yml: Adjust for fixed configuration. * run_remote: Likewise. Also small issues with option parsing fixed. * config.sh.template: Moved as config/config.sh.template. * config/config.sh.template: Copyyed from /config.sh.template, better documented options. * run: Fix typo - use 'while read i' instead of 'for i in'. * config/os/EXAMPLE.sh: New file - exmaple configuration. * private/os/EXAMPLE.yml: Likewise. * config/hosts.template: Likewise. * dist.include: New file with file patterns that should be distributed to test machine. * dist: Distribute only those files which are necessary. * config/.gitignore: New gitignore file.
* controller: createPavel Raiskup2014-10-121-0/+60
Controller script runs the script on remote machine (OpenStack), downloads the results, stores the result into its own result-database and re-generates statistics for runs done so far. It will be able to upload the results to "presenter" machine. * config.sh.template: New doc file. * controller: New file (the central script for CI). * runner/result_stats: New file. Based on downloaded results from testing machine, it generates single html file with stats. * runner/result_templates/html.tmpl: New file. Template for ^^^.