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 <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 22, 2024
1 parent 9939d3b commit 934db7e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 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/[email protected]
# timeout-minutes: 20
# with:
# detached: true
# limit-access-to-actor: false

- name: Setup tmate session
uses: mxschmitt/[email protected]
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/[email protected]
timeout-minutes: 15
with:
detached: true
limit-access-to-actor: false
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/[email protected]
# timeout-minutes: 15
# with:
# detached: true
# limit-access-to-actor: false

- name: Destroy Test Environment
id: down
Expand Down
27 changes: 17 additions & 10 deletions training/tests/e2e-tests/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,26 @@
dest: /tmp/basic-workflow-tests.sh
mode: 755

- name: Login to subman
ignore_errors: yes
community.general.redhat_subscription module:
auto_attach: true
password: "{{ subman_pass }}"
username: "{{ subman_user }}"

# 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
ansible.builtin.shell: /tmp/basic-workflow-tests.sh -cm
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 934db7e

Please sign in to comment.