Commit graph

10764 commits

Author SHA1 Message Date
Thomas Haller
31aa552f42 makerepo.sh: support iproute package 2015-12-01 10:41:52 +01:00
Lubomir Rintel
2d0b65de30 rh-bkr: rename GIT_URL and GIT_TESTBRANCH
GIT_URL conflicts with Jenkins' use. Rename it to something more sensible and
rename the GIT_TESTBRANCH for consistency as well.
2015-11-26 12:10:35 +01:00
Lubomir Rintel
9a07d099cf rh-bkr,jenkins: Remove the GIT_URL setting 2015-11-26 10:10:52 +01:00
Thomas Haller
54c85b1e7a contrib/bkr: choose by default DISTRO_VARIANT="Server"
For non-x86_64 archs, only the Server flavor exists.
2015-11-23 10:40:13 +01:00
Thomas Haller
25ee2f0de6 contrib/rh-bkr: change configuration file setup by bkr.py's job template
We want to reserve configuration-files "90-*" and larger for the tests
themselves. So, place our config file at "85-".
2015-11-20 17:11:52 +01:00
Thomas Haller
91762c38b1 contrib/rh-bkr: support special ARCH "<random>" in jenkins script 2015-11-20 15:42:51 +01:00
Thomas Haller
4b6f93bf8a contrib/rh-bkr: don't enable WiMAX for beaker test build
WiMAX is no longer available on RHEL-7, thus beaker cannot
build it (only relevant for nm-1-0 branch).
2015-11-20 14:42:56 +01:00
Thomas Haller
e319e59d75 contrib/rh-bkr: fix jenkins script to schedule beaker jobs 2015-11-16 16:12:40 +01:00
Thomas Haller
92c9439b34 contrib/rh-bkr: update build-directory during kickstart
Using /tmp/nm-build is not great because then the build directory
is gone after reboot. Let's use /root/nm-build.
2015-11-12 22:20:33 +01:00
Thomas Haller
cea05e1a07 contrib/rh-bkr: refactor RPM scheme handlers in bkr.py
Get rid of UploadFileSsh. This was hardly used because it
is cumbersome to use. Also, the default scheme was file://
if no scheme was given, which makes this especially non-useful.

Replace it by a new provider RPM, so that you can just specify
any rpms you want to install, like --rpm package1,package2.

Also, drop the no longer needed init() and prepare() steps.

Finally, rename UploadFile* classes to RpmScheme*.
2015-11-12 22:00:04 +01:00
Thomas Haller
517e901b98 contrib/rh-bkr: add jenkins.sh script to schedule beaker job from CI/Jenkins
Also support new environment variables or fix handling so that
they become usable as parameters from Jenkins
2015-11-12 21:22:07 +01:00
Thomas Haller
2b19146b6a contrib/rh-bkr: fix kickstart without RPMs 2015-11-12 21:07:22 +01:00
Thomas Haller
0b5d1ff880 contrib/rh-bkr: add options to wait for beaker job completion and fetch results
Needed to integrate with jenkins.
2015-11-12 17:16:58 +01:00
Vitezslav Humpa
7e71af8c0e contrib/rh-bkr: fix script for Python 2.6 and parse klist output 2015-11-12 16:35:14 +01:00
Lubomir Rintel
40b4445d87 contrib/rh-bkr: fix installation 2015-11-12 13:13:51 +01:00
Thomas Haller
7c84abde83 contrib/rh-bkr: add --build-id argument
Extend the job-template to allow building NM from source during
the test. By passing "--build-id master", the test will first
git-clone the repository of NetworkManager and build an RPM
of the selected commit.

This saves you to first build NetworkManager and then use
"--rpm brew://" or similar.
2015-11-11 16:51:32 +01:00
Lubomir Rintel
b8f8a6caf6 contrib/rh-bkr: use $DISTRO_TAG and RTT_ACCEPTED tag
Prefer to use $DISTRO_TAG for choosing the image.

Add new variable $DISTROREQIRES which can be used to explicitly
set the XML to require a certain distoro, like
  --var 'DISTROREQIRES=<distro_name op="=" value="$DISTRO_NAME"/>'

If omitted, it will try to detect the correct setting as following:

If you specify $DISTRO_TAG, it will result in:
    <distro_family op="=" value="$DISTRO_FAMILY"/>
    <distro_tag op="=" value="$DISTRO_TAG"/>

If you omit $DISTRO_TAG, but specify $DISTRO_NAME you get
instead:
    <distro_name op="=" value="$DISTRO_NAME"/>

Finally, if you don't specify anything at all, it will try to
autodetect $DISTRO_TAG based on the $GIT_TARGETBRANCH. So, this
is what you actually want. Don't specify anything at all, it
should detect it correctly already.

Co-Authored-By: Thomas Haller <thaller@redhat.com>
2015-11-09 13:17:55 +01:00
Thomas Haller
16e342cf13 contrib/rh-bkr: add dummy RPM provider "none"
If you don't want to install any RPMs, this will lead to an
error sustituing $RPM_LIST template.

Add a dummy provider that can be used:

  ./bkr.py submit -r none ...

You are still expected to explicitly pass the -r argument.
We don't want to interpret a missing argument as "none" by
default, because it's a rather uncommon usecase.
2015-10-27 10:51:05 +01:00
Thomas Haller
e953304dad makerepo.sh: support NetworkManager-libreswan pacakge 2015-10-23 16:04:10 +02:00
Thomas Haller
3e5ca284b7 contrib/rh-bkr: add -J option to use default job template
There is a default job template "job01.xml" which is usually
used. Allow chosing this job template without explicitly
requiring the filename.
2015-10-23 13:53:00 +02:00
Thomas Haller
8014cee2fe contrib/rh-bkr: update host requirements for inifiniband tests 2015-10-23 13:39:50 +02:00
Thomas Haller
bd61202586 contrib/rh-bkr: properly use $ARCH to detect builds 2015-10-21 16:14:54 +02:00
Thomas Haller
2b689d7165 contrib/rh-bkr: cleanup substituting variables in template
- get rid of the unused [$index] like $RPM_LIST[@].

- rename _get_default() to _get_var()

- let _get_var() handle the dynamic overwrites via DefaultReplacements.
  That has the advantage, that variables that are based on each other
  can resolve the defaults (recursivley).

- sort the debug messages about the substitutions
2015-10-21 15:50:11 +02:00
Thomas Haller
07a3f36526 contrib/rh-bkr: use $ARCH variable to select host-type 2015-10-21 14:34:50 +02:00
Thomas Haller
075edacd9b contrib/rh-bkr: for brewtask:// follow the main page when parsing URLs 2015-10-06 18:14:19 +02:00
Thomas Haller
f1ae625bac contrib/rh-bkr: detect nitrate-test-plan based on GIT_TARGETBRANCH 2015-09-09 17:28:02 +02:00
Thomas Haller
917cd3ad57 contrib/rh-bkr: update detection of GIT_TARGETBRANCH and DISTRO_NAME 2015-09-09 17:10:14 +02:00
Thomas Haller
b8d11f68ce contrib/rh-bkr: make parent test plan in nitrate configurable
When loading tests from nitrate, we consider all test cases that
are under a plan, which is under a certain parent test-plan.

Up to now, we used always
  https://tcms.engineering.redhat.com/plan/6727/networkmanager#treeview

Now, for rhel-7.2, we should rather use:
  https://tcms.engineering.redhat.com/plan/18716/networkmanager#treeview

Make this configurable via a new --nitrate-test-plan argument.
2015-09-07 17:20:20 +02:00
Thomas Haller
e95629ca49 makerepo.sh: add comment with howto and usage example 2015-09-03 15:46:16 +02:00
Lubomir Rintel
cb147ea31e contrib/rh-bkr: add logging 2015-08-17 14:10:45 +02:00
Lubomir Rintel
9e056d1eed contrib/rh-bkr: update RHEL
Use the post-development testing snapshot.
2015-08-17 14:10:45 +02:00
Lubomir Rintel
bc947d0c91 contrib/rh-bkr: recognize the 1.0.4 release 2015-08-17 14:10:45 +02:00
Thomas Haller
90b9ee12f3 contrib/rh-bkr: fix UploadFileJenkins constructor not accessign mainpage
Fixes: 682d08328e
2015-08-17 14:10:45 +02:00
Lubomir Rintel
6e464506a3 contrib/rh-bkr: add workflow for bugzilla reporting 2015-08-17 14:10:45 +02:00
Lubomir Rintel
4c1656c6e2 contrib/rh-bkr: add ABRT 2015-08-17 14:10:45 +02:00
Lubomir Rintel
279a7f2548 contrib/rh-bkr: drop installed NetworkManager before installing test RPMs
The tested version could be older than what's in the distribution.
2015-08-17 14:10:45 +02:00
Thomas Haller
7638534d84 makerepo.sh: add parent commits for "network-manager-applet" package 2015-08-17 14:10:45 +02:00
Thomas Haller
0987f7f61e rh-utils: add script find-backports.sh
When backporting commits, we should do `git cherry-pick -x`,
so that the commit message contains:
    (cherry picked from commit $SHA)

Similarly, when fixing an actual bug of a previous commit, we
mark the faulty commit with:
    Fixes: $SHA

This script walks through a commit range of a stable branch,
and finds all $BACKPORTED_COMMITS (the sources from where we
cherry-picked).
Then it walks through a commit range of upstream/unstable branch,
and searches for $FIXES of the $BACKPORTED_COMMITS.

Then it prints all $FIXES, that are not yet backported. You probably
should backport those commits as well.
2015-08-17 14:10:45 +02:00
Thomas Haller
0752bd18bd contrib/makerepo.sh: record last dirty files to create .gitignore file on next build 2015-08-17 14:10:45 +02:00
Lubomir Rintel
c13bfa00e7 contrib/rh-bkr: break lines after list substititions
Makes the resulting kickstart nicer.
2015-07-09 11:05:04 +02:00
Lubomir Rintel
2a729bdb78 contrib/rh-bkr: only consider last packages in repositories
They're hopefully the most recent ones.

COPR leaves the old versions in place and Beaker dislikes long packagelists...
2015-07-09 11:05:03 +02:00
Lubomir Rintel
682d08328e contrib/rh-bkr: support installing from yum repositories 2015-07-08 11:29:03 +02:00
Lubomir Rintel
5e4cd2c12e contrib/rh-bkr: decompress mainpage if it's gzipped
Will be useful for compressed rpmmd.
2015-07-08 11:28:44 +02:00
Lubomir Rintel
7a980c043b contrib/rh-bkr: escape ARGV and ARGV_PROFILE 2015-07-07 16:00:59 +02:00
Lubomir Rintel
67ff6b44e6 contrib/rh-bkr: switch the whiteboards
Move the longer whiteboard into the recipe and leave the shorter one in the job.
Makes it a bit more concise in the job listing.
2015-07-03 11:33:01 +02:00
Lubomir Rintel
2ee6632688 contrib/rh-bkr: run the installations and configuration from the kickstart
This runs it early enough. Makes it possible for us to poll in the new SELinux
policy and have it effective fron the boot.
2015-07-03 11:33:01 +02:00
Lubomir Rintel
96b4b8b9f1 contrib/rh-bkr: combat more infiniband script wrongdoing 2015-07-03 11:32:58 +02:00
Lubomir Rintel
6785d1ea48 contrib/rh-bkr: allow overriding GIT_URL
I like to run the tests from
GIT_URL=git://git.engineering.redhat.com/users/lrintel/qe/NetworkManager.git
2015-07-03 10:58:57 +02:00
Lubomir Rintel
7b6d5e668a Revert "contrib/rh-bkr: update RHEL"
The kernel in this compose is no good.

https://bugzilla.redhat.com/show_bug.cgi?id=1238672
https://bugzilla.redhat.com/show_bug.cgi?id=1238671

This reverts commit 4a3915aa44.
2015-07-02 13:48:48 +02:00
Lubomir Rintel
4a3915aa44 contrib/rh-bkr: update RHEL 2015-07-02 09:29:46 +02:00