1 Commits

Author SHA1 Message Date
Petr Šplíchal 28b3f3e400 Try fetching a source rpm for installed tmt 2021-06-17 14:55:34 +02:00
15 changed files with 996 additions and 2797 deletions
-66
View File
@@ -17,69 +17,3 @@
/tmt-1.4.0.tar.gz
/tmt-1.5.0.tar.gz
/tmt-1.6.0.tar.gz
/tmt-1.7.0.tar.gz
/tmt-1.8.0.tar.gz
/tmt-1.9.0.tar.gz
/tmt-1.10.0.tar.gz
/tmt-1.11.0.tar.gz
/tmt-1.12.0.tar.gz
/tmt-1.13.0.tar.gz
/tmt-1.14.0.tar.gz
/tmt-1.15.0.tar.gz
/tmt-1.16.0.tar.gz
/tmt-1.17.0.tar.gz
/tmt-1.18.0.tar.gz
/tmt-1.19.0.tar.gz
/tmt-1.20.0.tar.gz
/tmt-1.21.0.tar.gz
/tmt-1.22.0.tar.gz
/tmt-1.23.0.tar.gz
/tmt-1.24.1.tar.gz
/tmt-1.25.0.tar.gz
/tmt-1.26.0.tar.gz
/tmt-1.26.1.tar.gz
/tmt-1.27.0.tar.gz
/tmt-1.28.2.tar.gz
/tmt-1.29.0.tar.gz
/tmt-1.30.0.tar.gz
/tmt-1.31.0.tar.gz
/tmt-1.32.1.tar.gz
/tmt-1.32.2.tar.gz
/tmt-1.33.0.tar.gz
/tmt-1.34.0.tar.gz
/tmt-1.35.0.tar.gz
/tmt-1.36.0.tar.gz
/tmt-1.36.1.tar.gz
/tmt-1.37.0.tar.gz
/tmt-1.38.0.tar.gz
/tmt-1.39.0.tar.gz
/tmt-1.40.0.tar.gz
/tmt-1.41.0.tar.gz
/tmt-1.41.1.tar.gz
/tmt-1.42.1.tar.gz
/tmt-1.43.0.tar.gz
/tmt-1.44.0.tar.gz
/tmt-1.45.0.tar.gz
/tmt-1.46.0.tar.gz
/tmt-1.47.0.tar.gz
/tmt-1.48.0.tar.gz
/tmt-1.49.0.tar.gz
/tmt-1.50.0.tar.gz
/tmt-1.51.0.tar.gz
/tmt-1.52.0.tar.gz
/tmt-1.53.0.tar.gz
/tmt-1.54.0.tar.gz
/tmt-1.55.0.tar.gz
/tmt-1.56.0.tar.gz
/tmt-1.57.0.tar.gz
/tmt-1.58.0.tar.gz
/tmt-1.59.0.tar.gz
/tmt-1.60.0.tar.gz
/tmt-1.61.0.tar.gz
/tmt-1.62.1.tar.gz
/tmt-1.63.0.tar.gz
/tmt-1.64.0.tar.gz
/tmt-1.65.0.tar.gz
/tmt-1.66.0.tar.gz
/tmt-1.67.0.tar.gz
/tmt-1.68.0.tar.gz
-245
View File
@@ -1,245 +0,0 @@
---
specfile_path: packaging/rpm/tmt.spec
files_to_sync:
- src: packaging/rpm/
dest: ./
delete: true
filters:
- "protect .git*"
- "protect sources"
- "protect changelog"
- "protect README*"
# TODO: remove once https://github.com/fedora-ci/jenkins-pipeline-library/pull/100 is merged
- "protect ci.fmf"
- src: packaging/
dest: ./
filters:
- "- rpm"
- .packit.yaml
upstream_package_name: tmt
downstream_package_name: tmt
upstream_project_url: https://github.com/teemtee/tmt
issue_repository: https://github.com/teemtee/tmt
srpm_build_deps:
- hatch
- python3-hatch-vcs
actions: &base-actions
create-archive:
- hatch build -t sdist
- bash -c "echo dist/tmt-$PACKIT_PROJECT_VERSION.tar.gz"
get-current-version:
- hatch version
targets: &all-targets
- fedora-all
- epel-9
- epel-10
# Uncomment below line if OpenScanHub scans are failing
# osh_diff_scan_after_copr_build: false
# Common definitions
_:
# Copr jobs under the packit project
- &copr-under-packit
job: copr_build
additional_repos:
- copr://@teemtee/stable
# Copr jobs under the teemtee project
- &copr-under-teemtee
<<: *copr-under-packit
list_on_homepage: true
preserve_project: true
owner: "@teemtee"
# Test jobs base setup
- &test-base
job: tests
trigger: pull_request
tf_extra_params:
environments:
- &copr-teemtee-stable
artifacts:
# Testing Farm fails to install the repository when a multiline
# string is used. The script looks broken, as if one piece of
# the process incorrectly loads it, producing broken repo file
# URL.
- type: repository-file
# yamllint disable-line rule:line-length
id: https://copr.fedorainfracloud.org/coprs/g/teemtee/stable/repo/fedora-rawhide/group_teemtee-stable-fedora-rawhide.repo
- type: repository-file
# yamllint disable-line rule:line-length
id: https://copr.fedorainfracloud.org/coprs/g/teemtee/stable/repo/epel-9/group_teemtee-stable-epel-9.repo
# Latest fedora & epel targets
- &latest-targets
- fedora-latest-stable
- epel-10
# Internal jobs
- &internal
use_internal_tf: true
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- &tmt-cloud-resources
<<: *copr-teemtee-stable
settings:
provisioning:
tags:
BusinessUnit: tmt
# Core test requires
- &require-core-tests
require:
label:
absent:
- ci | skip
# Full test requires
- &require-full-tests
require:
label:
present:
- ci | full test
absent:
- status | discuss
- ci | skip
# Internal provisioning jobs
- &internal-provision
<<: *test-base
<<: *internal
<<: *require-full-tests
tf_extra_params:
environments:
- tmt:
context:
how: provision
<<: *tmt-cloud-resources
jobs:
# Build released bits to stable
- <<: *copr-under-teemtee
trigger: release
project: stable
# Build commits merged to main to latest
- <<: *copr-under-teemtee
trigger: commit
branch: main
project: latest
release_suffix: "{PACKIT_PROJECT_BRANCH}"
# Build pull requests
- <<: *copr-under-packit
trigger: pull_request
# Test core
- <<: *test-base
<<: *require-core-tests
targets: *latest-targets
identifier: core
tmt_plan: '/plans/features/core'
# Test full
- <<: *test-base
<<: *require-full-tests
identifier: full
# Do not run extended unit tests. That plan gets its own job
# because of podman vs systemd-resolved flakiness.
tmt_plan: '^(?!/plans/features/extended-unit-tests).*$'
# Extended unit tests
- <<: *test-base
<<: *require-full-tests
targets:
- fedora-latest-stable
identifier: extended-unit-tests
tmt_plan: '/plans/features/extended-unit-tests$'
# Test provision plugins
- <<: *internal-provision
identifier: provision-bootc
tmt_plan: /plans/provision/bootc
- <<: *internal-provision
identifier: provision-virtual
tmt_plan: /plans/provision/virtual
# Test internal plugins
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-plugins
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git"
# Test internal wow
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-wow
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git"
tmt_plan: '/tmt/integration/plan'
# Run missing tests identified in Connect
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-fusa
fmf_url: "https://gitlab.cee.redhat.com/automotive/tests/all.git"
fmf_ref: "main"
tmt_plan: '/tmt/plans/fusa/tests'
targets:
- epel-9
# OS-agnostic sanity and coding-standard checks
- <<: *test-base
targets:
- fedora-latest-stable
identifier: sanity
tf_extra_params:
test:
tmt:
name: /plans/sanity
skip_build: true
# Downstream tests
- <<: *test-base
<<: *require-full-tests
targets:
- fedora-latest-stable
identifier: downstream
fmf_path: packaging
# Propose downstream pull requests
- job: propose_downstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- epel-10
- epel-9
# Create koji builds
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "all_committers"]
dist_git_branches: *all-targets
# Create bodhi updates
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9
- epel-10
+2 -1
View File
@@ -1,5 +1,6 @@
# tmt
Test Management Tool
Test Metadata Tool
* https://github.com/psss/tmt/
* https://tmt.readthedocs.io/
-3
View File
@@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.15.0.post1.dev2+g8f2adf816.
-2263
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1 +0,0 @@
resultsdb-testcase: separate
-10
View File
@@ -1,10 +0,0 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/minimal.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/upstream.functional}
-3
View File
@@ -3,10 +3,7 @@ discover:
tests:
- name: /install/minimal
test: cd $(mktemp -d) && tmt init -t full && tmt
require:
- tmt
prepare:
# TODO: Remove when artifact installation is live
summary: Ensure that only 'tmt' is installed
name: minimal
order: 90
+5
View File
@@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt
+5 -19
View File
@@ -1,23 +1,9 @@
summary: Run a basic set of upstream tests
summary:
Upstream tests working under virtual machine
discover:
how: fmf
# Using a hack for when running in upstream where it is able to
# discover tests from outside the current fmf tree.
# https://github.com/teemtee/tmt/issues/2568
path: .
filter: "tier:1"
prepare:
- how: install
package:
- jq
- yq
url: https://github.com/psss/tmt
ref: fedora
filter: tag:virtual
execute:
how: tmt
adjust+:
when: initiator == fedora-ci
discover+:
dist-git-source: true
-5
View File
@@ -1,5 +0,0 @@
---
addedfiles:
ignore:
# rpminspect forbids /var/tmp prefix by default
- /var/tmp/tmt
+1 -1
View File
@@ -1 +1 @@
SHA512 (tmt-1.68.0.tar.gz) = 1c64f6c2648516fcc0abbc097970d8decd49cf5f22e9d165b2a1121dca4a2d54013d06f6de0ea4f9aa1a22a21f2eae4c261a9a456733c666fb4c8bc6ec60b2d3
SHA512 (tmt-1.6.0.tar.gz) = 9ef48b424c15d822500636434de1d712583bff60c53d01be6bfcbed4a865a7d4a0f5d4821673347c9e465227728378194ed1ec3ac2c0fd80d8090498a28e2c80
+4
View File
@@ -0,0 +1,4 @@
summary: Fetch source rpm
test: ./test.sh
framework: beakerlib
require: tmt
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
rlPhaseEnd
rlPhaseStartTest
rlFetchSrcForInstalled "tmt"
rlRun "ls -la"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd
+958 -180
View File
File diff suppressed because it is too large Load Diff