The package rpms/tmt.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/tmt.git/commit/?id=147a09813ef38ea11....
Change: -ExcludeArch: %{power64}
Thanks.
Full change: ============
commit 1f43155ab7be3f5baefd00c902b4421248d92c3a Merge: 6c40fbc 65c7e58 Author: Lukáš Zachar lzachar@redhat.com Date: Thu Mar 28 15:16:51 2024 +0100
Merge branch 'rawhide' into f38
commit 65c7e58f89f70dbceab33de2e6442fa7b13963bd Author: Petr Šplíchal psplicha@redhat.com Date: Thu Mar 28 08:56:59 2024 +0100
Run tier 1 tests only from the upstream tests set
diff --git a/plans/upstream.fmf b/plans/upstream.fmf index 2fdbc4a..6c5c732 100644 --- a/plans/upstream.fmf +++ b/plans/upstream.fmf @@ -4,7 +4,7 @@ discover: how: fmf url: https://github.com/teemtee/tmt ref: fedora - filter: "tier:0,1" + filter: "tier:1"
prepare+: - how: install
commit 7bc338bfe8c7ef1e74efd39762aeef5e2f891c3c Author: Petr Šplíchal psplicha@redhat.com Date: Mon Mar 4 21:40:27 2024 +0100
Drop the `virtual` tag from `/plans/upstream`
It should not be necessary as both `/tests/core/escaping` and `/tests/core/spaces` which are filtered out by it should now work just fine under a virtualized machine.
diff --git a/plans/upstream.fmf b/plans/upstream.fmf index 487a06b..2fdbc4a 100644 --- a/plans/upstream.fmf +++ b/plans/upstream.fmf @@ -1,11 +1,10 @@ -summary: - Upstream tests working under virtual machine +summary: Run a basic set of upstream tests
discover: how: fmf url: https://github.com/teemtee/tmt ref: fedora - filter: "tag:virtual & tier:0,1" + filter: "tier:0,1"
prepare+: - how: install
commit 5baffd6f8872be21ead8bc5a9bf723655d9cf442 Author: Michal Hlavinka mhlavink@redhat.com Date: Tue Feb 13 08:28:35 2024 +0100
allow /var/tmp/tmt for rpminspect addedfiles check
fixes bodhi update ci checks
diff --git a/rpminspect.yaml b/rpminspect.yaml new file mode 100644 index 0000000..c84e68f --- /dev/null +++ b/rpminspect.yaml @@ -0,0 +1,5 @@ +--- +addedfiles: + ignore: + # rpminspect forbids /var/tmp prefix by default + - /var/tmp/tmt
commit 8a77af960c1883e66d52b329da4556ea7bd18bb3 Author: Packit hello@packit.dev Date: Tue Feb 6 19:19:47 2024 +0000
[packit] 1.31.0 upstream release
Upstream tag: 1.31.0 Upstream commit: fdb16ba3
diff --git a/.gitignore b/.gitignore index 260ee0f..a3ab452 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ /tmt-1.28.2.tar.gz /tmt-1.29.0.tar.gz /tmt-1.30.0.tar.gz +/tmt-1.31.0.tar.gz diff --git a/.packit.yaml b/.packit.yaml index dcb7d34..bdd854a 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -57,6 +57,23 @@ jobs: - fedora-all - epel-9
+ # Test pull requests (provision) + - job: tests + identifier: provision + trigger: pull_request + manual_trigger: true + use_internal_tf: True + targets: + - fedora-latest-stable + tf_extra_params: + test: + tmt: + name: /plans/provision/virtual + environments: + - tmt: + context: + how: provision + # Test internal plugins - job: tests trigger: pull_request @@ -137,8 +154,6 @@ jobs: dist_git_branches: - fedora-all - epel-9 - actions: - post-upstream-clone: []
- job: koji_build trigger: commit diff --git a/README.packit b/README.packit index 14f5afe..29cc7d8 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.87.1.post1.dev7+g9f53ebb4. +The file was generated using packit 0.90.0.post1.dev9+g1f0325d1. diff --git a/sources b/sources index 546f280..3906811 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.30.0.tar.gz) = bab76dd8ad5e5095b5e4d717b13a875750fb478bda85c47f83ffbc8fb8e6cb7a1727ddb802312c5e6e8b84b780d750a8de08893e1892e5f760991f7040351c56 +SHA512 (tmt-1.31.0.tar.gz) = 339ace3550697e3e704e1f189578c7c24bc80dec3aa3bf9621b3c57eda38c16dbcaf24b476e0378ee789b9d18bb030adf72d9df2751e77acacbfdab5e8875d3f diff --git a/tmt.spec b/tmt.spec index f295c68..a4c67ff 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,5 +1,5 @@ Name: tmt -Version: 1.30.0 +Version: 1.31.0 Release: %autorelease Summary: Test Management Tool
@@ -68,6 +68,7 @@ Requires: libvirt-daemon-config-network Requires: openssh-clients Requires: (ansible or ansible-core) # Recommend qemu system emulators for supported arches +Recommends: qemu-kvm-core %if 0%{?fedora} Recommends: qemu-system-aarch64-core Recommends: qemu-system-ppc-core @@ -147,6 +148,87 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ %files -n tmt+all -f %{_pyproject_ghost_distinfo}
%changelog +* Tue Feb 06 2024 Michal Hlavinka mhlavink@redhat.com - 1.31.0 +- Simple ReST renderer for CLI help texts (#2574) +- Generate plugin documentation from their sources (#2549) +- Fix environment from command line updated twice (#2614) +- Introduce a new prepare plugin for common features (#2198) +- Remove `xfail` for the `multidict` issue on `rawhide` +- Prevent catching avc denials from previous tests +- Remove an obsolete workaround for `centos-stream-8` +- Enable the `/tests/discover/libraries` test (#2222) +- Add documentation on tmt & regular expressions +- Fix expansion of envvar starting with `@` in fmf nodes +- Add the `zcrypt` adapter specification +- Allow urllib3 2.x +- Enable `/plans/provision/virtual` for pull requests (#2558) +- Remove the dns failures workaround +- Fix reporting of schema errors without the `$id` key +- AVC check now saves a timestamp on guest instead of using runner's time +- Add check to prevent `tmt try` deleting imported libraries +- Reduce usage of locks in the `testcloud` plugin +- Add support for envvars import and export to Polarion +- Use enumeration to implement action handling +- Handle the `ctrl-d` shortcut in `tmt try` +- Run tests with `interactive` mode during `tmt try` +- Fix `tmt import --dry` and Polarion import file name +- Document that `name` is supported in `--filter` search (#2637) +- Refactor running of interactive commands (#2554) +- Create container images from the latest non-dev copr build +- Fail `dmesg` check if it contains `Call Trace` or `segfault` +- Mention the reboot timeout variable in the release notes +- Bump the default reboot timeout to 10 minutes +- Allow change of the default reboot timeout via environment variable +- Introduce essential requirements +- Allow `--update-missing` to change the default `how` value +- Document the new `become` feature +- Raise an error when loading pre-1.24 `tests.yaml` +- Support terminating process running test via its test invocation (#2589) +- Fix `egrep` warning in `/plans/install/docs` +- Test framework may provide additional test requirements +- Improve logging of AVC check plugin and its test +- Cleanup logging in `tmt.utils.create_file()` +- Drop connection closed messages from test output +- Recommend `qemu-kvm-core` for `provision-virtual` +- Fix `/tests/plan/import` to not use special ref (#2627) +- Improve imported plan modification test to verify the order as well (#2618) +- Retry the `git clone` action multiple times +- Simplify the debuginfo installation test +- Support `virtualization.is-virtualized` in `mrack` plugin +- Support running all or selected steps `--again` +- Allow hardware requirements limit acceptable operators +- Fix inheritance of some keys in provision step data +- Run a callback when command process starts +- Add support for hard reboot to Beaker provision plugin +- Make collected requires/recommends guest-aware +- Copy top level `main.fmf` during testdir pruning +- Add support for Artemis API v0.0.67 +- Add support for `cpu.flag` hardware requirement +- Use a different pidfile location for the full test +- Clear test invocation data path use and derived paths +- Add support for disallowing plugins via command line +- Use constraint classes specific for particular value type +- Making rhts metric value optional. +- Ignore tarballs and generated man page +- Cover `tmt.libraries` with `pyright` checks +- Parallelize the `provision` step +- Let `click` know about the maximal output width +- Cover `tmt.identifier` with `pyright` checks +- Extend `duration` of `/tests/core/escaping` a bit +- Move docs templates into their own directory +- Drop no longer needed `tmt.utils.copytree()` +- Drop no longer used `tmt.utils.listify()` +- Provision plugins use `self.data` instead of `self.get()` +- Prepare and finish plugins use self.data instead of self.get() +- Fix tmt.utils.format to allow int and float values +- Move code-related pages under new `code` directory +- Warn on test case not found in Polarion during report +- Bump pre-commit linters +- When cloning a logger, give it its own copy of labels +- Add a `Toolbelt Catalog` entry for `tmt` +- Enable the `avc` check for all `tmt` tests +- Fix dmesg check test on Fedora rawhide & newer + * Fri Dec 08 2023 Petr Šplíchal psplicha@redhat.com - 1.30.0 - Make `arch` field unsupported in the spec - Introduce `tty` test attribute to control terminal environment
commit df5d3c5ce07a60eeec14f95b53207a9788c3fdfc Author: Fedora Release Engineering releng@fedoraproject.org Date: Sat Jan 27 06:26:01 2024 +0000
Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
commit 026c942cb8ba540af5ff65a5e414d544eeb212d7 Author: Packit hello@packit.dev Date: Mon Dec 11 20:22:29 2023 +0000
[packit] 1.30.0 upstream release
Upstream tag: 1.30.0 Upstream commit: 1a46dbb0
diff --git a/.gitignore b/.gitignore index 7c1ce57..260ee0f 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ /tmt-1.27.0.tar.gz /tmt-1.28.2.tar.gz /tmt-1.29.0.tar.gz +/tmt-1.30.0.tar.gz diff --git a/.packit.yaml b/.packit.yaml index 3a8ad8c..dcb7d34 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -36,12 +36,26 @@ jobs: # with the latest timestamp always wins. - bash -c "hatch version | sed -E 's/\.[0-9]+\.dev.*/.dev888/'"
- # Test pull requests + # Test pull requests (core) - job: tests + identifier: core trigger: pull_request targets: - fedora-all - epel-9 + tf_extra_params: + test: + tmt: + name: /plans/features/(core|basic) + + # Test pull requests (full) + - job: tests + identifier: full + trigger: pull_request + manual_trigger: true + targets: + - fedora-all + - epel-9
# Test internal plugins - job: tests diff --git a/README.packit b/README.packit index 5998f60..14f5afe 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.85.0. +The file was generated using packit 0.87.1.post1.dev7+g9f53ebb4. diff --git a/sources b/sources index d4b0a71..546f280 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.29.0.tar.gz) = 59c64a8c14614652d98113f205d583a715367fe2f20ca178e5eed62461e477888440bef13238ba6bd78ba2eb9ac11ff1b5380f3336f056069a5ad3291342495e +SHA512 (tmt-1.30.0.tar.gz) = bab76dd8ad5e5095b5e4d717b13a875750fb478bda85c47f83ffbc8fb8e6cb7a1727ddb802312c5e6e8b84b780d750a8de08893e1892e5f760991f7040351c56 diff --git a/tmt.spec b/tmt.spec index 096b032..f295c68 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,5 +1,5 @@ Name: tmt -Version: 1.29.0 +Version: 1.30.0 Release: %autorelease Summary: Test Management Tool
@@ -143,10 +143,78 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ %files -n tmt+provision-virtual -f %{_pyproject_ghost_distinfo} %files -n tmt+test-convert -f %{_pyproject_ghost_distinfo} %files -n tmt+provision-beaker -f %{_pyproject_ghost_distinfo} -%files -n tmt+all -f %{_pyproject_ghost_distinfo} %config(noreplace) %{_sysconfdir}/%{name}/mrack* +%files -n tmt+all -f %{_pyproject_ghost_distinfo}
%changelog +* Fri Dec 08 2023 Petr Šplíchal psplicha@redhat.com - 1.30.0 +- Make `arch` field unsupported in the spec +- Introduce `tty` test attribute to control terminal environment +- Ensure the imported plan's `enabled` key is respected +- Add support for user defined templates (#2519) +- Update the common schema for the `check` key +- Create a `checks` directory to store avc/dmesg checks +- Correctly update environment from importing plan +- Implement `tmt try` for interactive sessions +- Use a shorter time for `podman stop` (#2480) +- Add the `redis` server as a multihost sync example +- Improve documentation of test checks +- Adjust the format of Polarion test run title +- Run all available tests only upon a user request +- Rename `name` to `how` in test check specification (#2527) +- Link `inheritance` and `elasticity` from the guide +- Add the `fips` field for the `polarion` report +- Cover `tmt.cli` with `pyright` (#2520) +- Custom soft/hard reboot commands for the connect provision plugin +- Add `--feeling-safe` for allowing possibly dangerous actions +- Update docs for the `polarion` report plugin +- Move test-requested reboot handling into test invocation class +- Add `-i` to select an image in beaker and artemis +- Document how to use `yaml` anchors and aliases +- Simplify log decolorizers to support pickleable trees +- Add description field to polarion report plugin +- Make check plugin class generic over check class (#2502) +- Increase verbosity of Artemis provisioning errors +- Add more distros to the `mrack` config +- Move the `contact` key to the `Core` class +- Bump tmt in lint pre-commit check to 1.29.0 +- Add Python 3.12 to the test matrix +- Move `mrack` configs into `tmt+provision-beaker` +- Allow running upgrade from the current repository +- Fix remote nested library fetch and add test +- Cover tmt.options with pyright +- Cover tmt.checks, tmt.frameworks and tmt.log with pyright +- Cover tmt.result with pyright checks +- Store fmf `context` in results for each test +- Add networks to the podman provision plugin (#2419) +- Add a dedicated exit code when all tests reported `skip` result +- Move invocation-related fields out of `Test` class +- Remove expected fail from `/tests/pip/install/full` +- Convert test execution internals to use "invocation" bundle (#2469) +- Introduce a separate page `Code` for code docs +- Add code documentation generated from docstrings +- Fix possible unbound variable after import-under-try +- Add `pyright` as a `pre-commit` check +- Add a helper for nonconflicting, multihost-safe filenames +- Add the `whiteboard` option for `beaker` provision +- Support timestamped logging even on the terminal +- Enable pyupgrade `UP` ruff rule +- Fix `UP035` deprecated-import violations +- Fix `UP034` extraneous-parentheses violation +- Fix `UP033` lru-cache-with-maxsize-none violations +- Fix `UP032` f-string violations +- Fix `UP013` convert-typed-dict-functional-to-class +- Fix `UP009` utf8-encoding-declaration violations +- Fix `UP006` non-pep585-annotation violations +- Try several times to build the `become` container (#2467) +- Add .py file extension to docs scripts (#2476) +- Add a link to the Testing Farm documentation +- Use `renku` as the default theme for building docs +- Properly normalize the test `path` key +- Add an `adjust` example for enabling custom repo +- Drop special normalization methods +- Disable `dist-git-init` in the `distgit` test (#2463) + * Mon Nov 06 2023 Lukáš Zachar lzachar@redhat.com - 1.29.0 - Add page `Releases` to highlight important changes - Update and polish hardware requirement docs
commit e488417c7ca7530029cfe54c80b483a9a4eb9180 Author: Packit hello@packit.dev Date: Mon Nov 6 19:56:58 2023 +0000
[packit] 1.29.0 upstream release
Upstream tag: 1.29.0 Upstream commit: 808858e8
diff --git a/.gitignore b/.gitignore index db7d325..7c1ce57 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ /tmt-1.26.1.tar.gz /tmt-1.27.0.tar.gz /tmt-1.28.2.tar.gz +/tmt-1.29.0.tar.gz diff --git a/README.packit b/README.packit index 8a3b9cd..5998f60 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.83.0.post1.dev9+g2e0ea06c. +The file was generated using packit 0.85.0. diff --git a/sources b/sources index 7fbfa78..d4b0a71 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.28.2.tar.gz) = e21b644698591e622d4a39f9f981e2913c8c1aceb670b4442c806d804868fe0e375d1460258d394805b830b8faba272be92d2c7350d99473df0835d5e56225e6 +SHA512 (tmt-1.29.0.tar.gz) = 59c64a8c14614652d98113f205d583a715367fe2f20ca178e5eed62461e477888440bef13238ba6bd78ba2eb9ac11ff1b5380f3336f056069a5ad3291342495e diff --git a/tmt.spec b/tmt.spec index 5995f2c..096b032 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,5 +1,5 @@ Name: tmt -Version: 1.28.2 +Version: 1.29.0 Release: %autorelease Summary: Test Management Tool
@@ -147,6 +147,52 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ %config(noreplace) %{_sysconfdir}/%{name}/mrack*
%changelog +* Mon Nov 06 2023 Lukáš Zachar lzachar@redhat.com - 1.29.0 +- Add page `Releases` to highlight important changes +- Update and polish hardware requirement docs +- Refactor generating of stories and lint check docs +- Add support for pruning test directories +- Download all sources for `dist-git-source` +- Source plan environment variables after `prepare` and `execute` steps +- Framework is not consulted on results provided by tmt-report-result +- Run scripts with `sudo` when `become` is on +- Add `retry` for pulling images in the `podman` plugin +- Add hardware schema for GPU +- Change the default test pidfile directory to `/var/tmp` +- Add `device` key into the `hardware` specification +- Update code and test coverage for the `check` key +- Document case-insensitive context dimension values +- Fix use of the `-name` suffix in system HW requirement +- Correct parsing when called as `rhts` +- Reconcile HW requirements with virtual's own options +- Move the `README` content into `docs/overview` +- Make `BasePlugin` generic over step data class +- Use `UpdatableMessage` for execute/internal progress bar +- Drop an empty line from the pull request template +- Add `runner` property to run with test runner facts +- Export sources of an `fmf` node +- Bump pre-commit linters to newer versions +- Append the checklist template to new pull requests +- Extend tmt-reboot to allow reboot from outside of the test process +- Allow optional doc themes +- Use consistent style for multiword test names +- Show `check` results in the `html` report +- Update `where` implementation, docs & test coverage (#2411) +- Document difference between key, field and option +- Rename multiword keys to use dashes in export and serialization +- Allow Path instance to be used when constructing commands +- Switch `Logger.print()` to output to stdout +- Replace Generator type annotation with Iterator (#2405) +- Refactor data container helpers +- When merging fmf and CLI, use shared base step data +- Fix installing package from the command line +- Add support for checks to have their data packages +- Switch `tmt.identifier` from using `fmf.log` +- Hide test/plan/story internal fields from export +- Fix full test suite after recent packaging changes +- Update the list of code owners +- Include the `fmf` root in the tarball as well + * Wed Oct 11 2023 Petr Šplíchal psplicha@redhat.com - 1.28.2 - Build man page during the `release` action
commit 147a09813ef38ea1135b648060abd9200308d319 Author: Packit hello@packit.dev Date: Wed Oct 11 15:06:14 2023 +0000
[packit] 1.28.2 upstream release
Upstream tag: 1.28.2 Upstream commit: 81f02df4
diff --git a/.gitignore b/.gitignore index f9c64f0..db7d325 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ /tmt-1.26.0.tar.gz /tmt-1.26.1.tar.gz /tmt-1.27.0.tar.gz +/tmt-1.28.2.tar.gz diff --git a/.packit.yaml b/.packit.yaml index 49ee4bb..3a8ad8c 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -4,23 +4,15 @@ files_to_sync: - .packit.yaml sync_changelog: true
-upstream_project_name: tmt +upstream_package_name: tmt downstream_package_name: tmt
upstream_project_url: https://github.com/teemtee/tmt issue_repository: https://github.com/teemtee/tmt
-actions: - post-upstream-clone: - - make bump2dev - create-archive: - - make tarball - get-current-version: - - make version - srpm_build_deps: - - make - - python3-docutils + - hatch + - python3-hatch-vcs
jobs:
@@ -28,12 +20,21 @@ jobs: - job: copr_build trigger: pull_request targets: - fedora-all: {} - epel-9: {} - fedora-39: - additional_repos: - - https://download.copr.fedorainfracloud.org/results/frantisekz/testcloud-wip/... + - fedora-all + - epel-9 enable_net: False + actions: + create-archive: + - hatch run docs:man + - hatch build -t sdist + - bash -c "ls dist/tmt-*.tar.gz" + get-current-version: + # Use `dev888` instead of the last version digit to make + # builds older than the final release and newer than + # copr builds from main. Remove the remaining suffix + # generated by `hatch version` as well so that build + # with the latest timestamp always wins. + - bash -c "hatch version | sed -E 's/\.[0-9]+\.dev.*/.dev888/'"
# Test pull requests - job: tests @@ -84,8 +85,37 @@ jobs: enable_net: False list_on_homepage: True preserve_project: True - owner: psss + owner: "@teemtee" + project: tmt + release_suffix: "{PACKIT_PROJECT_BRANCH}" + actions: + create-archive: + - hatch run docs:man + - hatch build -t sdist + - bash -c "ls dist/tmt-*.tar.gz" + get-current-version: + # Get rid of the the final version digit to make copr + # builds older than the final release + - bash -c "hatch version | sed -E 's/\.[0-9]+\.dev/.dev/'" + + # Release to copr + - job: copr_build + trigger: release + targets: + - fedora-all + - epel-9 + enable_net: False + list_on_homepage: True + preserve_project: True + owner: "@teemtee" project: tmt + actions: + create-archive: + - hatch run docs:man + - hatch build -t sdist + - bash -c "ls dist/tmt-*.tar.gz" + get-current-version: + - hatch version
# Fedora releases - job: propose_downstream diff --git a/README.packit b/README.packit index ea0650e..8a3b9cd 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.79.1.post14+g9e876412. +The file was generated using packit 0.83.0.post1.dev9+g2e0ea06c. diff --git a/sources b/sources index b589a61..7fbfa78 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.27.0.tar.gz) = 137d57c6eb8c41b92e0f9ccf81ae0e612e8d05e32dc69eb858e00699439b6bebeead6895afea33d19f6106982268c6ee9bb2c832178f6a6d41ac412a85a94528 +SHA512 (tmt-1.28.2.tar.gz) = e21b644698591e622d4a39f9f981e2913c8c1aceb670b4442c806d804868fe0e375d1460258d394805b830b8faba272be92d2c7350d99473df0835d5e56225e6 diff --git a/tmt.spec b/tmt.spec index 82df263..5995f2c 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,235 +1,213 @@ -Name: tmt -Version: 1.27.0 -Release: 1%{?dist} - -Summary: Test Management Tool -License: MIT -BuildArch: noarch - -# Build only on arches where libguestfs (needed by testcloud) is available -%{?kernel_arches:ExclusiveArch: %{kernel_arches} noarch} -%if 0%{?rhel} >= 9 -ExcludeArch: %{power64} -%endif +Name: tmt +Version: 1.28.2 +Release: %autorelease +Summary: Test Management Tool + +License: MIT +URL: https://github.com/teemtee/tmt +Source0: %{pypi_source tmt} + +BuildArch: noarch +BuildRequires: python3-devel + +Requires: git-core rsync sshpass
-URL: https://github.com/teemtee/tmt -Source0: https://github.com/teemtee/tmt/releases/download/%%7Bversion%7D/tmt-%%7Bvers... +Obsoletes: python3-tmt < %{version}-%{release} +Obsoletes: tmt-report-html < %{version}-%{release} +Obsoletes: tmt-report-junit < %{version}-%{release} +Obsoletes: tmt-report-polarion < %{version}-%{release} +Obsoletes: tmt-report-reportportal < %{version}-%{release} + +Recommends: bash-completion
%define workdir_root /var/tmp/tmt
-# Main tmt package requires the Python module -Requires: python%{python3_pkgversion}-%{name} == %{version}-%{release} -Requires: git-core rsync sshpass +%py_provides python3-tmt
%description The tmt Python module and command line tool implement the test metadata specification (L1 and L2) and allows easy test execution. -This package contains the command line tool. - -%?python_enable_dependency_generator - - -%package -n python%{python3_pkgversion}-%{name} -Summary: Python library for the %{summary} -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-docutils -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-click -BuildRequires: python%{python3_pkgversion}-fmf >= 1.2.0 -BuildRequires: python%{python3_pkgversion}-requests -BuildRequires: python%{python3_pkgversion}-testcloud >= 0.9.10 -BuildRequires: python%{python3_pkgversion}-markdown -BuildRequires: python%{python3_pkgversion}-junit_xml -BuildRequires: python%{python3_pkgversion}-ruamel-yaml -BuildRequires: python%{python3_pkgversion}-jinja2 -BuildRequires: python%{python3_pkgversion}-pint -# TypeAlias is not available with python3.9 on RHEL9 -%if 0%{?rhel} == 9 -BuildRequires: python%{python3_pkgversion}-typing-extensions -%endif -# Required for tests -BuildRequires: rsync -%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
-%description -n python%{python3_pkgversion}-%{name} -The tmt Python module and command line tool implement the test -metadata specification (L1 and L2) and allows easy test execution. -This package contains the Python 3 module. - -%package provision-container -Summary: Container provisioner for the Test Management Tool -Obsoletes: tmt-container < 0.17 -Requires: tmt == %{version}-%{release} -Requires: podman -Requires: (ansible or ansible-collection-containers-podman) - -%description provision-container -Dependencies required to run tests in a container environment. - -%package provision-virtual -Summary: Virtual machine provisioner for the Test Management Tool -Obsoletes: tmt-testcloud < 0.17 -Requires: tmt == %{version}-%{release} -Requires: python%{python3_pkgversion}-testcloud >= 0.9.2 -Requires: libvirt-daemon-config-network -Requires: openssh-clients -Requires: (ansible or ansible-core) +%pyproject_extras_subpkg -n tmt export-polarion +%pyproject_extras_subpkg -n tmt report-junit +%pyproject_extras_subpkg -n tmt report-polarion + +%package -n tmt+test-convert +Summary: Dependencies required for tmt test import and export +Obsoletes: tmt-test-convert < %{version}-%{release} +Requires: tmt == %{version}-%{release} +Requires: make +Requires: python3-bugzilla +Requires: python3-nitrate +Requires: python3-html2text +Requires: python3-markdown + +%description -n tmt+test-convert +This is a metapackage bringing in extra dependencies for tmt. +It contains no code, just makes sure the dependencies are installed. + +%package -n tmt+provision-container +Summary: Dependencies required for tmt container provisioner +Obsoletes: tmt-provision-container < %{version}-%{release} +Obsoletes: tmt-container < 0.17 +Requires: tmt == %{version}-%{release} +Requires: podman +Requires: (ansible or ansible-collection-containers-podman) + +%description -n tmt+provision-container +This is a metapackage bringing in extra dependencies for tmt. +It contains no code, just makes sure the dependencies are installed. + +%package -n tmt+provision-virtual +Summary: Dependencies required for tmt virtual machine provisioner +Obsoletes: tmt-provision-virtual < %{version}-%{release} +Obsoletes: tmt-testcloud < 0.17 +Requires: tmt == %{version}-%{release} +Requires: python3-testcloud >= 0.9.10 +Requires: libvirt-daemon-config-network +Requires: openssh-clients +Requires: (ansible or ansible-core) # Recommend qemu system emulators for supported arches %if 0%{?fedora} -Recommends: qemu-system-aarch64-core -Recommends: qemu-system-ppc-core -Recommends: qemu-system-s390x-core -Recommends: qemu-system-x86-core +Recommends: qemu-system-aarch64-core +Recommends: qemu-system-ppc-core +Recommends: qemu-system-s390x-core +Recommends: qemu-system-x86-core %endif
-%package provision-beaker -Summary: Beaker provisioner for the Test Management Tool -Requires: tmt = %{version}-%{release} -Requires: python3-mrack-beaker >= 1.12.1 - -%description provision-beaker -Dependencies required to run tests in a Beaker environment. - -%description provision-virtual -Dependencies required to run tests in a local virtual machine. - -%package test-convert -Summary: Test import and export dependencies -Requires: tmt == %{version}-%{release} -Requires: make python3-nitrate python3-html2text python3-markdown -Requires: python3-bugzilla - -%description test-convert -Additional dependencies needed for test metadata import and export. - -%package report-html -Summary: Report plugin with support for generating web pages -Requires: tmt == %{version}-%{release} - -%description report-html -Generate test results in the html format. Quickly review test -output thanks to direct links to output logs. - -%package report-junit -Summary: Report plugin with support for generating JUnit output file -Requires: tmt == %{version}-%{release} -Requires: python3-junit_xml - -%description report-junit -Generate test results in the JUnit format. - -%package report-polarion -Summary: Report plugin with support for generating Polarion test runs -Requires: tmt-report-junit >= %{version} -Requires: python3-pylero - -%description report-polarion -Generate test results in xUnit format for exporting to Polarion. - -%package report-reportportal -Summary: Report step plugin for ReportPortal -Requires: tmt == %{version}-%{release} -Requires: tmt-report-junit == %{version} - -%description report-reportportal -Report test results to a ReportPortal instance. - -%package all -Summary: Extra dependencies for the Test Management Tool -Requires: tmt >= %{version} -Requires: tmt-provision-container >= %{version} -Requires: tmt-provision-virtual >= %{version} -Requires: tmt-test-convert >= %{version} -Requires: tmt-report-html >= %{version} -Requires: tmt-report-junit >= %{version} -Requires: tmt-report-polarion >= %{version} -Requires: tmt-report-reportportal >= %{version} -Requires: tmt-provision-beaker >= %{version} - -%description all +%description -n tmt+provision-virtual +This is a metapackage bringing in extra dependencies for tmt. +It contains no code, just makes sure the dependencies are installed. + +%package -n tmt+provision-beaker +Summary: Dependencies required for tmt beaker provisioner +Provides: tmt-provision-beaker == %{version}-%{release} +Obsoletes: tmt-provision-beaker < %{version}-%{release} +Requires: tmt == %{version}-%{release} +Requires: python3-mrack-beaker + +%description -n tmt+provision-beaker +This is a metapackage bringing in extra dependencies for tmt. +It contains no code, just makes sure the dependencies are installed. + +# Replace with pyproject_extras_subpkg at some point +%package -n tmt+all +Summary: Extra dependencies for the Test Management Tool +Provides: tmt-all == %{version}-%{release} +Obsoletes: tmt-all < %{version}-%{release} +Requires: tmt+test-convert == %{version}-%{release} +Requires: tmt+export-polarion == %{version}-%{release} +Requires: tmt+provision-container == %{version}-%{release} +Requires: tmt+provision-virtual == %{version}-%{release} +Requires: tmt+provision-beaker == %{version}-%{release} +Requires: tmt+report-junit == %{version}-%{release} +Requires: tmt+report-polarion == %{version}-%{release} + +%description -n tmt+all All extra dependencies of the Test Management Tool. Install this package to have all available plugins ready for testing.
- %prep -%autosetup +%autosetup -p1 -n tmt-%{version}
+%generate_buildrequires +%pyproject_buildrequires
%build -%py3_build - +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_wheel
%install -%py3_install +%pyproject_install +%pyproject_save_files tmt
mkdir -p %{buildroot}%{_mandir}/man1 -mkdir -p %{buildroot}/etc/bash_completion.d/ -install -pm 644 tmt.1* %{buildroot}%{_mandir}/man1 -install -pm 644 bin/complete %{buildroot}/etc/bash_completion.d/tmt -mkdir -p %{buildroot}%{workdir_root} -chmod 1777 %{buildroot}%{workdir_root} +install -pm 644 tmt.1 %{buildroot}%{_mandir}/man1 +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions +install -pm 644 completions/bash/%{name} %{buildroot}%{_datadir}/bash-completion/completions/%{name} +mkdir -pm 1777 %{buildroot}%{workdir_root} mkdir -p %{buildroot}/etc/%{name}/ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%check -%{__python3} -m pytest -vv -m 'not web' --ignore=tests/integration - - -%{!?_licensedir:%global license %%doc} - +%pyproject_check_import
-%files -%{_mandir}/man1/* -%{_bindir}/%{name} +%files -n tmt -f %{pyproject_files} %doc README.rst examples -%license LICENSE -/etc/bash_completion.d/tmt - -%files -n python%{python3_pkgversion}-%{name} -%{python3_sitelib}/%{name}/ -%{python3_sitelib}/%{name}-*.egg-info/ -%license LICENSE +%{_bindir}/tmt +%{_mandir}/man1/tmt.1.gz %dir %{workdir_root} -%exclude %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}{podman,testcloud,mrack}.* -%exclude %{python3_sitelib}/%{name}/steps/provision/mrack -%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}html* -%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}junit.* -%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}polarion.* -%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}reportportal.* - -%exclude %{_sysconfdir}/%{name}/mrack* - -%files provision-container -%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}podman.* +%{_datadir}/bash-completion/completions/%{name}
-%files provision-beaker -%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}mrack.* +%files -n tmt+provision-container -f %{_pyproject_ghost_distinfo} +%files -n tmt+provision-virtual -f %{_pyproject_ghost_distinfo} +%files -n tmt+test-convert -f %{_pyproject_ghost_distinfo} +%files -n tmt+provision-beaker -f %{_pyproject_ghost_distinfo} +%files -n tmt+all -f %{_pyproject_ghost_distinfo} %config(noreplace) %{_sysconfdir}/%{name}/mrack*
-%files provision-virtual -%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}testcloud.* - -%files report-html -%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}html* - -%files report-junit -%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}junit.* - -%files report-polarion -%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}polarion.* - -%files report-reportportal -%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}reportportal.* - -%files test-convert -%license LICENSE - -%files all -%license LICENSE - - %changelog +* Wed Oct 11 2023 Petr Šplíchal psplicha@redhat.com - 1.28.2 +- Build man page during the `release` action + +* Wed Oct 11 2023 Petr Šplíchal psplicha@redhat.com - 1.28.1 +- Remove the `.dev0` suffix from the spec `Version` + +* Fri Oct 06 2023 Petr Šplíchal psplicha@redhat.com - 1.28.0 +- Update the `release` action with `hatch` changes +- Fix the multihost web test to work with container +- Add `skip` as a supported custom result outcome +- Add docs for the new `--update-missing` option +- Remove irrelevant mention of `rhel-8` in the spec +- Record start/end time & duration of test checks +- Add `--update-missing` to update phase fields only when not set by fmf +- Add --skip-prepare-verify-ssh and --post-install-script to artemis plugin (#2347) +- Force tmt-link pre-commit to use fmf 1.3.0 which brings new features (#2376) +- Add logging of applied adjust rules +- Handle all context dimension values case insensitive +- Hide `OPTIONLESS_FIELDS` from `tmt plan show` +- Add context into the `html` report +- Display test check results in `display` report output +- Fix creation of guest data from plugin options +- Allow wider output +- Beaker plugin is negating Beaker operators by default +- Include link to the data directory in the html report +- Teach logging methods to handle common types +- Move the copr repository to the `teemtee` group +- Add a new `cpu` property `stepping` to hardware +- Extract beakerlib phase name to a failure log +- Always show the real beaker job id +- Create a production copr build for each release +- AVC denials check for tests (#2331) +- Add nice & colorfull help to "make" targets +- Include more dependencies in the dev environment +- Stop using the `_version.py` file +- Replace `opt()` for `--dry/--force` with properties +- Update build names for copr/main and pull requests +- Use `hatch` and `pyproject`, refactor `tmt.spec` +- Use dataclass for log record details instead of typed dict +- Refactor html report plugin to use existing template rendering +- Narrow type of hardware constraint variants +- Refactor parameters of `Plan._iter_steps()` +- Use `format_value()` instead of `pprint()` +- Use the minimal plan to test imported plan execution +- Refactor exception rendering to use generators +- Add the `export` callback for fields (#2288) +- Update a verified-by link for the beaker provision +- Multi-string help texts converted to multiline strings +- Make the upload to PyPI working again +- Hide command event debug logs behind a log topic (#2281) +- Replace `pkg_resources` with `importlib.resources` +- Wrap `click.Choice` use with `choices` parameter +- Lower unnecessary verbosity of podman commands +- Move check-related code into `tmt.checks` +- Disable `systemd-resolved` to prevent dns failures +- Adjust test coverage for deep beakerlib libraries +- Document migration from provision.fmf to tmt (#2325) +- Remove TBD of initiator context for Packit +- Fix output indentation of imported plans +- Copr repo with a group owner requires quotes + * Wed Sep 06 2023 Petr Šplíchal psplicha@redhat.com - 1.27.0-1 - Use `testcloud` domain API v2 - Bootstrap before/after test checks (#2210)
commit 960429a4fb08e012c17fcf9f48ea3d70a28a3861 Author: Petr Šplíchal psplicha@redhat.com Date: Thu Sep 7 12:18:01 2023 +0200
Install `yq` which is needed by some newer tests
diff --git a/plans/upstream.fmf b/plans/upstream.fmf index 061f7df..487a06b 100644 --- a/plans/upstream.fmf +++ b/plans/upstream.fmf @@ -1,9 +1,21 @@ summary: Upstream tests working under virtual machine + discover: how: fmf url: https://github.com/teemtee/tmt ref: fedora filter: "tag:virtual & tier:0,1" + +prepare+: + - how: install + package: + - jq + - python3-pip + - how: shell + script: + - pip3 install --user yq || pip3 install yq + - yq --help + execute: how: tmt
commit 358dfd6abb54cf242652946f7b5225995f2bcbf8 Author: Packit hello@packit.dev Date: Thu Sep 7 09:33:16 2023 +0000
[packit] 1.27.0 upstream release
Upstream tag: 1.27.0 Upstream commit: 9c35269a
If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork): ``` git fetch https://src.fedoraproject.org/forks/packit/rpms/tmt.git refs/heads/*:refs/remotes/packit/* git checkout packit/1.27.0-rawhide-update-propose_downstream ```
diff --git a/.gitignore b/.gitignore index 1003363..f9c64f0 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ /tmt-1.25.0.tar.gz /tmt-1.26.0.tar.gz /tmt-1.26.1.tar.gz +/tmt-1.27.0.tar.gz diff --git a/.packit.yaml b/.packit.yaml index 914c8ec..49ee4bb 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -28,9 +28,11 @@ jobs: - job: copr_build trigger: pull_request targets: - - fedora-all - - epel-8 - - epel-9 + fedora-all: {} + epel-9: {} + fedora-39: + additional_repos: + - https://download.copr.fedorainfracloud.org/results/frantisekz/testcloud-wip/... enable_net: False
# Test pull requests @@ -38,7 +40,6 @@ jobs: trigger: pull_request targets: - fedora-all - - epel-8 - epel-9
# Test internal plugins @@ -79,7 +80,6 @@ jobs: branch: main targets: - fedora-all - - epel-8 - epel-9 enable_net: False list_on_homepage: True @@ -92,7 +92,6 @@ jobs: trigger: release dist_git_branches: - fedora-all - - epel-8 - epel-9 actions: post-upstream-clone: [] @@ -103,12 +102,10 @@ jobs: allowed_committers: ["packit", "psss", "lzachar"] dist_git_branches: - fedora-all - - epel-8 - epel-9
- job: bodhi_update trigger: commit dist_git_branches: - fedora-branched - - epel-8 - epel-9 diff --git a/README.packit b/README.packit index 0df7e14..ea0650e 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.79.1.post6+g144ce0c. +The file was generated using packit 0.79.1.post14+g9e876412. diff --git a/sources b/sources index a92a87e..b589a61 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.26.1.tar.gz) = 352581ec5a1d67bfd91ca116d39a06fc7bb1fd4c15ced389a3c22b06de59379eb87b67cc148b2f6595e2283d1c0fb2ce47f42972eedea85ba4e10924f3fd0444 +SHA512 (tmt-1.27.0.tar.gz) = 137d57c6eb8c41b92e0f9ccf81ae0e612e8d05e32dc69eb858e00699439b6bebeead6895afea33d19f6106982268c6ee9bb2c832178f6a6d41ac412a85a94528 diff --git a/tmt.spec b/tmt.spec index 05ab5a0..82df263 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,5 +1,5 @@ Name: tmt -Version: 1.26.1 +Version: 1.27.0 Release: 1%{?dist}
Summary: Test Management Tool @@ -17,12 +17,6 @@ Source0: https://github.com/teemtee/tmt/releases/download/%%7Bversion%7D/tmt-%%7Bvers...
%define workdir_root /var/tmp/tmt
-# Hint for shebang fixer, otherwise uses /usr/bin/python3 -# which can be changed by user -%if 0%{?rhel} == 8 -%global __python3 /usr/bin/python3.6 -%endif - # Main tmt package requires the Python module Requires: python%{python3_pkgversion}-%{name} == %{version}-%{release} Requires: git-core rsync sshpass @@ -44,16 +38,15 @@ BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-click BuildRequires: python%{python3_pkgversion}-fmf >= 1.2.0 BuildRequires: python%{python3_pkgversion}-requests -BuildRequires: python%{python3_pkgversion}-testcloud >= 0.9.2 +BuildRequires: python%{python3_pkgversion}-testcloud >= 0.9.10 BuildRequires: python%{python3_pkgversion}-markdown BuildRequires: python%{python3_pkgversion}-junit_xml BuildRequires: python%{python3_pkgversion}-ruamel-yaml BuildRequires: python%{python3_pkgversion}-jinja2 -# Only needed for rhel-8 (it has python3.6) -%if 0%{?rhel} == 8 +BuildRequires: python%{python3_pkgversion}-pint +# TypeAlias is not available with python3.9 on RHEL9 +%if 0%{?rhel} == 9 BuildRequires: python%{python3_pkgversion}-typing-extensions -BuildRequires: python%{python3_pkgversion}-dataclasses -BuildRequires: python%{python3_pkgversion}-importlib-metadata %endif # Required for tests BuildRequires: rsync @@ -90,17 +83,13 @@ Recommends: qemu-system-s390x-core Recommends: qemu-system-x86-core %endif
-%if 0%{?rhel} >= 9 || 0%{?fedora} %package provision-beaker Summary: Beaker provisioner for the Test Management Tool Requires: tmt = %{version}-%{release} Requires: python3-mrack-beaker >= 1.12.1 -%endif
-%if 0%{?rhel} >= 9 || 0%{?fedora} %description provision-beaker Dependencies required to run tests in a Beaker environment. -%endif
%description provision-virtual Dependencies required to run tests in a local virtual machine. @@ -156,9 +145,7 @@ Requires: tmt-report-html >= %{version} Requires: tmt-report-junit >= %{version} Requires: tmt-report-polarion >= %{version} Requires: tmt-report-reportportal >= %{version} -%if 0%{?rhel} >= 9 || 0%{?fedora} Requires: tmt-provision-beaker >= %{version} -%endif
%description all All extra dependencies of the Test Management Tool. Install this @@ -182,10 +169,8 @@ install -pm 644 tmt.1* %{buildroot}%{_mandir}/man1 install -pm 644 bin/complete %{buildroot}/etc/bash_completion.d/tmt mkdir -p %{buildroot}%{workdir_root} chmod 1777 %{buildroot}%{workdir_root} -%if 0%{?rhel} >= 9 || 0%{?fedora} mkdir -p %{buildroot}/etc/%{name}/ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ -%endif
%check %{__python3} -m pytest -vv -m 'not web' --ignore=tests/integration @@ -218,11 +203,9 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ %files provision-container %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}podman.*
-%if 0%{?rhel} >= 9 || 0%{?fedora} %files provision-beaker %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}mrack.* %config(noreplace) %{_sysconfdir}/%{name}/mrack* -%endif
%files provision-virtual %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}testcloud.* @@ -247,8 +230,47 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog -* Fri Sep 01 2023 Lukáš Zachar lzachar@redhat.com - 1.26.1 +* Wed Sep 06 2023 Petr Šplíchal psplicha@redhat.com - 1.27.0-1 +- Use `testcloud` domain API v2 +- Bootstrap before/after test checks (#2210) +- Separate value formatting from key/value nature of tmt.utils.format() +- Render `link` fields in tmt stories and specs +- Render default friendly command for guest execution +- Use consistently plural/singular forms in docs +- Make file/fmf dependencies hashable - Rewrite git url for discover fmf: modified-only +- Refactor Artemis and Beaker provision tests to make room for HW +- Adjust imported plan to let its adjust rules make changes +- Get Ansible logging on par with general command execution +- Support Click versions newer than 8.1.4 +- Teach tmt test create to link relevant issues (#2273) +- Add story describing CLI for multiple phases +- When rendering exception, indetation was dropping empty lines +- Expose tmt version as an environment variable +- Fix handling of integers and hostname in Beaker plugin +- Fix bug where polarion component is misinterpreted as list +- Refactor recording of CLI subcommand invocations (#2188) +- Put `--help` at the end of the CLI in the step usage +- Extend the expected `pip install` fail to `f-39` +- Make `tmt init` add .fmf directory into git index +- Fix guest data show() and how it displays hardware requirements +- Add lint check for matching guests, roles and where keys +- Add -e/--environment/--environment-files to plan show/export +- No more need to install `pre-commit` using `pip` +- Ensure that step phases have unique names +- Verbose regular expression for linter descriptions +- Initial draft of hardware requirement helpers +- Simplify the reportportal plugin test using `yq` +- Add dynamic ref support to library type dependency +- Remove `epel-8` and `python-3.6` specifics +- Use the latest `sphinx-rtd-theme` for docs building +- Full `pip install` expected to fail on `Rawhide` +- Add missing name attribute to report plugins schema +- Add missing arguments in polarion report schema +- Extend sufficiently the full test suite duration +- Add support for log types to Artemis plugin +- Fix `tmt run --follow`, add test coverage for it +- Remove the temporary hotfix for deep libraries
* Mon Jul 31 2023 Lukáš Zachar lzachar@redhat.com - 1.26.0 - Do not throw an exception on missing mrack.log @@ -279,11 +301,6 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/ * Mon Jul 10 2023 Lukáš Zachar lzachar@redhat.com - 1.25.0 - Test for pruning needs VM - Internal anonymous git:// access is deprecated -- Add tests and some modifications after rebases -- Clone to tmp and use fmf.Tree.find instead of looping -- Add clone_dirpath to Common -- Fix bad usage of path and name -- Fix multiple clones and inherited fmf metadata - Beakerlibs pruning and merge - Add dynamic ref evaluation support to plan import - Replace self.opt() when looking for debug/verbose/quiet setting
commit b8f07e3a742dfff96aae805c90a838f87f986d75 Author: Packit hello@packit.dev Date: Fri Sep 1 18:40:58 2023 +0000
[packit] 1.26.1 upstream release
Upstream tag: 1.26.1 Upstream commit: 2cfb13eb
If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork): ``` git fetch https://src.fedoraproject.org/forks/packit/rpms/tmt.git refs/heads/*:refs/remotes/packit/* git checkout packit/1.26.1-rawhide-update-propose_downstream ```
diff --git a/.gitignore b/.gitignore index 427a8d2..1003363 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ /tmt-1.24.1.tar.gz /tmt-1.25.0.tar.gz /tmt-1.26.0.tar.gz +/tmt-1.26.1.tar.gz diff --git a/README.packit b/README.packit index 9d6cbbc..0df7e14 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.78.1. +The file was generated using packit 0.79.1.post6+g144ce0c. diff --git a/sources b/sources index e27bb6c..a92a87e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.26.0.tar.gz) = 6010878e45ea24df70f1221565d3cca272312bdddd8c228530206aab9d9424033e0a2e810485e99c7bd092e50a1a360355fbfd3b20252f0e1e4055111e9adbf3 +SHA512 (tmt-1.26.1.tar.gz) = 352581ec5a1d67bfd91ca116d39a06fc7bb1fd4c15ced389a3c22b06de59379eb87b67cc148b2f6595e2283d1c0fb2ce47f42972eedea85ba4e10924f3fd0444 diff --git a/tmt.spec b/tmt.spec index 8b88f61..05ab5a0 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,5 +1,5 @@ Name: tmt -Version: 1.26.0 +Version: 1.26.1 Release: 1%{?dist}
Summary: Test Management Tool @@ -247,6 +247,9 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog +* Fri Sep 01 2023 Lukáš Zachar lzachar@redhat.com - 1.26.1 +- Rewrite git url for discover fmf: modified-only + * Mon Jul 31 2023 Lukáš Zachar lzachar@redhat.com - 1.26.0 - Do not throw an exception on missing mrack.log - Allow injecting credentials for git clone
commit 267fe0fbc927cb68199cdb71fd7b9fe757c55b7e Author: Packit hello@packit.dev Date: Mon Jul 31 19:22:17 2023 +0000
[packit] 1.26.0 upstream release
Upstream tag: 1.26.0 Upstream commit: fa1b3519
If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork): ``` git fetch https://src.fedoraproject.org/forks/packit/rpms/tmt.git refs/heads/*:refs/remotes/packit/* git checkout packit/1.26.0-rawhide-update-propose_downstream ```
diff --git a/.gitignore b/.gitignore index e767516..427a8d2 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ /tmt-1.23.0.tar.gz /tmt-1.24.1.tar.gz /tmt-1.25.0.tar.gz +/tmt-1.26.0.tar.gz diff --git a/.packit.yaml b/.packit.yaml index 77e1513..914c8ec 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -12,7 +12,7 @@ issue_repository: https://github.com/teemtee/tmt
actions: post-upstream-clone: - - echo + - make bump2dev create-archive: - make tarball get-current-version: @@ -95,8 +95,7 @@ jobs: - epel-8 - epel-9 actions: - post-upstream-clone: - - echo + post-upstream-clone: []
- job: koji_build trigger: commit diff --git a/README.packit b/README.packit index 83c84ce..9d6cbbc 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.75.0. +The file was generated using packit 0.78.1. diff --git a/sources b/sources index ff0d1f1..e27bb6c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.25.0.tar.gz) = b79a038ca229d719ac5f6cdb8156424c3dfc9d81afade597e39bf2b3f08e23434965302370304a31e0345919a9a82a00e224003ccde3765b7f369898d8aaea6a +SHA512 (tmt-1.26.0.tar.gz) = 6010878e45ea24df70f1221565d3cca272312bdddd8c228530206aab9d9424033e0a2e810485e99c7bd092e50a1a360355fbfd3b20252f0e1e4055111e9adbf3 diff --git a/tmt.spec b/tmt.spec index e62030f..8b88f61 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,6 +1,6 @@ Name: tmt -Version: 1.25.0 -Release: 2%{?dist} +Version: 1.26.0 +Release: 1%{?dist}
Summary: Test Management Tool License: MIT @@ -49,7 +49,6 @@ BuildRequires: python%{python3_pkgversion}-markdown BuildRequires: python%{python3_pkgversion}-junit_xml BuildRequires: python%{python3_pkgversion}-ruamel-yaml BuildRequires: python%{python3_pkgversion}-jinja2 -# Removed python3-mrack-beaker BuildRequire to unblock build # Only needed for rhel-8 (it has python3.6) %if 0%{?rhel} == 8 BuildRequires: python%{python3_pkgversion}-typing-extensions @@ -248,8 +247,31 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog -* Sat Jul 22 2023 Fedora Release Engineering releng@fedoraproject.org - 1.25.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild +* Mon Jul 31 2023 Lukáš Zachar lzachar@redhat.com - 1.26.0 +- Do not throw an exception on missing mrack.log +- Allow injecting credentials for git clone +- Exception in web_link() when node root is missing +- Rewrite url in git_clone +- Add support for rendering error tracebacks +- ReST export plugin should accept --template option +- Add `role` to the Beaker provision plugin schema +- Fix test checking custom destination for libraries +- Create plans to cover individual step features (#2216) +- Add cache_property for things that are generated but not often +- Simplify public git conversion with a declarative list +- Spec-based container becomes generic over input/output specs +- Clean up logging in `tmt.utils.create_directory()` +- Move test framework code into distinct framework classes +- Add template option to polarion report +- Group discover/fmf options, improve wording a bit +- Record tmt command line in tmt log +- Add note about dynamic ref to the plan import spec +- Use the `Deprecated` class for deprecated options +- Remove `python3-mrack-beaker` from `BuildRequires` +- Switch discover/fmf to our field() implementation +- Lock the `click` version < 8.1.4 +- Refine examples of plans > discover > fmf +- Override packit actions for `propose_downstream`
* Mon Jul 10 2023 Lukáš Zachar lzachar@redhat.com - 1.25.0 - Test for pruning needs VM
commit d5dae2eab06af46b7d5c0d89c0a29fd4e2e88471 Author: Fedora Release Engineering releng@fedoraproject.org Date: Sat Jul 22 16:29:26 2023 +0000
Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/tmt.spec b/tmt.spec index 66a031f..e62030f 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,6 +1,6 @@ Name: tmt Version: 1.25.0 -Release: 1%{?dist} +Release: 2%{?dist}
Summary: Test Management Tool License: MIT @@ -248,6 +248,9 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog +* Sat Jul 22 2023 Fedora Release Engineering releng@fedoraproject.org - 1.25.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Mon Jul 10 2023 Lukáš Zachar lzachar@redhat.com - 1.25.0 - Test for pruning needs VM - Internal anonymous git:// access is deprecated
commit b60b1474b8e911a84f6d9e3268fb0b1abf10f797 Author: Lukas Zachar lzachar@redhat.com Date: Mon Jul 10 16:46:15 2023 +0200
Remove BuildRequire on python3-mrack-beaker temporarily
Isn't really required during the build and currently cannot be installed. Details in https://bugzilla.redhat.com/show_bug.cgi?id=2219944 and https://bugzilla.redhat.com/show_bug.cgi?id=2220610
diff --git a/tmt.spec b/tmt.spec index 2df2a25..66a031f 100644 --- a/tmt.spec +++ b/tmt.spec @@ -49,9 +49,7 @@ BuildRequires: python%{python3_pkgversion}-markdown BuildRequires: python%{python3_pkgversion}-junit_xml BuildRequires: python%{python3_pkgversion}-ruamel-yaml BuildRequires: python%{python3_pkgversion}-jinja2 -%if 0%{?rhel} >= 9 || 0%{?fedora} -BuildRequires: python%{python3_pkgversion}-mrack-beaker >= 1.12.1 -%endif +# Removed python3-mrack-beaker BuildRequire to unblock build # Only needed for rhel-8 (it has python3.6) %if 0%{?rhel} == 8 BuildRequires: python%{python3_pkgversion}-typing-extensions
commit fe802a9642b68d63feef337cd8a2c64c547bbc9c Author: Lukas Zachar lzachar@redhat.com Date: Mon Jul 10 16:18:17 2023 +0200
[packit] 1.25.0 upstream release
Upstream tag: 1.25.0 Upstream commit: 7b7ecc7b
diff --git a/.gitignore b/.gitignore index ac28522..e767516 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ /tmt-1.22.0.tar.gz /tmt-1.23.0.tar.gz /tmt-1.24.1.tar.gz +/tmt-1.25.0.tar.gz diff --git a/.packit.yaml b/.packit.yaml index f14e8c4..77e1513 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -11,10 +11,12 @@ upstream_project_url: https://github.com/teemtee/tmt issue_repository: https://github.com/teemtee/tmt
actions: - create-archive: - - make tarball - get-current-version: - - make version + post-upstream-clone: + - echo + create-archive: + - make tarball + get-current-version: + - make version
srpm_build_deps: - make @@ -22,84 +24,92 @@ srpm_build_deps:
jobs:
-- job: copr_build - trigger: pull_request - targets: - - fedora-all - - epel-8 - - epel-9 - enable_net: False + # Build pull requests + - job: copr_build + trigger: pull_request + targets: + - fedora-all + - epel-8 + - epel-9 + enable_net: False
-- job: tests - trigger: pull_request - targets: - - fedora-all - - epel-8 - - epel-9 + # Test pull requests + - job: tests + trigger: pull_request + targets: + - fedora-all + - epel-8 + - epel-9
-- job: tests - trigger: pull_request - identifier: "internal-plugins" - targets: - - fedora-latest-stable - use_internal_tf: True - fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git" - # Tag cloud resources for tmt - tf_extra_params: - environments: - - settings: - provisioning: - tags: - BusinessUnit: tmt + # Test internal plugins + - job: tests + trigger: pull_request + identifier: "internal-plugins" + targets: + - fedora-latest-stable + use_internal_tf: True + fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git" + # Tag cloud resources for tmt + tf_extra_params: + environments: + - settings: + provisioning: + tags: + BusinessUnit: tmt
-- job: tests - trigger: pull_request - identifier: "internal-wow" - targets: - - fedora-latest-stable - use_internal_tf: True - fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git" - tmt_plan: "/tmt/integration/plan" - tf_extra_params: - environments: - - settings: - provisioning: - tags: - BusinessUnit: tmt + # Test internal wow + - job: tests + trigger: pull_request + identifier: "internal-wow" + targets: + - fedora-latest-stable + use_internal_tf: True + fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git" + tmt_plan: "/tmt/integration/plan" + tf_extra_params: + environments: + - settings: + provisioning: + tags: + BusinessUnit: tmt
-- job: copr_build - trigger: commit - branch: main - targets: - - fedora-all - - epel-8 - - epel-9 - enable_net: False - list_on_homepage: True - preserve_project: True - owner: psss - project: tmt + # Build commits to main + - job: copr_build + trigger: commit + branch: main + targets: + - fedora-all + - epel-8 + - epel-9 + enable_net: False + list_on_homepage: True + preserve_project: True + owner: psss + project: tmt
-# Fedora releases -- job: propose_downstream - trigger: release - dist_git_branches: - - fedora-all - - epel-8 - - epel-9 + # Fedora releases + - job: propose_downstream + trigger: release + dist_git_branches: + - fedora-all + - epel-8 + - epel-9 + actions: + post-upstream-clone: + - echo
-- job: koji_build - trigger: commit - allowed_pr_authors: ["packit", "psss", "lzachar"] - allowed_committers: ["packit", "psss", "lzachar"] - dist_git_branches: - - fedora-all - - epel-8 - - epel-9 + - job: koji_build + trigger: commit + allowed_pr_authors: ["packit", "psss", "lzachar"] + allowed_committers: ["packit", "psss", "lzachar"] + dist_git_branches: + - fedora-all + - epel-8 + - epel-9
-- job: bodhi_update - trigger: commit - dist_git_branches: - - fedora-branched - - epel-8 - - epel-9 + - job: bodhi_update + trigger: commit + dist_git_branches: + - fedora-branched + - epel-8 + - epel-9 diff --git a/README.packit b/README.packit index 01582f6..83c84ce 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.76.0. +The file was generated using packit 0.75.0. diff --git a/sources b/sources index ac226e7..ff0d1f1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.24.1.tar.gz) = d749c1b7c97d879d81549c09428bca9fae0ea4bab51c7d95b5bff7e5485dd46b3664f74851592624d269d821c3f573ea204ded09264f355dfa24f0c77c99806f +SHA512 (tmt-1.25.0.tar.gz) = b79a038ca229d719ac5f6cdb8156424c3dfc9d81afade597e39bf2b3f08e23434965302370304a31e0345919a9a82a00e224003ccde3765b7f369898d8aaea6a diff --git a/tmt.spec b/tmt.spec index d0a4dc8..2df2a25 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,6 +1,6 @@ Name: tmt -Version: 1.24.1 -Release: 2%{?dist} +Version: 1.25.0 +Release: 1%{?dist}
Summary: Test Management Tool License: MIT @@ -14,7 +14,6 @@ ExcludeArch: %{power64}
URL: https://github.com/teemtee/tmt Source0: https://github.com/teemtee/tmt/releases/download/%%7Bversion%7D/tmt-%%7Bvers... -Patch0: dnf5-support.patch
%define workdir_root /var/tmp/tmt
@@ -170,7 +169,7 @@ package to have all available plugins ready for testing.
%prep -%autosetup -p1 +%autosetup
%build @@ -251,6 +250,84 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog +* Mon Jul 10 2023 Lukáš Zachar lzachar@redhat.com - 1.25.0 +- Test for pruning needs VM +- Internal anonymous git:// access is deprecated +- Add tests and some modifications after rebases +- Clone to tmp and use fmf.Tree.find instead of looping +- Add clone_dirpath to Common +- Fix bad usage of path and name +- Fix multiple clones and inherited fmf metadata +- Beakerlibs pruning and merge +- Add dynamic ref evaluation support to plan import +- Replace self.opt() when looking for debug/verbose/quiet setting +- Reimplement the `ReportPortal` plugin using API +- Make `Step` class own export of step data (#2040) +- Make relevancy/coverage linters to not re-read fmf files +- Add a single `tmpdir` fixture for all Python versions +- Replace named tuples with data classes +- Replace `/` in safe name, and fix prepare step to use safe names +- Do not export fmf id's ref when it's the default branch +- Move the sync libraries into a separate section +- Allow running next plan in queue when one fails to complete +- Fix a too strict check for the detected library +- Convert provision plugins' step data to our field implementation +- Convert execute plugins to `tmt.utils.field()` for options +- Cache that beakerlib/library repo is missing +- Use code-block directive for examples and code blocks +- Add the `show()` method for guest data packages +- Turn fmf context into a fancy dict +- Enable ruff checks for mutable dataclass field defaults +- Create option metavar from listed choices +- Document how to modify imported plans +- Recommend needs a different option for `dnf5` +- Ask ruff to show what it fixed +- Bumps supported Artemis API to 0.0.58 +- Use `--version` to gather the package_manager fact +- Use f-strings where possible +- Bump pre-commit hooks to latest version +- Fix ruff RUF010: Use f-strings conversion flags +- Fix py<38 mypy type:ignore being on wrong line +- Move isort to ruff +- Enable passing Pylint checks +- Fix ruff RSE102: Unnecessary parentheses on exception +- Fix ruff PIE: flake8-pie errors +- Remove duplicates from ruff rules selection +- Fix ruff SIM: flake8-simplify errors +- Fix ruff RET: flake8-return errors +- Fix ruff PT: flake8-pytest-style errors +- Fix ruff UP: pyupgrade errors +- Fix ruff N: pep8-naming errors +- Fix ruff RUF005: collection-literal-concatenation +- Fix ruff B: flake8-bugbear errors +- Fix flake8 C405: unnecessary literal set +- Fix flake8 C401: unnecessary generator set +- Fix flake8 C416: unnecessary comprehension +- Fix flake8 C408: unnecessary collection calls +- Polarion report set to UTC timezone +- Add `Organize Data` as a new tmt guide chapter +- Fix emptiness check of /var/tmp/tmt in /tests/status/base +- Allow modification of imported plans +- Raise error if malformed test metadata is given +- Ensure test with empty custom results ends as an ERROR +- Fix /tests/status/base when /var/tmp/tmt is empty +- Remove `pytest.ini` from the `Makefile` targets +- Bad source path for local libraries file require +- Remove useless loop.cycle() from the HTML report +- Implement basic filtering for the HTML report +- Cleanup of "logging function" types +- Do not patch verbosity in discover for --fmf-id +- Drop enum from HW hypervisor and boot method constraints +- Fix enforcement of workdir root in full workdir root test +- Narrow type of file & library dependencies +- Make web-link test play nicely with custom SSH host config +- Use serialization callbacks for last script fields +- Save click context in click context object +- Add the `envvar` argument to `utils.field()` +- Improve structure of the packit config a bit +- Update release instructions with simplified steps +- Sync changelog when creating downstream release + * Fri Jun 09 2023 Petr Šplíchal psplicha@redhat.com - 1.24.1-1 - Revert the `Source0` url to the original value - Use correct url for the release archive, fix docs
commit a57fedc071adf2a090973f3544ff83ba33a68f59 Author: Lukas Zachar lzachar@redhat.com Date: Thu Jun 22 12:01:11 2023 +0200
Backported dnf5 related changes
diff --git a/dnf5-support.patch b/dnf5-support.patch new file mode 100644 index 0000000..eb06e46 --- /dev/null +++ b/dnf5-support.patch @@ -0,0 +1,66 @@ +--- tmt-1.24.1/tmt/steps/prepare/install.py.old 2023-06-22 11:57:06.633409186 +0200 ++++ tmt-1.24.1/tmt/steps/prepare/install.py 2023-06-22 11:57:45.239501579 +0200 +@@ -273,6 +273,7 @@ class InstallDnf(InstallBase): + + package_manager = "dnf" + copr_plugin = "dnf-plugins-core" ++ skip_missing_option = "--skip-broken" + + def prepare_command(self) -> Tuple[Command, Command]: + """ Prepare installation command """ +@@ -290,7 +291,7 @@ class InstallDnf(InstallBase): + command += Command(self.package_manager) + + if self.skip_missing: +- command += Command('--skip-broken') ++ options += Command(self.skip_missing_option) + + return (command, options) + +@@ -356,6 +357,14 @@ class InstallDnf(InstallBase): + self.guest.execute(command) + + ++class InstallDnf5(InstallDnf): ++ """ Install packages using dnf5 """ ++ ++ package_manager = "dnf5" ++ copr_plugin = "dnf5-plugins" ++ skip_missing_option = "--skip-unavailable" ++ ++ + class InstallYum(InstallDnf): + """ Install packages using yum """ + +@@ -592,6 +601,9 @@ class PrepareInstall(tmt.steps.prepare.P + elif guest.facts.package_manager == GuestPackageManager.DNF: + installer = InstallDnf(logger=logger, parent=self, guest=guest) + ++ elif guest.facts.package_manager == GuestPackageManager.DNF5: ++ installer = InstallDnf5(logger=logger, parent=self, guest=guest) ++ + elif guest.facts.package_manager == GuestPackageManager.YUM: + installer = InstallYum(logger=logger, parent=self, guest=guest) + +--- tmt-1.24.1/tmt/steps/provision/__init__.py.old 2023-06-22 11:56:50.556370700 +0200 ++++ tmt-1.24.1/tmt/steps/provision/__init__.py 2023-06-22 11:58:00.472538032 +0200 +@@ -64,6 +64,7 @@ class CheckRsyncOutcome(enum.Enum): + + class GuestPackageManager(enum.Enum): + DNF = 'dnf' ++ DNF5 = 'dnf5' + YUM = 'yum' + RPM_OSTREE = 'rpm-ostree' + +@@ -274,8 +275,9 @@ class GuestFacts(tmt.utils.SerializableC + guest, + [ + (Command('stat', '/run/ostree-booted'), GuestPackageManager.RPM_OSTREE), +- (Command('rpm', '-q', 'dnf'), GuestPackageManager.DNF), +- (Command('rpm', '-q', 'yum'), GuestPackageManager.YUM), ++ (Command('dnf5', '--version'), GuestPackageManager.DNF5), ++ (Command('dnf', '--version'), GuestPackageManager.DNF), ++ (Command('yum', '--version'), GuestPackageManager.YUM), + # And, one day, we'd follow up on this with... + # (Command('dpkg', '-l', 'apt'), 'apt') + ]) diff --git a/tmt.spec b/tmt.spec index f782ce0..d0a4dc8 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,6 +1,6 @@ Name: tmt Version: 1.24.1 -Release: 1%{?dist} +Release: 2%{?dist}
Summary: Test Management Tool License: MIT @@ -14,6 +14,7 @@ ExcludeArch: %{power64}
URL: https://github.com/teemtee/tmt Source0: https://github.com/teemtee/tmt/releases/download/%%7Bversion%7D/tmt-%%7Bvers... +Patch0: dnf5-support.patch
%define workdir_root /var/tmp/tmt
@@ -169,7 +170,7 @@ package to have all available plugins ready for testing.
%prep -%autosetup +%autosetup -p1
%build
commit 2a37959c5324c3e1471b0558b68eed0ac5dcc42d Author: Petr Šplíchal psplicha@redhat.com Date: Mon Mar 14 13:08:33 2022 +0100
Use the correct tmt name, link to main docs only
diff --git a/README.md b/README.md index a439e31..5bfedcd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # tmt
-Test Metadata Tool +Test Management Tool
-* https://github.com/psss/tmt/ * https://tmt.readthedocs.io/
commit a9dc05644b6df359dff58fc7a414ca83e2f49071 Author: Petr Šplíchal psplicha@redhat.com Date: Fri Jun 9 10:55:28 2023 +0200
[packit] 1.24.1 upstream release
Upstream tag: 1.24.1 Upstream commit: 9206e034
diff --git a/.gitignore b/.gitignore index 357ed76..ac28522 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ /tmt-1.21.0.tar.gz /tmt-1.22.0.tar.gz /tmt-1.23.0.tar.gz +/tmt-1.24.1.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..f14e8c4 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,105 @@ +specfile_path: tmt.spec +files_to_sync: + - tmt.spec + - .packit.yaml +sync_changelog: true + +upstream_project_name: tmt +downstream_package_name: tmt + +upstream_project_url: https://github.com/teemtee/tmt +issue_repository: https://github.com/teemtee/tmt + +actions: + create-archive: + - make tarball + get-current-version: + - make version + +srpm_build_deps: + - make + - python3-docutils + +jobs: + +- job: copr_build + trigger: pull_request + targets: + - fedora-all + - epel-8 + - epel-9 + enable_net: False + +- job: tests + trigger: pull_request + targets: + - fedora-all + - epel-8 + - epel-9 + +- job: tests + trigger: pull_request + identifier: "internal-plugins" + targets: + - fedora-latest-stable + use_internal_tf: True + fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git" + # Tag cloud resources for tmt + tf_extra_params: + environments: + - settings: + provisioning: + tags: + BusinessUnit: tmt + +- job: tests + trigger: pull_request + identifier: "internal-wow" + targets: + - fedora-latest-stable + use_internal_tf: True + fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git" + tmt_plan: "/tmt/integration/plan" + tf_extra_params: + environments: + - settings: + provisioning: + tags: + BusinessUnit: tmt + +- job: copr_build + trigger: commit + branch: main + targets: + - fedora-all + - epel-8 + - epel-9 + enable_net: False + list_on_homepage: True + preserve_project: True + owner: psss + project: tmt + +# Fedora releases +- job: propose_downstream + trigger: release + dist_git_branches: + - fedora-all + - epel-8 + - epel-9 + +- job: koji_build + trigger: commit + allowed_pr_authors: ["packit", "psss", "lzachar"] + allowed_committers: ["packit", "psss", "lzachar"] + dist_git_branches: + - fedora-all + - epel-8 + - epel-9 + +- job: bodhi_update + trigger: commit + dist_git_branches: + - fedora-branched + - epel-8 + - epel-9 diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..01582f6 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 0.76.0. diff --git a/sources b/sources index 54c580c..ac226e7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tmt-1.23.0.tar.gz) = 1ecc3ddd8a1700f0dca7747a3b426ff30bb95cdc5b3aaecbb6eb17485f94b4e72bbca2a390a5a55729b5c1e82388a066f68f33a698742ab1bd5ef49ab35742d2 +SHA512 (tmt-1.24.1.tar.gz) = d749c1b7c97d879d81549c09428bca9fae0ea4bab51c7d95b5bff7e5485dd46b3664f74851592624d269d821c3f573ea204ded09264f355dfa24f0c77c99806f diff --git a/tmt.spec b/tmt.spec index a1de030..f782ce0 100644 --- a/tmt.spec +++ b/tmt.spec @@ -1,6 +1,6 @@ Name: tmt -Version: 1.23.0 -Release: 2%{?dist} +Version: 1.24.1 +Release: 1%{?dist}
Summary: Test Management Tool License: MIT @@ -61,8 +61,6 @@ BuildRequires: python%{python3_pkgversion}-importlib-metadata # Required for tests BuildRequires: rsync %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} -# Necessary until tmt-1.24 is released -Requires: python%{python3_pkgversion}-setuptools
%description -n python%{python3_pkgversion}-%{name} The tmt Python module and command line tool implement the test @@ -252,8 +250,54 @@ install -pm 644 %{name}/steps/provision/mrack/mrack* %{buildroot}/etc/%{name}/
%changelog -* Thu May 15 2023 Lukáš Zachar lzachar@redhat.com - 1.23.0-2 -- Require python3-setuptools +* Fri Jun 09 2023 Petr Šplíchal psplicha@redhat.com - 1.24.1-1 +- Revert the `Source0` url to the original value +- Use correct url for the release archive, fix docs + +* Wed Jun 07 2023 Petr Šplíchal psplicha@redhat.com - 1.24.0-1 +- Do not display guest facts when showing a plan +- Add new guide/summary for multihost testing +- Define a "plugin registry" class +- Hide `facts` in the `virtual` provision plugin +- Cache resolved linters +- Improve documentation of lint checks (#2089) +- A custom wrapper for options instead of click.option() +- Identify incorrect subcommand after a correct one +- Remove one extra space between @ and decorator name +- Assign envvars to Polarion report arguments +- Expose "key address" to normalization callbacks (#1869) +- Move export of special test/plan/story fields to their respective classes +- Expose guest topology to tests and scripts (#2072) +- Enable building downstream release using Packit +- Add sections for environment variable groups +- Add default envvar to plugin options +- Load env TMT_WORKDIR_ROOT when running tmt status (#2087) +- Opportunistically use "selectable" entry_points. +- Explicitly convert tmpdir to str in test_utils.py. +- Move pytest.ini contents to pyproject.toml. +- Rename Require* classes to Dependency* (#2099) +- Expose fmf ID of tests in results +- Use the `tmt-lint` pre-commit hook +- Turn finish step implementation to queue-based one (#2110) +- Convert base classes to data classes (#2080) +- Crashed prepare and execute steps propagate all causes +- Support exceptions with multiple causes +- Make "needs sudo" a guest fact (#2096) +- Test data path must use safe guest/test names +- Support for multi case import from Polarion and Polarion as only source (#2084) +- Fix search function in docs +- Make tmt test wrapper name unique to avoid race conditions +- Change link-polarion argument default to false +- Add export plugin for JSON (#2058) +- Handle el6 as a legacy os too in virtual provision +- Hint beakerlib is old when result parsing fails +- Revert "Fix dry mode handling when running a remote plan" +- Set a new dict instance to the Plan class +- Replaces "common" object with logger in method hint logging +- Parallelize prepare and execute steps +- Formalizing guest "facts" storage +- Support urllib3 2.x and its allowed_methods/method_whitelist +- Require setuptools
* Thu May 11 2023 Lukáš Zachar lzachar@redhat.com - 1.23.0-1 - Add `Artemis` to the `provision` documentation
arch-excludes@lists.fedoraproject.org