Skip to content

Commit

Permalink
debugging e2e training workflow
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <grpereir@redhat.com>
  • Loading branch information
Gregory-Pereira committed May 22, 2024
1 parent 9939d3b commit 9939227
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/training-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,13 @@ jobs:

- name: Wait for 4 minutes
run: sleep 240

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3.18
# timeout-minutes: 20
# with:
# detached: true
# limit-access-to-actor: false

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3.18
timeout-minutes: 60
with:
detached: true
limit-access-to-actor: false
detached: false
limit-access-to-actor: true

- name: Run tests
run: |
Expand All @@ -124,13 +117,13 @@ jobs:
ANSIBLE_CONFIG: ./main/training/tests/ansible.cfg

# This should exist in the final workflow
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3.18
timeout-minutes: 15
with:
detached: true
limit-access-to-actor: false
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3.18
# timeout-minutes: 15
# with:
# detached: true
# limit-access-to-actor: false

- name: Destroy Test Environment
id: down
Expand Down
24 changes: 12 additions & 12 deletions training/tests/e2e-tests/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
mode: 755

# Allow for debugging with tmate
# - name: Wait for 15 minutes
# pause:
# minutes: 15
- name: Wait for 30 minutes
pause:
minutes: 30

- name: Run tests
ansible.builtin.shell: /tmp/basic-workflow-tests.sh
register: out
# - name: Run tests
# ansible.builtin.shell: /tmp/basic-workflow-tests.sh
# register: out

- name: Test Results - stdout
debug:
msg: "{{out.stdout_lines}}"
# - name: Test Results - stdout
# debug:
# msg: "{{out.stdout_lines}}"

- name: Test Results - stderr
debug:
msg: "{{out.stderr_lines}}"
# - name: Test Results - stderr
# debug:
# msg: "{{out.stderr_lines}}"

0 comments on commit 9939227

Please sign in to comment.