Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update to support rhel 9.5 #7446

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/adds-on.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Run customer case on RHEL 9.4.0
name: Run customer case on RHEL 9.5.0

on:
issue_comment:
Expand All @@ -9,8 +9,8 @@ on:
jobs:
pr-info:
if: ${{ github.event.issue.pull_request &&
(endsWith(github.event.comment.body, '/test-fapolicyd-rhel-9-4') ||
endsWith(github.event.comment.body, '/test-grafana-pcp-rhel-9-4')) }}
(endsWith(github.event.comment.body, '/test-fapolicyd-rhel-9-5') ||
endsWith(github.event.comment.body, '/test-grafana-pcp-rhel-9-5')) }}
runs-on: ubuntu-latest
steps:
- name: Query author repository permissions
Expand Down Expand Up @@ -44,10 +44,10 @@ jobs:
pre-fapolicyd:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
endsWith(github.event.comment.body, '/test-fapolicyd-rhel-9-4') }}
endsWith(github.event.comment.body, '/test-fapolicyd-rhel-9-5') }}
runs-on: ubuntu-latest
env:
STATUS_NAME: fapolicyd-9.4
STATUS_NAME: fapolicyd-9.5

steps:
- name: Create in-progress status
Expand All @@ -63,9 +63,9 @@ jobs:

fapolicyd:
needs: [pr-info, pre-fapolicyd]
runs-on: [kite, x86_64, rhos-01, rhel-9-4, large]
runs-on: [kite, x86_64, rhos-01, rhel-9-5, large]
env:
STATUS_NAME: fapolicyd-9.4
STATUS_NAME: fapolicyd-9.5

steps:
- name: Create in-progress status
Expand Down Expand Up @@ -117,18 +117,18 @@ jobs:
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: fapolicyd-9.4
name: fapolicyd-9.5
path: |
*.json
*.log

pre-grafana-pcp:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
endsWith(github.event.comment.body, '/test-grafana-pcp-rhel-9-4') }}
endsWith(github.event.comment.body, '/test-grafana-pcp-rhel-9-5') }}
runs-on: ubuntu-latest
env:
STATUS_NAME: grafana-pcp-9.4
STATUS_NAME: grafana-pcp-9.5

steps:
- name: Create in-progress status
Expand All @@ -144,9 +144,9 @@ jobs:

grafana-pcp:
needs: [pr-info, pre-grafana-pcp]
runs-on: [kite, x86_64, rhos-01, rhel-9-4, large]
runs-on: [kite, x86_64, rhos-01, rhel-9-5, large]
env:
STATUS_NAME: grafana-pcp-9.4
STATUS_NAME: grafana-pcp-9.5

steps:
- name: Create in-progress status
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: grafana-pcp-9.4
name: grafana-pcp-9.5
path: |
*.json
*.log
50 changes: 25 additions & 25 deletions .github/workflows/trigger-adds-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: '0 0 * * 2'

env:
COMPOSE_URL_94: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/RHEL-9"
COMPOSE_URL_95: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/RHEL-9"

jobs:
check-compose:
Expand All @@ -21,24 +21,24 @@ jobs:
- name: Check compose and PRMs
id: check_compose_and_rpms
run: |
curl -s ${COMPOSE_URL_94}/latest-RHEL-9.4.0/COMPOSE_ID --output COMPOSE_ID_94
COMPOSE_ID_94=$(cat COMPOSE_ID_94)
echo "rhel94_compose=$COMPOSE_ID_94" >> $GITHUB_OUTPUT
curl -s ${COMPOSE_URL_95}/latest-RHEL-9.5.0/COMPOSE_ID --output COMPOSE_ID_95
COMPOSE_ID_95=$(cat COMPOSE_ID_95)
echo "rhel95_compose=$COMPOSE_ID_95" >> $GITHUB_OUTPUT

FAPOLICYD_VERSION_94=$(curl -s "${COMPOSE_URL_94}/${COMPOSE_ID_94}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">fapolicyd-[0-9].*<" | tr -d "><")
echo "fapolicyd_version_94=$FAPOLICYD_VERSION_94" >> $GITHUB_OUTPUT
FAPOLICYD_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">fapolicyd-[0-9].*<" | tr -d "><")
echo "fapolicyd_version_95=$FAPOLICYD_VERSION_95" >> $GITHUB_OUTPUT

GRAFANA_PCP_VERSION_94=$(curl -s "${COMPOSE_URL_94}/${COMPOSE_ID_94}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">grafana-pcp-[0-9].*<" | tr -d "><")
echo "grafana_pcp_version_94=$GRAFANA_PCP_VERSION_94" >> $GITHUB_OUTPUT
GRAFANA_PCP_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">grafana-pcp-[0-9].*<" | tr -d "><")
echo "grafana_pcp_version_95=$GRAFANA_PCP_VERSION_95" >> $GITHUB_OUTPUT

PCP_VERSION_94=$(curl -s "${COMPOSE_URL_94}/${COMPOSE_ID_94}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">pcp-[0-9].*.x86_64.rpm<" | tr -d "><")
echo "pcp_version_94=$PCP_VERSION_94" >> $GITHUB_OUTPUT
PCP_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">pcp-[0-9].*.x86_64.rpm<" | tr -d "><")
echo "pcp_version_95=$PCP_VERSION_95" >> $GITHUB_OUTPUT

outputs:
rhel94_compose: ${{ steps.check_compose_and_rpms.outputs.rhel94_compose }}
fapolicyd_version_94: ${{ steps.check_compose_and_rpms.outputs.fapolicyd_version_94 }}
grafana_pcp_version_94: ${{ steps.check_compose_and_rpms.outputs.grafana_pcp_version_94 }}
pcp_version_94: ${{ steps.check_compose_and_rpms.outputs.pcp_version_94 }}
rhel95_compose: ${{ steps.check_compose_and_rpms.outputs.rhel95_compose }}
fapolicyd_version_95: ${{ steps.check_compose_and_rpms.outputs.fapolicyd_version_95 }}
grafana_pcp_version_95: ${{ steps.check_compose_and_rpms.outputs.grafana_pcp_version_95 }}
pcp_version_95: ${{ steps.check_compose_and_rpms.outputs.pcp_version_95 }}

fapolicyd:
needs: check-compose
Expand All @@ -59,26 +59,26 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "${{ needs.check-compose.outputs.fapolicyd_version_94 }} - ${{ steps.date.outputs.date }}"
commit-message: "${{ needs.check-compose.outputs.fapolicyd_version_95 }} - ${{ steps.date.outputs.date }}"
committer: cloudkitebot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: cpr
branch-suffix: random
delete-branch: true
title: "${{ needs.check-compose.outputs.fapolicyd_version_94 }} - ${{ steps.date.outputs.date }}"
title: "${{ needs.check-compose.outputs.fapolicyd_version_95 }} - ${{ steps.date.outputs.date }}"
labels: DO_NOT_MERGE,fapolicyd
body: |
RHEL compose ${{ needs.check-compose.outputs.rhel94_compose }}
RHEL compose ${{ needs.check-compose.outputs.rhel95_compose }}
- Date: ${{ steps.date.outputs.date }}
- fapolicyd package info:
- ${{ needs.check-compose.outputs.fapolicyd_version_94 }}
- ${{ needs.check-compose.outputs.fapolicyd_version_95 }}

- name: Add a comment to trigger test workflow
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.PAT }}
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
body: /test-fapolicyd-rhel-9-4
body: /test-fapolicyd-rhel-9-5

- name: Create a project card to track compose test result
uses: peter-evans/create-or-update-project-card@v2
Expand Down Expand Up @@ -107,27 +107,27 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "${{ needs.check-compose.outputs.pcp_version_94 }} - ${{ steps.date.outputs.date }}"
commit-message: "${{ needs.check-compose.outputs.pcp_version_95 }} - ${{ steps.date.outputs.date }}"
committer: cloudkitebot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: cpr
branch-suffix: random
delete-branch: true
title: "${{ needs.check-compose.outputs.pcp_version_94 }} - ${{ steps.date.outputs.date }}"
title: "${{ needs.check-compose.outputs.pcp_version_95 }} - ${{ steps.date.outputs.date }}"
labels: DO_NOT_MERGE,grafana-pcp,pcp
body: |
RHEL compose ${{ needs.check-compose.outputs.rhel94_compose }}
RHEL compose ${{ needs.check-compose.outputs.rhel95_compose }}
- Date: ${{ steps.date.outputs.date }}
- grafana and pcp package info:
- ${{ needs.check-compose.outputs.grafana_pcp_version_94 }}
- ${{ needs.check-compose.outputs.pcp_version_94 }}
- ${{ needs.check-compose.outputs.grafana_pcp_version_95 }}
- ${{ needs.check-compose.outputs.pcp_version_95 }}

- name: Add a comment to trigger test workflow
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.PAT }}
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
body: /test-grafana-pcp-rhel-9-4
body: /test-grafana-pcp-rhel-9-5

- name: Create a project card to track compose test result
uses: peter-evans/create-or-update-project-card@v2
Expand Down
2 changes: 1 addition & 1 deletion check-ostree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
# Ignore ignition first attempt error log, it'll be successful at the second attempt
# e.g. ignition[630]: GET error: Get "http://192.168.100.1/ignition/config.ign": dial tcp 192.168.100.1:80: connect: network is unreachable
- name: check dmesg error and fail log
shell: dmesg --notime | grep -i "error\|fail" | grep -v "skipped" | grep -v "failover" | grep -v "ignition" | grep -v "BAR 13":" failed to assign" || true
shell: dmesg --notime | grep -i "error\|fail" | grep -v "skipped" | grep -v "failover" | grep -v "ignition" | grep -v "BAR 13":" failed to assign" | grep -v "failed to assign" || true
register: result_dmesg_error
become: yes

Expand Down
Loading
Loading