Skip to content

FileNotFoundException in deploy stage when log file is missing #60

Description

@mabartos

Describe the bug

The deploy job fails with FileNotFoundException when a pr-jobs-* file exists in logs/ but the corresponding pr-log-* file is missing.

This happens when the log download failed and was cleaned up by the fix in #59, but LogFailedParser.parseTest still tries to open the log file unconditionally.

java.io.FileNotFoundException: logs/pr-log-29024314313 (No such file or directory)
    at java.io.FileInputStream.open0 (Native Method)
    at java.io.FileInputStream.<init> (FileInputStream.java:157)
    at org.keycloak.dashboard.ci.LogFailedParser.parseTest (LogFailedParser.java:207)
    at org.keycloak.dashboard.ci.LogFailedParser.parse (LogFailedParser.java:175)
    at org.keycloak.dashboard.ci.LogFailedParser.parseAll (LogFailedParser.java:94)

Example failure: https://github.com/keycloak/dashboard/actions/runs/29077224785/job/86312994071

Version

main

Expected behavior

Deploy stage passed

Actual behavior

Deploy stage failed

How to Reproduce?

Run the CI and observe the deploy stage

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions