Commit graph

69 commits

Author SHA1 Message Date
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Adam Williamson
1325a7ab15 adamverse: add --no-deps to pip install commands
In various roles I maintain I use `python3 -m pip install` to
directly install a Python project (usually a fedora-messaging
consumer), to avoid the pointless bureaucracy of packaging them.
The roles install all the deps of these projects as packages
first, so pip doesn't have to install any deps, it only installs
the project itself. Well...that's the idea. It's possible for
this to go wrong (say I forget to update the roles when adding
a dep to the project), and in that case I think we'd rather have
things blow up (so I know something's wrong) than have pip
silently install some random upstream wheel system-wide to make
it work. The intent is that all the deps still come from proper
Fedora packages, only these projects themselves get installed
directly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-20 11:10:09 -07:00
Adam Williamson
504b8217d3 openqa etc.: use pip for local installs, not setuptools
On Fedora 39, we ran into an issue with setuptools that isn't
immediately resolvable:
https://github.com/pypa/setuptools/issues/3797#issuecomment-1783613895
using pip like this seems to avoid it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-27 17:23:53 -07:00
Adam Williamson
a5c322b4ee More cleanup on the openQA AMQP stuff
nirik and I went around and around a bit today and ended up back
where we started, but with a clearer understanding of where that
this. This explains it a bit better, and makes what's actually
going on in various places clearer with the use of appropriate
shared variables. This should not actually *change* anything at
all when deployed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-06-22 23:21:28 +02:00
Adam Williamson
2b6c8be5aa openqa etc: reinstall local Python libs when Python ver changes
In openqa/dispatcher, relvalconsumer and check-compose roles, we
install Python libraries from git checkouts (these are things we
don't really want to package as they change too much). This
enhances those roles so that we check whether pip considers the
libraries to be installed, and install them if it doesn't. The
purpose is to catch when the Python version rolls over on system
upgrade, and reinstall the libraries in that case - I got bitten
by this when upgrading to F32, I forgot to reinstall these libs
for Python 3.8, and it broke things for a couple of days before
I noticed and fixed it manually...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-05-13 09:58:50 -07:00
Adam Williamson
22422c3050 check-compose: fix issues flagged by ansible-lint
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-29 17:56:36 -07:00
Adam Williamson
52d7450a9c openqa, check-compose, relvalconsumer: drop remaining fedmsg bits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
cc5a23960a openqa roles: fix fedora-messaging key permissions
geekotest needs to be able to read the key files or else openQA
cannot publish messages.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:09 +02:00
Adam Williamson
5e8167416d check-compose: fix dict unpacking syntax
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:13:59 -07:00
Adam Williamson
1aa79a63a6 check-compose: need a conditional too...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:08:34 -07:00
Adam Williamson
d20635ed36 check-compose: add missing endfor's
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:05:52 -07:00
Adam Williamson
455af49b80 check-compose: try to rejig email recipients for new system
I changed how check-compose upstream does email recipient config
to try and fix the 'get Atomic-related emails to Atomic people'
problem again after Fedora-Atomic composes went away. This is
an attempt to adjust the play to populate the config file for
that change. Let's see what blows up!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:03:40 -07:00
Adam Williamson
5bad190a65 check-compose: gah fix config file key name
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 16:12:03 -07:00
Adam Williamson
d004d57576 check-compose: REALLY fix the Python module name...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:57:17 -07:00
Adam Williamson
ff2115653b check-compose: correct python module name in messaging config
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:53:21 -07:00
Adam Williamson
efddd0d5b1 check-compose: convert to fedora-messaging
Following the patterns from openQA and relvalconsumer. Just one
to go after this!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-19 15:45:20 -07:00
Paul W. Frields
bd7c65717d check-compose: change dnf -> package 2019-06-11 14:51:19 +00:00
Adam Williamson
ed6fb9c465 Update check-compose role for Greenwave integration
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-12-05 19:33:06 -08:00
Adam Williamson
b30732e722 openqa etc.: drop Python 2 -> 3 migration bits
Both stg and prod are migrated now, so let's clean up the plays
to be pure Python 3.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 10:13:56 -08:00
Adam Williamson
2426ab6e5c Use new --nodeps for Python 3 setup.py installs (oqa etc)
This should hopefully avoid an awkward problem I noticed with
'python3 setup.py install' dumping replacements in /usr/local
for packaged scripts (e.g. fedmsg-logger)...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-27 14:13:30 -08:00
Adam Williamson
11fdb6b643 oqa/fedmsg3: trim python2 package removals, still need fedmsg
openQA fedmsg plugin still needs python2-fedmsg for now...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 14:10:14 -08:00
Adam Williamson
56d689d31a Fix Py2 install detection and trim py2 package removals
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:57:10 -08:00
Adam Williamson
f7dcf020fb check-compose: Try and fix 'py2 is installed' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:47:25 -08:00
Adam Williamson
b73122ab2a cc fedmsg-3: make pip non-interactive
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:27:20 -08:00
Adam Williamson
f4778d2019 cc fedmsg 3: try and fix the 'remove old py2' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 12:25:21 -08:00
Adam Williamson
0233052858 Some fixups for oqa fedmsg 3 (prev commit)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 11:09:31 -08:00
Adam Williamson
6c390c669b First cut at migrating openqa-stg to fedmsg-3
This includes some tweaks to the core fedmsg roles to allow a
'generic' way of indicating that a box should use fedmsg-hub-3
not fedmsg-hub, and make the restart notification work for that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-26 10:53:16 -08:00
Adam Williamson
4d884a0e3c Fix more dnf loop deprecations in various roles
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-10-09 14:09:00 -07:00
Kevin Fenzi
a8714caab3 first cut at changing all the old |changed to is changed per ansible deprecations 2018-05-07 23:51:48 +00:00
Adam Williamson
c01bdeee92 check-compose: update template to fix Atomic compose mails
The special configuration for check-compose mails for two-week
Atomic nightly composes was broken due to fedfind changes. We
need to tweak this template a bit as part of fixing it up.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-04-25 14:10:58 -07:00
Adam Williamson
851e93ef6d Drop 'remove old manual install' steps that served their purpose 2017-03-06 16:42:36 -08:00
Adam Williamson
c32e278190 Switch from git checkout to packaged install of openqa_client
In check-compose and openqa/dispatcher roles, now it's packaged.
2017-03-06 16:35:18 -08:00
Adam Williamson
a3d10b591d openQA roles: use python2-fedfind not fedfind
I split the package, we don't need the CLI, only the lib.
2017-02-18 16:59:52 -08:00
Adam Williamson
a4366ff9f5 check-compose: use appropriate fedmsg consumer
Don't use prod consumer on staging...
2017-02-14 17:12:37 -08:00
Kevin Fenzi
b1a2d105c9 In ansible 2.2 always_run is depreciated. Switch to check_mode. 2016-11-01 16:29:49 +00:00
Adam Williamson
125f2fb8ea check-compose: don't need this now 2016-10-28 12:35:30 -07:00
Adam Williamson
88f5773810 check-compose: update git repo location
I moved it to Pagure.
2016-10-28 12:32:32 -07:00
Adam Williamson
75df9afa06 check-compose: handle new two-week Atomic composes
Update the check-compose config file to use the variant config
for the 'Atomic' milestone as well as the 'Postrelease'
milestone - this should DTRT for the new Pungi 4 two-week
Atomic composes, which have 'Atomic' as their milestone, sending
the report to the correct addresses.
2016-06-28 10:11:11 -07:00
Adam Williamson
a8eba01a56 openqa/check-compose: tweak package installs and sources
we need some from updates-testing for now. also, we need
openqa-httpd for the server.
2016-03-08 14:09:28 -08:00
Adam Williamson
6df4aee7f7 check-compose: restart fedmsg-hub on check-compose changes 2016-03-07 12:10:14 -08:00
Adam Williamson
651061ea10 openqa_dispatcher: revise for fedmsg hub consumer
ditch the old systemd consumer service, install the fedmsg
consumer config file, add some fedmsg-hub reload notifications.
2016-03-07 12:06:41 -08:00
Adam Williamson
c085d11112 check-compose: we don't have a service any more 2016-03-04 14:45:38 -08:00
Adam Williamson
0a678a294f trim check-compose package requirements 2016-03-04 14:38:46 -08:00
Adam Williamson
25e6469e4d check-compose: switch to fedmsg-hub based fedmsg consumer
I'm switching the misc. QA fedmsg consumers over to using fedmsg-
hub, due to https://github.com/fedora-infra/fedmsg/issues/365 .
So we need to adjust how we install check-compose, install a
config file to enable the consumer, and also set up the fedmsg
base and hub roles on the openqa server boxes (which do the
check-compose job ATM).
2016-03-04 14:29:54 -08:00