From 151aaa699d6d2277a7669bbbd89a0d11152dbe38 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 04 2018 19:19:58 +0000 Subject: [PATCH 1/9] Update setup.py to 1.16 release --- diff --git a/setup.py b/setup.py index aee695a..d51a428 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def get_install_requires(): setup( name="koji", - version="1.15.0", + version="1.16.0", description=("Koji is a system for building and tracking RPMS. The base" " package contains shared libraries and the command-line" " interface."), @@ -45,7 +45,7 @@ setup( "Operating System :: POSIX :: Linux", "Topic :: Utilities" ], - packages=['koji', 'koji.ssl', 'koji_cli'], + packages=['koji', 'koji_cli'], package_dir={ 'koji': 'koji', 'koji_cli': 'cli/koji_cli', From 3e0fdf0184bfa9e82ce5556004e7ce69a1017a3c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 04 2018 19:26:43 +0000 Subject: [PATCH 2/9] bump release to 1.16 and add changelog --- diff --git a/docs/source/conf.py b/docs/source/conf.py index 6414fa5..2803b05 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -54,9 +54,9 @@ copyright = u'2017, Mike McLean, Mike B, Dennis Gilmore, Mathieu Bridon, Ian McL # built documents. # # The short X.Y version. -version = '1.15' +version = '1.16' # The full version, including alpha/beta/rc tags. -release = '1.15.0' +release = '1.16.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/koji.spec b/koji.spec index ceb5e7f..b2e2ac9 100644 --- a/koji.spec +++ b/koji.spec @@ -31,7 +31,7 @@ %define release %{baserelease} %endif Name: koji -Version: 1.15.0 +Version: 1.16.0 Release: %{release}%{?dist} License: LGPLv2 Summary: Build system tools @@ -467,6 +467,81 @@ fi %endif %changelog +* Fri May 10 2018 Mike McLean - 1.16.0-1 +- Fix CVE-2018-1002150 - distRepoMove missing access check +- PR#884: Add option to configure DB port +- PR#914: dist repo updates +- PR#843: make py2 files parseable with py3 +- PR#841: kojid: make install timeout of imagefactory conf configurable +- PR#777: add debug timestamp log for logs +- PR#904: replace long with int +- PR#911: readTaggedRPMS: passing table 'tag_listing' in eventCondition +- PR#691: option for notifications in untagBuildBypass +- PR#869: also forget requests session in _forget() +- PR#874: Update URL for Open Science Grid Koji instance +- PR#883: Doc: add repos-dist to koji filesystem skeleton +- PR#894: tests for download_logs +- PR#909: Docs for CVE-2018-1002150 +- PR#778: add history to edit_host +- PR#774: Cache rpmdiff results and don't spawn special process +- PR#908: Fix typo in deleted mount check +- PR#770: print debug and error messages to stderr +- PR#688: CLI commands for notifications +- PR#901: Add more path info to volume documentation +- PR#678: fix grplist_block +- PR#734: hub: add strict behavior in `get_archive_file()` and `list_archive_files()` +- PR#726: pass full buildinfo obtained by get_build to postBuildStateChange callbacks +- PR#823: Add --old-chroot option to runroot command +- PR#881: add txkoji to related projects +- PR#822: Don't show license for external rpms +- PR#779: drop cascade in schema-clear +- PR#860: mavenBuild uses wrong session +- PR#858: restart-hosts fails if provided arguments +- PR#853: Show the krb principal name in debug log +- PR#711: Drop explicit python-krbV dependency for modern platforms +- PR#768: json serialize additional types in protonmsg +- PR#849: kojira: sanity check in pruneLocalRepos +- PR#848: use subprocess.Popen instead of subprocess.check_output +- PR#819: Drop pre-2.6 compat function koji.util._relpath +- PR#828: fix runroot output on py3 +- PR#765: search build by source +- PR#817: Update the volume ID substitutions list and application +- PR#744: Replace cmp= with key= for python3 support +- PR#748: hub: make list_archives to accept strict argument +- PR#769: handle None in place of string in buildNotification +- PR#824: Add internal_dev_setup option to runroot config +- PR#804: hub: fix KeyError in `get_notification_recipients` +- PR#802: omit the last dot of cname when krb_canon_host=True +- PR#820: compressed xml archive type +- PR#743: Fix key access mechanism in _build_image +- PR#800: Don't allow combination of --mine and task-ids +- PR#812: Fix AttributeError during archive import +- PR#796: Fix comparison with Enum value +- PR#695: blacklist tags for kojira +- PR#773: create/edit notification checks for duplicity +- PR#799: Fix values for non-existent options +- PR#805: fix duplicated args "parent" in waittest task +- PR#806: honour runroot --quiet for old-style call +- PR#767: update docs for listRPMFile +- PR#797: Move kojira's regen loop into dedicated thread +- PR#794: Work around race in add_external_rpm +- PR#753: check python-requests-kerberos version before gssapi login +- PR#783: don't join users table if countOnly +- PR#775: drop pycurl dependency +- PR#733: ut: [cli] fix unexcepted order problem in test_taskinfo +- PR#730: add unit test for cli commands, coverage(40%) +- PR#787: builder: make temp dir to be configured +- PR#498: remove old ssl library +- PR#755: remove simplejson imports +- PR#731: koji.next.md: Content Generators are available +- PR#754: drop rhel5 cases from spec +- PR#761: proper comments of unused spec macros +- PR#762: remove unused import in koji-shadow +- PR#764: incorrect py3 syntax +- PR#757: Force coverage3 read correct rc file. +- PR#632: drop migrateImage call +- PR#759: cli: fix issues in dist-repo command + * Mon Dec 18 2017 Mike McLean - 1.15.0-1 - PR#602: don't use /tmp in chroot - PR#674: store git commit hash to build.source From 5d218171bbfb42879798f78fa25d6634cd83d112 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 04 2018 22:14:21 +0000 Subject: [PATCH 3/9] first stab at 1.16 release notes --- diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 8cfbb55..d98e8e9 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -5,6 +5,7 @@ Release Notes .. toctree:: :maxdepth: 1 + release_notes_1.16 release_notes_1.15.1 release_notes_1.15 release_notes_1.14 diff --git a/docs/source/release_notes_1.16.rst b/docs/source/release_notes_1.16.rst new file mode 100644 index 0000000..046d54a --- /dev/null +++ b/docs/source/release_notes_1.16.rst @@ -0,0 +1,221 @@ +Koji 1.16.0 Release notes +========================= + + +Security Fixes +-------------- + +CVE-2018-1002150 - distRepoMove missing access check +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This release includes the fix for :doc:`CVE-2018-1002150`. + + +Client Changes +-------------- + +CLI commands to manage notifications +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/688 + +The change adds new cli sub-commands: + + - list-notifications + - add-notification + - remove-notification + - edit-notification + +Previously this functionality was only available through the web ui or +by making direct api calls. + + +Add --old-chroot option to runroot command +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/823 + + +Fix runroot output on py3 +^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/828 + +The runroot command should now work under python3. + + +Honor runroot --quiet +^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/806 + +The ``--quiet`` option was added to the runroot command in version 1.15, +but it only took effect when the ``--watch`` option was given. Now it is +honored in all cases. + + +Print debug and error messages to stderr +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/770 + + +Drop old ssl code +^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/498 + +The old ``koji.ssl`` module has been removed, and the ``use_old_ssl`` option +has been removed from client code. + +Because these files (which were originally from Plague) were the only parts +of Koji that were licensed as GPLv2+, Koji is now simply licensed as +LGPLv2. + + +Builder Changes +--------------- + +Configure install timeout for imagefactory +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/841 + + +Record log timestamps +^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/777 + + +Builder option: chroot_tmpdir +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/787 + +The new ``chroot_tmpdir`` option controls which directory within buildroots +is used for various temporary data by the Koji builder daemon. +Previously with was hardcoded to ``/builddir/tmp``, which created problems +with modern versions of mock. +The default value is ``/builddir/tmp``. + + +Add internal_dev_setup option to runroot config +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/824 + +The ``internal_dev_setup`` config option for the runroot builder plugin +controls whether the mock option of the same name is set for runroot +tasks. + + + +System Changes +-------------- + + +Add option to configure DB port +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/884 + +The hub now accepts a ``DBPort`` option in ``hub.conf``, which specifies +which ip port the hub should use when connecting to the database. + + +Dist repo updates +^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/914 + + +Notifications in [un]tagBuildBypass +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/691 + +Previously the ``tagBuildBypass`` and ``untagBuildBypass`` calls did not trigger +notifications. Now they will do so by default. The call now accepts a +``notify`` option (defaults to True) which controls the behavior. + + +Track history for host data +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/778 + +Koji now tracks changes to host data similarly to the way it tracks +changes for other data. This includes + + - enabled state + - arches + - capacity + - description & comment + - channels + +The ``list-history`` cli command now supports ``--host`` and ``--channel`` +options to select history entries for a host or channel. + +The versioned host data is stored in the ``host_config`` and ``host_channels`` +tables. + + +Fix block-group functionality +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/678 + +The ``block-group`` command and its underlying api call now actually work. + + +Strict option for archive listing calls +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/734 +| PR: https://pagure.io/koji/pull-request/748 + +The ``list_archives``, ``get_archive_file()``, and ``list_archive_files()`` +hub functions now accept a strict option, which defaults to False. When +the option is True, the call will raise an exception if there is no +match. + + +Search build by source +^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/765 + +The ``listBuilds()`` api call now supports a source option. This is +treated as a glob pattern and matched against the ``source`` field of the build. + + +Option to ignore tags in kojira +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/695 + +Kojira now supports an ``ignore_tags`` option. This is treated as a +space-separated list of glob patterns. Tags that match are ignored +by kojira (it will not generate newRepo tasks for them). + + +Improve kojira throughput +^^^^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/797 + +Kojira should be much more responsive in triggering ``newRepo`` tasks. + + +Drop migrateImage call +^^^^^^^^^^^^^^^^^^^^^^ + +| PR: https://pagure.io/koji/pull-request/632 + +The ``migrateImage`` call hub call has been removed. + +This call was added in version 1.8 (April 2013) +as a one-time tool for migrating images from the old model (no build entry) +to the new model (image build type). It was only available if the +EnableImageMigration is set on the hub. From 2055b8b2d8934724b5f0e977e7d47d3257539248 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 07 2018 17:50:14 +0000 Subject: [PATCH 4/9] more release notes --- diff --git a/docs/source/release_notes_1.16.rst b/docs/source/release_notes_1.16.rst index 046d54a..7912c9a 100644 --- a/docs/source/release_notes_1.16.rst +++ b/docs/source/release_notes_1.16.rst @@ -35,6 +35,10 @@ Add --old-chroot option to runroot command | PR: https://pagure.io/koji/pull-request/823 +This option causes the runroot handler to pass the same-named option +to the mock command. Newer versions of mock use systemd nspawn +by default. + Fix runroot output on py3 ^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -54,12 +58,6 @@ but it only took effect when the ``--watch`` option was given. Now it is honored in all cases. -Print debug and error messages to stderr -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -| PR: https://pagure.io/koji/pull-request/770 - - Drop old ssl code ^^^^^^^^^^^^^^^^^ @@ -81,12 +79,29 @@ Configure install timeout for imagefactory | PR: https://pagure.io/koji/pull-request/841 +Previously the install timeout parameter for imagefactory was set +to a fixed value of 7200 by Koji. Now it can be controlled by +setting the ``oz_install_timeout`` option in ``kojid.conf``. + +A value of ``0`` will disable the timeout. + Record log timestamps ^^^^^^^^^^^^^^^^^^^^^ | PR: https://pagure.io/koji/pull-request/777 +If the ``log_timestamps`` option is enabled in ``kojid.conf``, then +the builder will record a separate timestamp file for each log file +in a build. + +The filename for the timestamp file is the generated by taking the name +of the log file and appending ``-ts.log``. So ``build.log`` will have a +timestamp data in ``build.log-ts.log``. + +The format of the timestamp log is plain text with each line showing +a numeric timestamp and a line offset. + Builder option: chroot_tmpdir ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -121,14 +136,30 @@ Add option to configure DB port | PR: https://pagure.io/koji/pull-request/884 The hub now accepts a ``DBPort`` option in ``hub.conf``, which specifies -which ip port the hub should use when connecting to the database. +which port the hub should use when connecting to the database. -Dist repo updates -^^^^^^^^^^^^^^^^^ +Split debuginfo for dist repos +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | PR: https://pagure.io/koji/pull-request/914 +Dist repos can now be generated with debuginfo files split into a separate +repo. The behavior is controlled by passing the ``--split-debuginfo`` option +to the ``dist-repo`` subcommand. + +When this option is in effect, the main repo will be in the normal location. +The debuginfo repo will be in the ``debug`` subdirectory. So, you will +see a directory structure like: + +Packages/ +repodata/ +debug/ +debug/repodata + +Regardless of the split, all the rpms are located in the top level +``Packages`` directory. + Notifications in [un]tagBuildBypass ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From 1f8848c37279394baec5385a605991e018da9fff Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 07 2018 19:38:17 +0000 Subject: [PATCH 5/9] update notification docs --- diff --git a/docs/source/using_the_koji_build_system.rst b/docs/source/using_the_koji_build_system.rst index 1cc485f..c3d5981 100644 --- a/docs/source/using_the_koji_build_system.rst +++ b/docs/source/using_the_koji_build_system.rst @@ -215,12 +215,31 @@ installed. Notifications ^^^^^^^^^^^^^ -When authenticated with the Koji web interface, you can setup a -notification requests to make sure you do not miss when a package you -care about gets built. Login and scroll to the bottom of the page, there -you should find a *`Add a -notification `__* -link and a list of your configured notifications. +Koji supports a limited number of email notifications: + + - build notifications: when builds complete or fail + - tag notifications: when builds are tagged or untagged + +These mails are sent to: + + - the owner of the build in question + - (for tag notifications) the owner of the package for the tag + - any user who as subscribed to notifications for that package or tag + +Users can manage their notification subscriptions in the web interface. +To do so, they need to be logged in. The main page (Summary) will list +their subscriptions at the bottom. Each entry includes an "edit" and +"delete" link. Below that table is an "Add a notification" link for adding +new notifications. + +Starting in Koji version 1.16.0, users can also manage these subscriptions +on the command line. The relevant commands are: + + - add-notification + - edit-notification + - list-notifications + - remove-notification + Building with fedpkg targets ---------------------------- From 701f9a9a0e98d016553b08f46dc70c45d93bf0f4 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 09 2018 21:16:31 +0000 Subject: [PATCH 6/9] fix typos --- diff --git a/docs/source/release_notes_1.16.rst b/docs/source/release_notes_1.16.rst index 7912c9a..39e8cf3 100644 --- a/docs/source/release_notes_1.16.rst +++ b/docs/source/release_notes_1.16.rst @@ -95,8 +95,8 @@ If the ``log_timestamps`` option is enabled in ``kojid.conf``, then the builder will record a separate timestamp file for each log file in a build. -The filename for the timestamp file is the generated by taking the name -of the log file and appending ``-ts.log``. So ``build.log`` will have a +The filename for the timestamp file is generated by taking the name +of the log file and appending ``-ts.log``. So ``build.log`` will have timestamp data in ``build.log-ts.log``. The format of the timestamp log is plain text with each line showing @@ -110,9 +110,10 @@ Builder option: chroot_tmpdir The new ``chroot_tmpdir`` option controls which directory within buildroots is used for various temporary data by the Koji builder daemon. -Previously with was hardcoded to ``/builddir/tmp``, which created problems +Previously this was hardcoded to ``/builddir/tmp``, which created problems with modern versions of mock. -The default value is ``/builddir/tmp``. + +The default value is ``/chroot_tmpdir``. Add internal_dev_setup option to runroot config @@ -249,4 +250,4 @@ The ``migrateImage`` call hub call has been removed. This call was added in version 1.8 (April 2013) as a one-time tool for migrating images from the old model (no build entry) to the new model (image build type). It was only available if the -EnableImageMigration is set on the hub. +EnableImageMigration option was set on the hub. From a1672097a44563c4f7d4d6845d21a390a3dbca64 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 09 2018 22:33:16 +0000 Subject: [PATCH 7/9] formatting tweak --- diff --git a/docs/source/release_notes_1.16.rst b/docs/source/release_notes_1.16.rst index 39e8cf3..37cb7dd 100644 --- a/docs/source/release_notes_1.16.rst +++ b/docs/source/release_notes_1.16.rst @@ -5,8 +5,7 @@ Koji 1.16.0 Release notes Security Fixes -------------- -CVE-2018-1002150 - distRepoMove missing access check -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**CVE-2018-1002150 - distRepoMove missing access check** This release includes the fix for :doc:`CVE-2018-1002150`. @@ -14,8 +13,7 @@ This release includes the fix for :doc:`CVE-2018-1002150`. Client Changes -------------- -CLI commands to manage notifications -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**CLI commands to manage notifications** | PR: https://pagure.io/koji/pull-request/688 @@ -30,8 +28,7 @@ Previously this functionality was only available through the web ui or by making direct api calls. -Add --old-chroot option to runroot command -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Add --old-chroot option to runroot command** | PR: https://pagure.io/koji/pull-request/823 @@ -40,16 +37,14 @@ to the mock command. Newer versions of mock use systemd nspawn by default. -Fix runroot output on py3 -^^^^^^^^^^^^^^^^^^^^^^^^^ +**Fix runroot output on py3** | PR: https://pagure.io/koji/pull-request/828 The runroot command should now work under python3. -Honor runroot --quiet -^^^^^^^^^^^^^^^^^^^^^ +**Honor runroot --quiet** | PR: https://pagure.io/koji/pull-request/806 @@ -58,8 +53,7 @@ but it only took effect when the ``--watch`` option was given. Now it is honored in all cases. -Drop old ssl code -^^^^^^^^^^^^^^^^^ +**Drop old ssl code** | PR: https://pagure.io/koji/pull-request/498 @@ -74,8 +68,7 @@ LGPLv2. Builder Changes --------------- -Configure install timeout for imagefactory -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Configure install timeout for imagefactory** | PR: https://pagure.io/koji/pull-request/841 @@ -86,8 +79,7 @@ setting the ``oz_install_timeout`` option in ``kojid.conf``. A value of ``0`` will disable the timeout. -Record log timestamps -^^^^^^^^^^^^^^^^^^^^^ +**Record log timestamps** | PR: https://pagure.io/koji/pull-request/777 @@ -103,8 +95,7 @@ The format of the timestamp log is plain text with each line showing a numeric timestamp and a line offset. -Builder option: chroot_tmpdir -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Builder option: chroot_tmpdir** | PR: https://pagure.io/koji/pull-request/787 @@ -116,8 +107,7 @@ with modern versions of mock. The default value is ``/chroot_tmpdir``. -Add internal_dev_setup option to runroot config -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Add internal_dev_setup option to runroot config** | PR: https://pagure.io/koji/pull-request/824 @@ -131,8 +121,7 @@ System Changes -------------- -Add option to configure DB port -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Add option to configure DB port** | PR: https://pagure.io/koji/pull-request/884 @@ -140,8 +129,7 @@ The hub now accepts a ``DBPort`` option in ``hub.conf``, which specifies which port the hub should use when connecting to the database. -Split debuginfo for dist repos -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Split debuginfo for dist repos** | PR: https://pagure.io/koji/pull-request/914 @@ -162,8 +150,7 @@ Regardless of the split, all the rpms are located in the top level ``Packages`` directory. -Notifications in [un]tagBuildBypass -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Notifications in [un]tagBuildBypass** | PR: https://pagure.io/koji/pull-request/691 @@ -172,8 +159,7 @@ notifications. Now they will do so by default. The call now accepts a ``notify`` option (defaults to True) which controls the behavior. -Track history for host data -^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Track history for host data** | PR: https://pagure.io/koji/pull-request/778 @@ -193,16 +179,14 @@ The versioned host data is stored in the ``host_config`` and ``host_channels`` tables. -Fix block-group functionality -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Fix block-group functionality** | PR: https://pagure.io/koji/pull-request/678 The ``block-group`` command and its underlying api call now actually work. -Strict option for archive listing calls -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Strict option for archive listing calls** | PR: https://pagure.io/koji/pull-request/734 | PR: https://pagure.io/koji/pull-request/748 @@ -213,8 +197,7 @@ the option is True, the call will raise an exception if there is no match. -Search build by source -^^^^^^^^^^^^^^^^^^^^^^ +**Search build by source** | PR: https://pagure.io/koji/pull-request/765 @@ -222,8 +205,7 @@ The ``listBuilds()`` api call now supports a source option. This is treated as a glob pattern and matched against the ``source`` field of the build. -Option to ignore tags in kojira -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +**Option to ignore tags in kojira** | PR: https://pagure.io/koji/pull-request/695 @@ -232,16 +214,14 @@ space-separated list of glob patterns. Tags that match are ignored by kojira (it will not generate newRepo tasks for them). -Improve kojira throughput -^^^^^^^^^^^^^^^^^^^^^^^^^ +**Improve kojira throughput** | PR: https://pagure.io/koji/pull-request/797 Kojira should be much more responsive in triggering ``newRepo`` tasks. -Drop migrateImage call -^^^^^^^^^^^^^^^^^^^^^^ +**Drop migrateImage call** | PR: https://pagure.io/koji/pull-request/632 From f1020ae1bf707af4e5e341addcff8f414d64556d Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 11 2018 16:46:15 +0000 Subject: [PATCH 8/9] migration doc --- diff --git a/docs/source/migrating_to_1.16.rst b/docs/source/migrating_to_1.16.rst new file mode 100644 index 0000000..6924fb3 --- /dev/null +++ b/docs/source/migrating_to_1.16.rst @@ -0,0 +1,32 @@ +Migrating to Koji 1.16 +====================== + +.. + reStructured Text formatted + +You should consider the following changes when migrating to 1.16: + +DB Updates +---------- + +This release has schema changes to support tracking history for hosts. + + * new table: ``host_config`` + * some fields from the ``host`` table have moved to ``host_config`` + * the ``host_channels`` table now has versioning data like the other + versioned tables + +As in previous releases, we provide a migration script that updates the +database. + +:: + + # psql koji koji Date: May 11 2018 17:09:23 +0000 Subject: [PATCH 9/9] release note updates --- diff --git a/docs/source/release_notes_1.16.rst b/docs/source/release_notes_1.16.rst index 06288e5..36e332b 100644 --- a/docs/source/release_notes_1.16.rst +++ b/docs/source/release_notes_1.16.rst @@ -40,8 +40,13 @@ by making direct api calls. | PR: https://pagure.io/koji/pull-request/823 This option causes the runroot handler to pass the same-named option -to the mock command. Newer versions of mock use systemd nspawn -by default. +to the mock command. This complements the existing ``--new-chroot`` +option. + +If neither ``--old-chroot`` or ``--new-chroot`` is given, then mock will +follow its default behavior. This default varies across mock versions. +For newer versions of mock, ``--new-chroot`` is the default (uses a +systemd nspawn container). **Fix runroot output on py3** @@ -67,7 +72,8 @@ honored in all cases. The old ``koji.ssl`` module has been removed, and the ``use_old_ssl`` option has been removed from client code. -Because these files (which were originally from Plague) were the only parts +Because these files (which were originally from +`Plague `_) were the only parts of Koji that were licensed as GPLv2+, Koji is now simply licensed as LGPLv2. @@ -148,10 +154,13 @@ When this option is in effect, the main repo will be in the normal location. The debuginfo repo will be in the ``debug`` subdirectory. So, you will see a directory structure like: -Packages/ -repodata/ -debug/ -debug/repodata +.. code-block:: text + + + Packages/ + repodata/ + debug/ + debug/repodata Regardless of the split, all the rpms are located in the top level ``Packages`` directory.