foreman_maintain icon indicating copy to clipboard operation
foreman_maintain copied to clipboard

Add basic tests using packit

Open ekohl opened this issue 1 year ago • 3 comments

The aim of this is to run tests on the built RPM to verify various scenarios using real systems.

ekohl avatar Apr 04 '24 14:04 ekohl

I opened https://github.com/teemtee/tmt/issues/2825 for some guidance on best practices for repository handling.

ekohl avatar Apr 04 '24 16:04 ekohl

@Griffin-Sullivan locally I could run this with tmt run -a provision -h container -i centos:stream9 or tmt run -a provision -h virtual -i c9 for either a container or a VM. Afterwards you can run tmt run -l report -vvv to get all the output from the last run.

ekohl avatar Apr 04 '24 16:04 ekohl

It's failing to install. I suspect it's trying to install the package before the repository with our packages is set up.

Command:
---v---v---v---v---v---
dnf -y install --allowerasing https://download.copr.fedorainfracloud.org/results/packit/theforeman-foreman_maintain-818/rhel-9-x86_64/07259709-rubygem-foreman_maintain/rubygem-foreman_maintain-doc-1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch.rpm https://download.copr.fedorainfracloud.org/results/packit/theforeman-foreman_maintain-818/rhel-9-x86_64/07259709-rubygem-foreman_maintain/rubygem-foreman_maintain-1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch.rpm
---^---^---^---^---^---

Stdout:
---v---v---v---v---v---
Last metadata expiration check: 0:00:04 ago on Thu 04 Apr 2024 04:06:04 PM UTC.
rubygem-foreman_maintain-doc-1.6.2-1.2024040415  16 MB/s | 537 kB     00:00    
rubygem-foreman_maintain-1.6.2-1.20240404155940 5.1 MB/s | 148 kB     00:00    
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

---^---^---^---^---^---

Stderr:
---v---v---v---v---v---
Warning: Permanently added '3.128.155.233' (ED25519) to the list of known hosts.
Error: 
 Problem 1: conflicting requests
  - nothing provides rubygem(clamp) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from @commandline
  - nothing provides rubygem(highline) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from @commandline
 Problem 2: package rubygem-foreman_maintain-doc-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from @commandline requires rubygem-foreman_maintain = 1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9, but none of the providers can be installed
  - conflicting requests
  - nothing provides rubygem(clamp) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from copr:copr.fedorainfracloud.org:packit:theforeman-foreman_maintain-818
  - nothing provides rubygem(highline) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from copr:copr.fedorainfracloud.org:packit:theforeman-foreman_maintain-818
  - nothing provides rubygem(clamp) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from @commandline
  - nothing provides rubygem(highline) needed by rubygem-foreman_maintain-1:1.6.2-1.20240404155940931685.pr818.5.gd3fc944.el9.noarch from @commandline

---^---^---^---^---^---

ekohl avatar Apr 04 '24 19:04 ekohl