Skip to content

Post acceptance tests feedback comment #1644

Post acceptance tests feedback comment

Post acceptance tests feedback comment #1644

name: Post acceptance tests feedback comment
on:
workflow_run:
workflows: ["Acceptance tests feedback trigger"]
types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.run_id }}
cancel-in-progress: true
jobs:
comment:
if: >-
${{ github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
pull-requests: write
steps:
- name: Download PR metadata artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 #v4
with:
name: pr-metadata
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
path: .
- name: Read PR number from artifact
id: pr
run: |
pr_number="$(cat pr-number)"
echo "number=${pr_number}" >> "$GITHUB_OUTPUT"
- uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3.2.0
with:
number: ${{ steps.pr.outputs.number }}
body: |
:wave: Hello! Thanks for contributing to our project.
Acceptance tests will take some time (approx. 1h), please be patient :coffee:
You can see the progress at the end of this page and at https://github.com/uyuni-project/uyuni/pull/${{ steps.pr.outputs.number }}/checks
Once tests finish, if they fail, you can check :eyes: the cucumber report. See the link at the output of the action.
You can also check the artifacts section, which contains the logs at https://github.com/uyuni-project/uyuni/pull/${{ steps.pr.outputs.number }}/checks.
If you are unsure the failing tests are related to your code, you can check the "reference jobs". These are jobs that run on a scheduled time with code from master. If they fail for the same reason as your build, it means the tests or the infrastructure are broken. If they do not fail, but yours do, it means it is related to your code.
Reference tests:
* https://github.com/uyuni-project/uyuni/actions/workflows/acceptance_tests_secondary_parallel.yml?query=event%3Aschedule
* https://github.com/uyuni-project/uyuni/actions/workflows/acceptance_tests_secondary.yml?query=event%3Aschedule
KNOWN ISSUES
Sometimes the build can fail when pulling new jar files from download.opensuse.org . This is a known limitation. Given this happens rarely, when it does, all you need to do is rerun the test. Sorry for the inconvenience.
For more tips on troubleshooting, see the [troubleshooting guide](https://github.com/uyuni-project/uyuni/wiki/Running-Acceptance-Tests-at-PR#troubleshooting).
Happy hacking!
body-include: ":warning: You should not merge if acceptance tests fail to pass. :warning:"