Skip to content

Commit fd0da3f

Browse files
authored
ci: collect MAAS logs (#5585)
1 parent d88030a commit fd0da3f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/cypress.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
with:
6060
name: cypress-screenshots
6161
path: cypress/screenshots
62+
- name: Collect MAAS logs
63+
if: failure()
64+
shell: bash
65+
run: journalctl -u snap.maas.pebble.service --since="1 hour ago" > cypress/maas_logs.txt
66+
- uses: actions/upload-artifact@v4
67+
if: failure()
68+
with:
69+
name: maas_logs
70+
path: cypress/maas_logs.txt
6271
- name: Create issue on failure
6372
# Create an issue if the job fails on push to main or 3.* branches
6473
if: failure() && github.event_name == 'push' && contains(fromJson('["main", "3.*"]'), env.BRANCH_NAME)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Community contributions are most welcome, and there are a number of ways to part
4141
- [Submit bugs and feature requests](https://maas.io/docs/how-to-review-and-report-bugs)
4242
- [Assist with code review](https://github.com/canonical/maas-ui/pulls)
4343
- [Submit bugs for the MAAS website](https://github.com/canonical/maas.io)
44-
- [Contribute to MAAS documentation](https://maas.io/docs/writing-guide)
44+
- [Contribute to MAAS documentation](https://maas.io/docs/how-to-contribute-to-maas-documentation)
4545

4646
When submitting a PR, please take note that MAAS UI uses the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) format. To help you conform to this, you can run `yarn commit` instead of `git commit` for an interactive prompt.
4747

0 commit comments

Comments
 (0)