| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* controller/parse_credsfile: Detect $srcdir to be able to read
the correct secret file from any CWD.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
.. as the default 180s seems to often not sufficient.
* ansible/fedora.yml: Add wait_for=600 to nova_compute.
|
|
|
|
| |
* tasks/initdb/runtests.sh: Skip this test if performed on f21-.
|
|
|
|
|
|
|
| |
.. because data for x86_64 servers are already generated.
* lib_pgsql.sh (dtf_postgresql_upgrade_matrix): Testing upgrade
from f21 and f22 is now possible.
|
|
|
|
|
| |
* config/config.sh.template: Variable description adjusted.
* config/os/EXAMPLE.sh: Likewise.
|
|
|
|
|
| |
* runner/result_templates/html.tmpl: When particular task results
are not available, print NOT AVAILABLE instead of FAIL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For that purpose you may use '--extra-rpms-file FILE' option where
the file contains list of rpms to be installed. The RPMs should
be defined like accessible URLs from testing machine.
Also, export the overall log file as dtf-run.overview.
* run_remote: Add new option --extra-rpms-file.
* ansible/fedora.yml: Include conditionally the
additional-packages playbook. Generate the dtf-run.overview.
* ansible/include/additional-packages.yml: New playbook used to
install explicit list of additional packages.
* ansible/include/download-results.yml: Fix to download also
dtf-run.overview file.
|
|
|
|
|
| |
* lib.sh: Mostly fix double-quoting and back-tick removal.
* lib_pgsql.sh: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When system's locale changed e.g. from en_US.utf8 to en_US.UTF-8,
older PostgreSQL versions were unable to upgrade the data
directory. From Fedora 20 we should be able to upgrade without
issues.
Related: #1007802
* lib_pgsql.sh (dtf_postgresql_cb_upgrade)
(dtf_postgresql_cb_upgrade_select): New callbacks for
dtf_postgresql_upgrade_tour function.
(dtf_postgresql_upgrade_tour): Function determining against which
data the installation is able to upgrade and performs all the
possible upgrade scenarios.
* tasks/upgrade-basic/runtest.sh: Switch to
dtf_postgresql_upgrade_tour usage.
* tasks/upgrade-utf8-syntax/config.sh: New testcase config.
* tasks/upgrade-utf8-syntax/runtest.sh: New testcase.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on pre-generated tarball with PostgreSQL data - download the
tarball, unpack and perform 'postgresql-setup upgrade'.
* lib_pgsql.sh (dtf_postgresql_unpack_remote_data): New function.
(dtf_postgresql_upgrade_matrix): New function. Detect which data
should we test against.
* run: Define new global $dtf_dataurl.
* tasks/upgrade-basic/config.sh: New testcase config.
* tasks/upgrade-basic/runtest.sh: New testcase.
|
|
|
|
|
| |
* parse_credsfile: Use export to correctly propagate values which
are parsed.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow automatized generating of data structures on remote host.
Run like ./remote_generate IP_ADDRESS.
* gen-data/dist/dist: New file. Wrapper around tar to package
important files for data generation.
* gen-data/dist/dist.list: Include list for ^.
* gen-data/dist/dist.exclude: Exclude list for ^.
* gen-data/prep: Remote script to prepare everything for
successful ./generate run.
* gen-data/remote_generate: Wrapper running all the above.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In F20+ we should be able to deal with upgrades where user (or
system itself) changed the system locale like from 'en_US.utf8' to
'en_US.UTF-8' (which is just a syntax change). Data generated by
this task should help testing this.
* gen-data/tasks/templates/locale-change.sh: Add new template for
locale related data-generation.
* gen-data/tasks/locale-cz/run.sh: Reuse template ^^.
* gen-data/tasks/locale-utf-typo/run.sh: New file for
'en_US.UTF-8' to 'en_US.utf8' switch. Reuse template ^^.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This data should help with checking of 'postgresql --upgrade'
behavior when the system locale changed significantly (from
en_US.UTF-8 to cs_CZ.utf8).
* gen-data/tasks/locale-cz/run.sh: New task file.
* gen-data/generate (locale_prereq): Fix missing LANG= prefix in
expected locale. Quote current/expected locale strings in error
output.
(single_task): Adjust $INDENT in sub-shell to not affect
subsequent calls. Create tarball in $OUTPUTDIR rather than in
`pwd`. Introduce hook_end callback.
(generate_tasks): Use dynamic list of tasks.
|
|
|
|
|
|
| |
* get_machine: Rework, new options, using parse_credsfile script
to parse configuration etc.
* parse_credsfile: New config-parsing script.
|
|
|
|
|
|
|
|
|
| |
Add also first task 'basic' which generates simple 'pagila'
database.
* generate: New file.
* databases/pagila.sh: New database file.
* tasks/basic/run.sh: New task file.
|
|
|
|
|
|
| |
* controller: Just rsync.
* config/config.sh.template: Document the DTF_PRESENTER_PLACE
option.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* ansible/fedora.yml: Remove leading dashes from before dict keys.
* ansible/include/download-results.yml: Make sure that trailing
slash is added to fetch destination.
|
|
|
|
|
| |
* run: Double-quote variables, do not use A && B || C construct,
do not use backticks but rather use $().
|
|
|
|
|
|
|
| |
* ansible/fedora.yml: Make the ./run non-fatal. Include
download-results.yml and add skeleton for VM shutdown.
* ansible/include/download-results.yml: Download the run results
into directory specified by opt_tmp_resultdir.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 ^^^.
|
|
|
|
| |
* run (run): Create the yml file as TASK_ID.result.
|
|
|
|
| |
* run_remote: Do $subject by incorporating getopt.
|
|
|
|
|
|
|
| |
* ansible/dummy-wrapper.yml: Do not require 'script_name'
variable.
* ansible/run_include: Better work with actual directory when
including other scripts or searching for included playbook.
|
|
|
|
|
|
|
|
|
| |
Older versions of postgresql-setup do not support --initdb option.
* lib_pgsql.sh (dtf_postgresql_phase_cleanup): Do not fail when
the data directory is not created by test.
* tasks/initdb/runtest.sh: Avoid running this test on older
RHEL/Fedora systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ansible/dummy-wrapper.yml: Helper playbook to directly invoke
"included" playbooks.
* ansible/fedora.yml: The "main" playbook (new file).
* ansible/include/beakerlib.yml: New file, install beakerlib
remotely.
* ansible/include/prepare-testenv.yml: Install the test
dependencies remotely.
* ansible/run_include: Helper script to run included playbooks.
* dist: Do not distribute ansible playbooks in tarball.
* get_machine: Helper script to obtain openstack machine, not
used currently.
* lib_pgsql.sh: Assert for PG_VERSION, not for datadir (as it by
default exists after postgresql-server installation.
* run_remote: Helper script invoking the main ansible playbook.
* ansible_helpers/wait-for-ssh: Helper script as 'wait_for' is
broken?
* README: Document.
* .gitignore: Ignore private files.
|
|
|
|
|
|
|
|
| |
This script creates tarball having self-standing testsuite which
is able to run on remote host.
* dist: New file.
* .gitignore: New file, ignore tarballs.
|
|
|
|
|
|
|
|
|
|
| |
Generate xml output easily parse-able by xsltproc.
* lib.sh (dtf_resultxml_init, dtf_resultxml_finish,
dtf_resultxml_cache, dtf_die): New functions.
* run.sh: Include lib.sh globally.
* run.sh (run): Reuse new lib api.
* tasks/initdb_old/config.sh: Typo: use DTF_TEST_DESCRIPTION.
|
|
Initializet the lib/run structure and created two basic tests for
PostgreSQL.
* README: New file.
* lib.sh: Likewise.
* lib_pgsql.sh: Likewise.
* run: Likewise.
* tasks/initdb/config.sh: Likewise.
* tasks/initdb/runtest.sh: Likewise.
* tasks/initdb_old/config.sh: Likewise.
* tasks/initdb_old/runtest.sh: Likewise.
|