Skip to content

Conversation

@tangrufus
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 21, 2025 05:51
@tangrufus tangrufus added the enhancement New feature or request label Nov 21, 2025
Copilot finished reviewing on behalf of tangrufus November 21, 2025 05:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to always display the matrix output by moving the echo statement to the end of the workflow. However, the implementation contradicts this goal.

Key Changes:

  • Removed matrix output display from immediately after generation (before error checking)
  • Added matrix output display at the end of the "Print Info" step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 155 to 158
echo ""
echo "::group::===> Matrix Output"
cat matrix
echo "::endgroup::"
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title states "Always echo matrix output", but this change actually prevents the matrix output from being displayed when matrix generation fails.

When php-matrix composer returns a non-zero exit code, the script exits at line 121 before reaching this output block. The original placement (after line 117) would display the matrix output before exiting, which is useful for debugging failures.

Consider either:

  1. Keeping the matrix output before the error check (lines 119-121), or
  2. Removing the exit 1 on line 121 to allow the workflow to continue to the "Print Info" step

Copilot uses AI. Check for mistakes.
@tangrufus tangrufus added bug Something isn't working and removed enhancement New feature or request labels Nov 21, 2025
Copilot AI review requested due to automatic review settings November 21, 2025 05:59
Copilot finished reviewing on behalf of tangrufus November 21, 2025 06:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 21, 2025 06:07
Copilot finished reviewing on behalf of tangrufus November 21, 2025 06:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 155 to 158
echo ""
echo "::group::===> Matrix Output"
stopMarker=$(uuidgen)
echo "::stop-commands::$stopMarker"
cat matrix
echo "::$stopMarker::"
echo "::endgroup::"
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix output will not be displayed when matrix generation fails. The "Print Info" step has if: ${{ !cancelled() }} (line 136), but when the "Generate Matrix" step exits with code 1 (line 121), the workflow will fail and skip subsequent steps by default.

To truly "always echo matrix output" as the PR title suggests, you need to either:

  1. Change the condition to if: ${{ always() }} so it runs even after failures, or
  2. Move the matrix output display back to the "Generate Matrix" step after line 117, before the error check

Option 2 would be closer to the original behavior while adding the stop-commands protection.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 21, 2025 06:12
Copilot finished reviewing on behalf of tangrufus November 21, 2025 06:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

action.yml Outdated
Comment on lines 155 to 160
echo ""
echo "==> Matrix Output"
stopMarker=$(uuidgen)
echo "::stop-commands::$stopMarker"
cat matrix
echo "::$stopMarker::"
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix output now uses ::stop-commands:: instead of ::group::, but there's no comment explaining why this change is necessary. Consider adding a comment to clarify that ::stop-commands:: is used to prevent the matrix output (which may contain workflow command syntax like ::error:: or ::warning::) from being interpreted as actual GitHub Actions commands.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 21, 2025 06:17
Copilot finished reviewing on behalf of tangrufus November 21, 2025 06:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tangrufus tangrufus merged commit ee26ae3 into main Nov 21, 2025
244 checks passed
@tangrufus tangrufus deleted the echo-output branch November 21, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants