Skip to content

Commit

Permalink
Trying out some debug magic
Browse files Browse the repository at this point in the history
  • Loading branch information
davelcpanelnet committed Dec 18, 2024
1 parent 67e9f5a commit 4d07168
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 11 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/openstack-centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ jobs:
working-directory: "${{ github.workspace }}/.github/workflows/openstack/centos-7"
steps:
- uses: actions/checkout@v4

- name: Dump all GitHub variables
run: |
echo "Dumping all GitHub variables:"
echo "github.ref: ${{ github.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.job: ${{ github.job }}"
echo "github.workflow: ${{ github.workflow }}"
echo "github.triggering_actor: ${{ github.triggering_actor }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event.repository.master_branch: ${{ github.event.repository.master_branch }}"
- name: Terraform fmt
id: fmt
run: |
Expand Down Expand Up @@ -296,7 +308,7 @@ jobs:
/scripts/status_marker 1
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 2 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 2 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_2_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -361,7 +373,7 @@ jobs:
/scripts/status_marker 2
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 3 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 3 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_3_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -425,7 +437,7 @@ jobs:
/scripts/status_marker 3
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 4 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 4 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_4_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -489,7 +501,7 @@ jobs:
/scripts/status_marker 4
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 5 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 5 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_5_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -553,7 +565,7 @@ jobs:
/scripts/status_marker 5
tail -n40 -F /var/log/elevate-cpanel.log &
sleep 2.5
SKIP_PID_CHECK=1 REBOOT_STRING="Doing final reboot" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Doing final reboot" RETVAL/scripts/reboot_watch
wait_for_final_reboot:
runs-on: self-hosted
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/openstack-cloudlinux-7.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ jobs:
working-directory: "${{ github.workspace }}/.github/workflows/openstack/cloudlinux-7"
steps:
- uses: actions/checkout@v4

- name: Dump all GitHub variables
run: |
echo "Dumping all GitHub variables:"
echo "github.ref: ${{ github.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.job: ${{ github.job }}"
echo "github.workflow: ${{ github.workflow }}"
echo "github.triggering_actor: ${{ github.triggering_actor }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event.repository.master_branch: ${{ github.event.repository.master_branch }}"

- name: Terraform fmt
id: fmt
run: |
Expand Down Expand Up @@ -550,7 +562,7 @@ jobs:
/scripts/status_marker 5
tail -n40 -F /var/log/elevate-cpanel.log &
sleep 2.5
SKIP_PID_CHECK=1 REBOOT_STRING="Doing final reboot" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Doing final reboot" RETVAL=1 /scripts/reboot_watch

wait_for_final_reboot:
runs-on: self-hosted
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/openstack-ubuntu-20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ jobs:
working-directory: "${{ github.workspace }}/.github/workflows/openstack/ubuntu-20.04"
steps:
- uses: actions/checkout@v4
# Step to dump all GitHub variables

- name: Dump all GitHub variables
run: |
echo "Dumping all GitHub variables:"
echo "github.ref: ${{ github.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.job: ${{ github.job }}"
echo "github.workflow: ${{ github.workflow }}"
echo "github.triggering_actor: ${{ github.triggering_actor }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event.repository.master_branch: ${{ github.event.repository.master_branch }}"
- name: Terraform fmt
id: fmt
run: |
Expand Down Expand Up @@ -296,7 +309,7 @@ jobs:
/scripts/status_marker 1
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 2 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 2 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_2_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -361,7 +374,7 @@ jobs:
/scripts/status_marker 2
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 3 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 3 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_3_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -425,7 +438,7 @@ jobs:
/scripts/status_marker 3
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 4 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 4 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_4_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -489,7 +502,7 @@ jobs:
/scripts/status_marker 4
tail -n40 -F /var/log/elevate-cpanel.log &
sleep .5
REBOOT_STRING="Rebooting into stage 5 of 5" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Rebooting into stage 5 of 5" RETVAL/scripts/reboot_watch
wait_for_stage_5_reboot:
runs-on: self-hosted
Expand Down Expand Up @@ -553,7 +566,7 @@ jobs:
/scripts/status_marker 5
tail -n40 -F /var/log/elevate-cpanel.log &
sleep 2.5
SKIP_PID_CHECK=1 REBOOT_STRING="Doing final reboot" RETVAL=1 /scripts/reboot_watch
REBOOT_STRING="Great SUCCESS" RETVAL/scripts/reboot_watch
wait_for_final_reboot:
runs-on: self-hosted
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ jobs:
image: cpanelos/perl-compiler:alma8-perl-v5.36.0

steps:
- name: Dump all GitHub variables
run: |
echo "Dumping all GitHub variables:"
echo "github.ref: ${{ github.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.job: ${{ github.job }}"
echo "github.workflow: ${{ github.workflow }}"
echo "github.triggering_actor: ${{ github.triggering_actor }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.event.repository.master_branch: ${{ github.event.repository.master_branch }}"
- name: Setup PATH
run: |
Expand Down

0 comments on commit 4d07168

Please sign in to comment.