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

debugging e2e training workflow #507

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
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
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}}"
Loading