Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix multiline slack report for weekly CI #706

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1174,23 +1174,31 @@ jobs:
# FIXME: https://github.com/zama-ai/concrete-ml-internal/issues/4428
- name: Set message body
run: |
SLACK_BODY="Build status ([Action URL](${{ env.ACTION_RUN_URL }})):\n\
- Linux: ${{ needs.build-linux.result }}\n\n\
- macOS (intel): ${{ needs.build-macos-intel.result }}\n\n"
{
echo "SLACK_BODY<<EOF"
echo "Build status ([Action URL](${{ env.ACTION_RUN_URL }})):"
echo " - Linux: ${{ needs.build-linux.result }}"
echo " - macOS (intel): ${{ needs.build-macos-intel.result }}"
} >> "$GITHUB_ENV"

LINUX_PYTHON_VERSIONS="${{ needs.matrix-preparation.outputs.linux-python-versions }}"

for linux_python_version in ${LINUX_PYTHON_VERSIONS}; do
file_name="failed_tests_slack_list_${linux_python_version}.txt"

if [ -f ${file_name} ]; then
SLACK_BODY+="Linux failed tests (Python ${linux_python_version}):\n"
SLACK_BODY+="$(cat ${file_name})"
SLACK_BODY+="\n\n"
FAILED_TESTS_LIST=$(cat "${file_name}")

{
echo ""
echo ""
echo "Linux failed tests (Python ${linux_python_version}):"
echo "${FAILED_TESTS_LIST}"
} >> "$GITHUB_ENV"
fi
done

echo "SLACK_BODY=${SLACK_BODY}" >> "$GITHUB_ENV"
echo "EOF" >> "$GITHUB_ENV"

- name: Slack report
uses: rtCamp/action-slack-notify@4e5fb42d249be6a45a298f3c9543b111b02f7907
Expand Down
Loading