Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gemini-testing/html-reporter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7400473e4c49765672b9bd97d5dab7a625658e37
Choose a base ref
..
head repository: gemini-testing/html-reporter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 969cec523c8bf39ebd2b9ad86538a5565ffee4e4
Choose a head ref
Showing with 9 additions and 29 deletions.
  1. +9 −29 .github/workflows/e2e.yml
38 changes: 9 additions & 29 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -82,35 +82,15 @@ jobs:
- name: Construct failed PR comment
if: ${{ env.IS_FAILED }}
run: |
comment="### ❌ Testplane run failed<br><br>";
readonly -a RUN_CASES=("analytics" "playwright" "plugins" "testplane-common" "testplane-eye" "testplane-tinder" "testplane-gui");
for run_case in "${RUN_CASES[@]}"; do
report_link="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/${run_case}"
gh_step_id_raw="testplane-${run_case}"
gh_step_id="${gh_step_id_raw//-/_}"
gh_step_id_upper=$(echo "$gh_step_id" | tr '[:lower:]' '[:upper:]')
outcome_var="STEPS_${gh_step_id_upper}_OUTCOME"
if [[ -z "${!outcome_var}" ]]; then
outcome="UNDEFINED"
echo "Outcome for $gh_step_id_upper is undefined"
else
outcome="${!outcome_var}"
echo "Outcome for $gh_step_id_upper is $outcome"
fi
case "$outcome" in
"success")
comment+="- ✅ $run_case: success. <a href=\"${report_link}\" target=\"_blank\">Report link</a><br><br>"
;;
"failure"|"cancelled")
comment+="- ❌ $run_case: failed. <a href=\"${report_link}\" target=\"_blank\">Report link</a><br><br>"
;;
*)
comment+="- ⚠️ $run_case: unknown. <a href=\"${report_link}\" target=\"_blank\">Report link</a><br><br>"
;;
esac
done
comment="### ❌ Testplane run failed
$( [[ ${{ steps.testplane-analytics.outcome }} == "success" ]] && echo "- ✅ analytics: success." || echo "- ❌ analytics: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/analytics)" )
$( [[ ${{ steps.testplane-playwright.outcome }} == "success" ]] && echo "- ✅ playwright: success." || echo "- ❌ playwright: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/playwright)" )
$( [[ ${{ steps.testplane-plugins.outcome }} == "success" ]] && echo "- ✅ plugins: success." || echo "- ❌ plugins: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/plugins)" )
$( [[ ${{ steps.testplane-testplane-common.outcome }} == "success" ]] && echo "- ✅ testplane-common: success." || echo "- ❌ testplane-common: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/testplane-common)" )
$( [[ ${{ steps.testplane-testplane-eye.outcome }} == "success" ]] && echo "- ✅ testplane-eye: success." || echo "- ❌ testplane-eye: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/testplane-eye)" )
$( [[ ${{ steps.testplane-testplane-tinder.outcome }} == "success" ]] && echo "- ✅ testplane-tinder: success." || echo "- ❌ testplane-tinder: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/testplane-tinder)" )
$( [[ ${{ steps.testplane-testplane-gui.outcome }} == "success" ]] && echo "- ✅ testplane-gui: success." || echo "- ❌ testplane-gui: failure."; echo "[Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.DEST_REPORTS_DIR }}/testplane-gui)" )
"
echo "FAILED_PR_COMMENT=${comment}" >> $GITHUB_ENV
- name: Leave failed comment to PR with link to Testplane HTML reports