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

PMM-7 attach logs #765

Open
wants to merge 8 commits into
base: v3
Choose a base branch
from
Open
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
23 changes: 16 additions & 7 deletions .github/workflows/runner-e2e-tests-codeceptjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
name: "e2e tests: ${{ inputs.tags_for_tests || '@settings-fb' }}"
# runs-on: ubuntu-latest Mongo Replica setup fails in ubuntu-latest for some reason. Additional investigation needed
runs-on: ubuntu-20.04
timeout-minutes: 60
timeout-minutes: 100
env:
SHA: ${{ inputs.sha || 'null' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -169,12 +169,12 @@ jobs:
- name: Execute e2e tests with tags ${{ env.TAGS_FOR_TESTS }}
working-directory: pmm-ui-tests
env:
SERVER_IP : "192.168.0.1"
PMM_UI_URL : "http://192.168.0.1/"
SERVER_IP : "127.0.0.1"
PMM_UI_URL : "http://127.0.0.1/"
PMM_URL : "http://admin:${{ env.ADMIN_PASSWORD }}@${{ env.SERVER_IP }}"
run: |
sed -i 's+http://localhost/+${PMM_UI_URL}/+g' pr.codecept.js
./node_modules/.bin/codeceptjs run -c pr.codecept.js --grep "${{ env.TAGS_FOR_TESTS }}"
./node_modules/.bin/codeceptjs run -c pr.codecept.js --grep "${{ env.TAGS_FOR_TESTS }}" --steps

- uses: actions/github-script@v7
if: ${{ always() }}
Expand All @@ -184,12 +184,21 @@ jobs:
return `artifacts_for_${process.env.TAGS_FOR_TESTS.replaceAll('|', '')}`
result-encoding: string

- name: Download logs
if: ${{ always() }}
working-directory: pmm-ui-tests
run: |
curl --insecure http://admin:${{ env.ADMIN_PASSWORD }}@127.0.0.1/logs.zip --output logs.zip
unzip logs.zip -d logs

- uses: actions/upload-artifact@v4
if: ${{ always() }}
continue-on-error: true
with:
name: ${{ steps.artifact_name.outputs.result }}
path: |
pmm-ui-tests/tests/output/*.png
pmm-ui-tests/logs

- name: Create status check
if: ${{ github.event_name != 'pull_request' && always() }}
Expand All @@ -204,6 +213,6 @@ jobs:
target_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
sha: ${{ env.SHA }}

# - name: Setup tmate session on failure
# if: ${{ failure() }}
# uses: percona-platform/action-tmate@v2
- name: Setup tmate session on failure
if: ${{ failure() }}
uses: percona/gh-action-action-tmate@v2
Loading