diff --git a/.github/workflows/recce_ci.yml b/.github/workflows/recce_ci.yml index e825c57f6..cd91da11d 100644 --- a/.github/workflows/recce_ci.yml +++ b/.github/workflows/recce_ci.yml @@ -22,7 +22,7 @@ jobs: pip install -r requirements.txt - name: Install Recce run: | - pip install recce-nightly==0.15.0.20240426a389 + pip install recce-nightly - name: Add packages.yml file run: | echo '${{ vars.PACKAGES_YAML }}' > packages.yml @@ -73,6 +73,18 @@ jobs: recce summary recce_state.json > recce_summary.md cat recce_summary.md >> $GITHUB_STEP_SUMMARY echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md + + # Handle the case when the recce summary is too long to be displayed in the GitHub PR comment + if [[ `wc -c recce_summary.md | awk '{print $1}'` -ge '65535' ]]; then + cat << EOF + # Recce Summary + The recce summary is too long to be displayed in the GitHub PR comment. + Please check the summary detail in the [Job Summary](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) page. + + ${{ env.NEXT_STEP_MESSAGE }} + EOF > recce_summary.md + fi + env: ARTIFACT_URL: ${{ steps.recce-artifact-uploader.outputs.artifact-url }} NEXT_STEP_MESSAGE: |