Skip to content

test(gui): report client crash - #945

Merged
saw-jan merged 4 commits into
mainfrom
test/report-cleint-crash
Jul 6, 2026
Merged

saw-jan merged 4 commits into
mainfrom
test/report-cleint-crash

Conversation

@saw-jan

@saw-jan saw-jan commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Part of #861

Collect the app crash report per scenario and report it if available.

@saw-jan saw-jan self-assigned this Jun 12, 2026
Comment thread test/gui/environment.py Resolved
@saw-jan saw-jan mentioned this pull request Jun 12, 2026
30 tasks done
@saw-jan
saw-jan force-pushed the test/report-cleint-crash branch 3 times, most recently from d4ed49e to 4ea8551 Compare June 17, 2026 12:47
@saw-jan
saw-jan marked this pull request as ready for review June 18, 2026 04:44
@saw-jan
saw-jan force-pushed the test/report-cleint-crash branch 4 times, most recently from 6303bab to 42a66d2 Compare June 24, 2026 05:11
Comment thread .woodpecker/ui-tests.yaml
Comment on lines -133 to -140
# - name: crash-log
# image: *alpine_image
# when:
# - status:
# - success
# - failure
# commands:
# - cat test/gui/tmp/OpenCloud-crash.log 2>/dev/null || exit 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to have the crash log printed out in the CI as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be redundant to print the crash log in a separate step. All logs are collected and reported in one step.

Comment on lines +12 to +16
has_crash_log=$(mc find s3/$REPORT_PATH/crash.log 2>/dev/null || true)
if [[ -n "$has_crash_log" ]]; then
echo "Crash Log: $REPORT_URL/crash.log"
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhhh, I guess, this answers my question above regarding printing the log.

Comment thread test/gui/helpers/ConfigHelper.py Resolved
@prashant-gurung899

Copy link
Copy Markdown
Member

^ @Asmitapaudel

Comment thread test/gui/environment.py Resolved
@saw-jan
saw-jan force-pushed the test/report-cleint-crash branch from 710d6c3 to 36bc9a7 Compare June 25, 2026 09:08
@saw-jan
saw-jan force-pushed the test/report-cleint-crash branch from 36bc9a7 to ed220a3 Compare July 2, 2026 09:11
@saw-jan
saw-jan merged commit caeaf77 into main Jul 6, 2026
12 checks passed
@saw-jan
saw-jan deleted the test/report-cleint-crash branch July 6, 2026 07:35
Asmitapaudel pushed a commit to Asmitapaudel/desktop that referenced this pull request Jul 6, 2026
* test: rename temp dir config to reduce confusion with system tmp

Signed-off-by: Saw-jan <[email protected]>

* test: save crash logs per scenario

Signed-off-by: Saw-jan <[email protected]>

* ci: show crash log if available

Signed-off-by: Saw-jan <[email protected]>

* chore: address reviews

Signed-off-by: Saw-jan <[email protected]>

---------

Signed-off-by: Saw-jan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants