Skip to content

Comments

Prevent multiline matrix payload from causing issues in GitHub workflow output#190

Merged
Ocramius merged 3 commits intolaminas:1.23.xfrom
gsteel:multiline-output-fix
Feb 22, 2023
Merged

Prevent multiline matrix payload from causing issues in GitHub workflow output#190
Ocramius merged 3 commits intolaminas:1.23.xfrom
gsteel:multiline-output-fix

Conversation

@gsteel
Copy link
Member

@gsteel gsteel commented Feb 22, 2023

Makes CI green.

It appears that sergeysova/jq-action@v2.3.0 was at fault here, and enabling its multiline option solves the issue.

This patch also updates usage of $GITHUB_OUTPUT in continuous-integration.yml in case the matrix generated there is also multiline.

Deprecations are still being issued about set-output but I'm not sure where these are coming from 🤷‍♂️

@gsteel gsteel added the Bug Something isn't working label Feb 22, 2023
@gsteel gsteel added this to the 1.23.0 milestone Feb 22, 2023
…ow output

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel force-pushed the multiline-output-fix branch from 26c0bb3 to aa1fd30 Compare February 22, 2023 11:18
Signed-off-by: George Steel <george@net-glue.co.uk>
# The project name from the tests/ directory is then re-used within the "qa" job to run the generated "container"
# within that directory.
run: cd tests; echo "matrix=[\"$(ls -d * | tr '\n' ' ' | sed 's/ $//' | sed 's/ /\",\"/g')\"]" >> $GITHUB_OUTPUT
run: |

Choose a reason for hiding this comment

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

Is this needed ASWELL as pinning the version of jq-action? I would hope this change would be all that's needed?

Copy link
Member Author

@gsteel gsteel Feb 22, 2023

Choose a reason for hiding this comment

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

I don't think so - But, if there's any chance that matrix is multiline, at least the case is covered. It should probably always have been like this WRT #150

We may be able to stick with jq-action@v2 if the multiline option works out for us.

Choose a reason for hiding this comment

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

I think this change needs reverting as "matrix=[\"$(ls -d * | tr '\n' ' ' | sed 's/ $//' | sed 's/ /\",\"/g')\"]" should be on a single line.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll send in another patch @internalsystemerror for 1.23

Choose a reason for hiding this comment

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

Ty <3

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel marked this pull request as draft February 22, 2023 12:04
@gsteel gsteel marked this pull request as ready for review February 22, 2023 12:23
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Thanks @gsteel!

@Ocramius Ocramius self-assigned this Feb 22, 2023
@Ocramius Ocramius merged commit b4c1308 into laminas:1.23.x Feb 22, 2023
@gsteel gsteel deleted the multiline-output-fix branch February 22, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants