Skip to content

ci: dump openidm logs after UI smoke tests#173

Open
vharseko wants to merge 1 commit intoOpenIdentityPlatform:masterfrom
vharseko:copilot/add-ui-smoke-tests-logs-output
Open

ci: dump openidm logs after UI smoke tests#173
vharseko wants to merge 1 commit intoOpenIdentityPlatform:masterfrom
vharseko:copilot/add-ui-smoke-tests-logs-output

Conversation

@vharseko
Copy link
Copy Markdown
Member

@vharseko vharseko commented May 8, 2026

The ui-smoke-tests workflow uploads openidm/logs only on failure, making post-run diagnosis from the Actions UI cumbersome.

Changes

  • Added a final Print openidm logs step to the ui-smoke-tests job in .github/workflows/build.yml.
    • Runs with if: always() so logs surface on both pass and fail.
    • Enumerates files under openidm/logs sorted by mtime (oldest → newest) and prints each with a ===== <path> ===== header.
    • No-ops with a clear message if openidm/logs is absent.
- name: Print openidm logs
  if: ${{ always() }}
  shell: bash
  run: |
    if [ -d openidm/logs ]; then
      find openidm/logs -type f -printf '%T@ %p\n' | sort -n | cut -d' ' -f2- | while read -r f; do
        echo "===== $f ====="
        cat "$f"
      done
    else
      echo "openidm/logs directory not found"
    fi

Note: relies on GNU find -printf; the job pins runs-on: ubuntu-latest, so this is safe here.

Agent-Logs-Url: https://github.com/vharseko/OpenIDM/sessions/37ae0671-adbb-4110-ba49-42c9cab82f8f

Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
@vharseko vharseko requested a review from maximthomas May 8, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants