#325 On-board on packit
Opened 2 years ago by ttomecek. Modified 2 years ago
ttomecek/standard-test-roles on-board-on-packit  into  master

file added
+6
@@ -0,0 +1,6 @@ 

+ ---

+ specfile_path: standard-test-roles.spec

+ synced_files:

+   - standard-test-roles.spec

+   - .packit.yaml

+ downstream_package_name: standard-test-roles

@@ -0,0 +1,169 @@ 

+ Name:          standard-test-roles

+ Version:       3.2

+ Release:       1%{?dist}

+ Summary:       Standard Test Interface Ansible roles

+ 

+ License:       MIT

+ URL:           https://fedoraproject.org/wiki/Changes/InvokingTestsAnsible

+ Source0:       http://releases.pagure.org/%{name}/%{name}-%{version}.tar.gz

+ 

+ BuildArch:     noarch

+ BuildRequires: coreutils

+ Requires:      ansible-python3 fmf

+ # We want the real ssh for Ansible, otherwise it may fall back to paramiko

+ # which doesn't work in a whole lot of scenarios. Ref: PR1 for STR.

+ Requires:      openssh-clients

+ Requires:      standard-test-roles-inventory-qemu

+ 

+ %description

+ Shared Ansible roles to support the Standard Test Interface as described

+ at %{url}.

+ 

+ %package inventory-qemu

+ Summary:       Inventory provisioner for using plain qemu command

+ Requires:      qemu-system-x86

+ Requires:      genisoimage

+ Requires:      python3-fmf

+ %description inventory-qemu

+ Creates ansible inventory.  Implements provisioner for qemu where test subject

+ is vm image.

+ 

+ %package inventory-docker

+ Summary:       Inventory provisioner for using docker

+ Requires:      docker

+ %description inventory-docker

+ Creates ansible inventory.  Implements provisioner for docker where test

+ subject is docker containers.

+ 

+ %prep

+ %autosetup

+ 

+ %build

+ 

+ %install

+ mkdir -p %{buildroot}%{_datadir}/ansible/roles

+ cp -pr roles/* %{buildroot}%{_datadir}/ansible/roles/

+ mkdir -p %{buildroot}/%{_bindir}

+ install -p -m 0755 scripts/merge-standard-inventory %{buildroot}/%{_bindir}/merge-standard-inventory

+ install -p -m 0755 scripts/str-filter-tests %{buildroot}/%{_bindir}/str-filter-tests

+ install -p -m 0755 scripts/qcow2-grow %{buildroot}/%{_bindir}/qcow2-grow

+ mkdir -p %{buildroot}%{_datadir}/ansible/inventory

+ cp -p inventory/* %{buildroot}%{_datadir}/ansible/inventory/

+ 

+ %files

+ %license LICENSE

+ %doc README.md

+ %config %{_datadir}/ansible/roles/*

+ %{_bindir}/merge-standard-inventory

+ %{_bindir}/str-filter-tests

+ %{_datadir}/ansible/inventory/standard-inventory-local

+ %{_datadir}/ansible/inventory/standard-inventory-rpm

+ 

+ %files inventory-qemu

+ %{_bindir}/qcow2-grow

+ %{_datadir}/ansible/inventory/standard-inventory-qcow2

+ 

+ %files inventory-docker

+ %{_datadir}/ansible/inventory/standard-inventory-docker

+ 

+ %changelog

+ * Tue Mar 19 2019 Andrei Stepanov <astepano@redhat.com> - 3.2-1

+ - Build with the latest merged PRs.

+ 

+ * Thu Feb 14 2019 Andrei Stepanov <astepano@redhat.com> - 3.1-1

+ - Build with the latest merged PRs.

+ 

+ * Wed Jan 02 2019 Andrei Stepanov <astepano@redhat.com> - 3.0-1

+ - Build with the latest merged PRs.

+ 

+ * Thu Sep 20 2018 Andrei Stepanov <astepano@redhat.com> - 2.17-1

+ - Build with the latest merged PRs.

+ 

+ * Mon Sep 03 2018 Andrei Stepanov <astepano@redhat.com> - 2.16-1

+ - Build with the latest merged PRs.

+ 

+ * Mon Aug 20 2018 Andrei Stepanov <astepano@redhat.com> - 2.15-1

+ - Build with the latest merged PRs.

+ 

+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.14-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

+ 

+ * Fri Jun 29 2018 Andrei Stepanov <astepano@redhat.com> - 2.14-1

+ - Build with the latest merged PRs.

+ 

+ * Fri May 25 2018 Andrei Stepanov <astepano@redhat.com> - 2.13-2

+ - Build with the latest merged PRs.

+ 

+ * Wed May 23 2018 Andrei Stepanov <astepano@redhat.com> - 2.12-1

+ - Build with the latest merged PRs.

+ 

+ * Mon May 21 2018 Andrei Stepanov <astepano@redhat.com> - 2.11-1

+ - Build with the latest merged PRs.

+ 

+ * Mon Apr 23 2018 Andrei Stepanov <astepano@redhat.com> - 2.10-1

+ - Build with the latest merged PRs.

+ 

+ * Wed Mar 07 2018 Andrei Stepanov <astepano@redhat.com> - 2.9-1

+ - Build with the latest merged PRs.

+ 

+ * Tue Feb 13 2018 Andrei Stepanov <astepano@redhat.com> - 2.8-1

+ - Build with the latest merged PRs.

+ 

+ * Mon Feb 12 2018 Andrei Stepanov <astepano@redhat.com> - 2.7-2

+ - Fix changelog entry.

+ 

+ * Mon Feb 12 2018 Andrei Stepanov <astepano@redhat.com> - 2.7-1

+ - Build with the latest merged PRs.

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Tue Jan 23 2018 Andrei Stepanov <astepano@redhat.com> - 2.6-2

+ - Build with the latest merged PRs.

+ 

+ * Wed Nov 15 2017 Andrei Stepanov <astepano@redhat.com> - 2.5-1

+ - Pkg build with the latest merged PRs.

+ 

+ * Thu Aug 17 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.4-1

+ - Sync with upstream release 2.4

+ - Bug fix in rhts role

+ 

+ * Wed Aug 09 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.3-1

+ - Sync with upstream release 2.3

+ - Adds merge-standard-inventory

+ 

+ * Fri Jul 28 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.1-1

+ - Sync with upstream release 2.1

+ - Add package dependencies for docker, genisoimage, and qemu-system-x86

+   needed by dynamic inventory scripts

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Fri Jul 21 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.0-1

+ - Sync with upstream release 2.0.

+ - Add dynamic inventory scripts for qcow2, docker, rpm, and local

+ 

+ * Fri Jul 07 2017 Merlin Mathesius <mmathesi@redhat.com> - 1.0-1

+ - Sync with upstream release 1.0.

+ - Rework beakerlib and cloud roles to work on Atomic Hosts

+ - Update standard-test-selector role for Atomic Host

+ - Update docker and rhts roles to be compatible with revised cloud and beakerlib roles

+ 

+ * Mon Jun 19 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.5-1

+ - Sync with upstream release 0.5.

+ 

+ * Mon Jun 05 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.4-1

+ - Sync with upstream release 0.4.

+ 

+ * Wed May 03 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.3-1

+ - Sync with upstream release 0.3.

+ 

+ * Tue May 02 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.2-2

+ - Updates based on review feedback.

+ 

+ * Thu Apr 27 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.2-1

+ - Sync with upstream release 0.2.

+ 

+ * Wed Apr 26 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.1-1

+ - Initial packaging for Fedora.

This pull requests enables upstream STR to use packit.

I have tested these three packit commands:

  • packit propose-update to create a dist-git PR with the latest upstream release, documentation
  • packit srpm creates a new SRPM out of the current state of the upstream repository (using git describe for version), documentation
  • packit sync-from-downstream --no-pr to pull content from the downstream repo back to upstream (e.g. when rel-eng does mass rebuild) documentation
    • packit does not support creating pull requests on pagure.io, yet

I was running packit from git: I needed this PR. We will release packit 0.3.0 later this week and the release should include the PR.

Why should you care about this? I took a look at package_howto.md and with packit, you can remove like half of the steps now. Once we implement more in packit, the expectation is that you'll have to do very little to bring new upstream releases to Fedora.

@ttomecek HI!

  1. There is a .spec file in this PR. To facilitate user experience please add a line to PR doc: ".spec file in this PR should stay always compatible with Fedora Rawhide". So upstream knows .spec target.

  2. We build STR as a module. 1 MBS build produces 3 MBS builds. And, as you know MBS creates independent buildroot for each module. Is this supported by packit ?

Packit does not support module builds right now. We can (and should) add that to our Flock 2019 goal. You can propose pull requests using packit to any branches though.

Once the module builds are done, are you able to attach them to a bodhi update afterwards?

I'm sorry but what's a PR doc?

@ttomecek I think .spec file in dist-git and here will be out of sync.
Could you please update PR and remove change log in .spec?
Then ACK to merge.

@ttomecek I think .spec file in dist-git and here will be out of sync.

That is a valid concern. This is one of the goals of packit to prevent this situation. Right now we have two commands which help you keep the spec file in sync (propose-update to create a PR in dist-git using the upstream spec, sync-from-downstream to update spec file in the upstream repo from dist-git). Once we have packit service in-place, the PRs will be filed automatically.

Could you please update PR and remove change log in .spec?

Since packit copies the upstream spec file downstream, the removed changelog will be propagated downstream: not sure if this is something you want.

In the long run, we would love to integrate with some templating system so that changelog is populated automatically.

Then ACK to merge.