leapp/SOURCES/0006-Remove-7to8-CI-tests.patch
2025-05-15 07:15:26 +00:00

181 lines
7.1 KiB
Diff

From cfdce5f3fc6fce6d9e253c153ec94aad9ceb0609 Mon Sep 17 00:00:00 2001
From: Tomas Fratrik <tomasfratrik8@gmail.com>
Date: Wed, 23 Apr 2025 13:11:32 +0200
Subject: [PATCH 6/7] Remove 7to8 CI tests
Removing 7to8 CI tests because the upgrade path from RHEL-7 to RHEL-8 is no longer supported.
Jira: RHELMISC-11004
---
.github/workflows/reuse-tests-7to8.yml | 69 --------------------------
.github/workflows/tmt-tests.yml | 59 ----------------------
.github/workflows/unit-tests.yml | 6 ---
3 files changed, 134 deletions(-)
delete mode 100644 .github/workflows/reuse-tests-7to8.yml
diff --git a/.github/workflows/reuse-tests-7to8.yml b/.github/workflows/reuse-tests-7to8.yml
deleted file mode 100644
index 7f7ce35..0000000
--- a/.github/workflows/reuse-tests-7to8.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-name: reuse-tests-7to8@TF
-
-on:
- workflow_call:
- secrets:
- TF_ENDPOINT:
- required: True
- TF_API_KEY:
- required: True
- inputs:
- copr_artifacts:
- required: True
- type: string
- tmt_plan_regex:
- type: string
- default: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)"
- environment_settings:
- type: string
- default: '{"provisioning": {"post_install_script": "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"}}'
- arch:
- type: string
- default: 'x86_64'
- pull_request_status_name:
- type: string
- default: '7to8'
- copr:
- type: string
- default: 'epel-7-x86_64'
- tmt_context:
- type: string
- default: 'distro=rhel-7.9'
- compose:
- type: string
- default: 'RHEL-7.9-ZStream'
- variables:
- type: string
- default: ''
- update_pull_request_status:
- type: string
- default: 'true'
-
-jobs:
- reusable_workflow_job:
- name: Schedule regression tests on Testing Farm
- runs-on: ubuntu-24.04
- steps:
- - name: Schedule regression testing for 7to8
- id: run_test_7to8
- uses: sclorg/testing-farm-as-github-action@v4.0.0
- with:
- # required
- api_url: ${{ secrets.TF_ENDPOINT }}
- api_key: ${{ secrets.TF_API_KEY }}
- git_url: 'https://gitlab.cee.redhat.com/oamg/tmt-plans'
- github_token: ${{ secrets.GITHUB_TOKEN }}
- # optional
- tf_scope: 'private'
- create_issue_comment: 'true'
- update_pull_request_status: ${{ inputs.update_pull_request_status }}
- tmt_plan_regex: ${{ inputs.tmt_plan_regex }}
- compose: ${{ inputs.compose }}
- arch: ${{ inputs.arch }}
- copr: ${{ inputs.copr }}
- copr_artifacts: ${{ inputs.copr_artifacts }}
- debug: ${{ secrets.ACTIONS_STEP_DEBUG }}
- tmt_context: ${{ inputs.tmt_context }}
- pull_request_status_name: ${{ inputs.pull_request_status_name }}
- environment_settings: ${{ inputs.environment_settings }}
- variables: ${{ inputs.variables }}
diff --git a/.github/workflows/tmt-tests.yml b/.github/workflows/tmt-tests.yml
index d047cb3..d4671c4 100644
--- a/.github/workflows/tmt-tests.yml
+++ b/.github/workflows/tmt-tests.yml
@@ -10,65 +10,6 @@ jobs:
uses: ./.github/workflows/reuse-copr-build.yml
secrets: inherit
- call_workflow_tests_79to88_integration:
- needs: call_workflow_copr_build
- uses: ./.github/workflows/reuse-tests-7to8.yml
- secrets: inherit
- with:
- copr_artifacts: ${{ needs.call_workflow_copr_build.outputs.artifacts }}
- tmt_plan_regex: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(?!.*max_sst)"
- pull_request_status_name: "7.9to8.8"
- variables: 'SOURCE_RELEASE=7.9;TARGET_RELEASE=8.8;LEAPPDATA_BRANCH=upstream'
- if: |
- github.event.issue.pull_request
- && ! startsWith(github.event.comment.body, '/rerun-sst')
- && contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
-
- call_workflow_tests_79to86_integration:
- needs: call_workflow_copr_build
- uses: ./.github/workflows/reuse-tests-7to8.yml
- secrets: inherit
- with:
- copr_artifacts: ${{ needs.call_workflow_copr_build.outputs.artifacts }}
- tmt_plan_regex: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(?!.*max_sst)"
- variables: 'SOURCE_RELEASE=7.9;TARGET_RELEASE=8.6;LEAPPDATA_BRANCH=upstream'
- pull_request_status_name: "7.9to8.6"
- if: |
- github.event.issue.pull_request
- && ! startsWith(github.event.comment.body, '/rerun-sst')
- && contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
-
- call_workflow_tests_79to88_sst:
- needs: call_workflow_copr_build
- uses: ./.github/workflows/reuse-tests-7to8.yml
- secrets: inherit
- with:
- copr_artifacts: ${{ needs.call_workflow_copr_build.outputs.artifacts }}
- tmt_plan_regex: "^(?!.*tier[2-3].*)(.*max_sst.*)"
- pull_request_status_name: "7.9to8.8-sst"
- update_pull_request_status: 'false'
- variables: 'SOURCE_RELEASE=7.9;TARGET_RELEASE=8.8;LEAPPDATA_BRANCH=upstream'
- if: |
- github.event.issue.pull_request
- && startsWith(github.event.comment.body, '/rerun-sst')
- && contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
-
- call_workflow_tests_7to8_aws:
- needs: call_workflow_copr_build
- uses: ./.github/workflows/reuse-tests-7to8.yml
- secrets: inherit
- with:
- copr_artifacts: ${{ needs.call_workflow_copr_build.outputs.artifacts }}
- tmt_plan_regex: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(.*e2e)"
- compose: "RHEL-7.9-rhui"
- environment_settings: '{"provisioning": {"post_install_script": "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys; echo 42; yum-config-manager --enable rhel-7-server-rhui-optional-rpms"}}'
- pull_request_status_name: "7to8-aws-e2e"
- variables: 'SOURCE_RELEASE=7.9;TARGET_RELEASE=8.6;RHUI=aws;LEAPPDATA_BRANCH=upstream'
- if: |
- github.event.issue.pull_request
- && ! startsWith(github.event.comment.body, '/rerun-sst')
- && contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
-
call_workflow_tests_810to94_integration:
needs: call_workflow_copr_build
uses: ./.github/workflows/reuse-tests-8to9.yml
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index d994b27..2702e93 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -33,12 +33,6 @@ jobs:
- name: Run python linters with python 3.6 on el8
python: python3.6
container: ubi8-lint
- - name: Run unit tests with python2.7 on el7
- python: python2.7
- container: ubi7
- - name: Run python linters with python2.7 on el7
- python: python2.7
- container: ubi7-lint
steps:
- name: Checkout code
--
2.49.0