Skip to content

Commit

Permalink
ci: collect MAAS logs (#5585)
Browse files Browse the repository at this point in the history
  • Loading branch information
motrilense authored Jan 21, 2025
1 parent d88030a commit fd0da3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ jobs:
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Collect MAAS logs
if: failure()
shell: bash
run: journalctl -u snap.maas.pebble.service --since="1 hour ago" > cypress/maas_logs.txt
- uses: actions/upload-artifact@v4
if: failure()
with:
name: maas_logs
path: cypress/maas_logs.txt
- name: Create issue on failure
# Create an issue if the job fails on push to main or 3.* branches
if: failure() && github.event_name == 'push' && contains(fromJson('["main", "3.*"]'), env.BRANCH_NAME)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Community contributions are most welcome, and there are a number of ways to part
- [Submit bugs and feature requests](https://maas.io/docs/how-to-review-and-report-bugs)
- [Assist with code review](https://github.com/canonical/maas-ui/pulls)
- [Submit bugs for the MAAS website](https://github.com/canonical/maas.io)
- [Contribute to MAAS documentation](https://maas.io/docs/writing-guide)
- [Contribute to MAAS documentation](https://maas.io/docs/how-to-contribute-to-maas-documentation)

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.

Expand Down

0 comments on commit fd0da3f

Please sign in to comment.