Skip to content

Conversation

@mjschmidt271
Copy link
Contributor

Pretty simple, in theory. In practice... spent the last hour wrestling gh action syntax 😤😂

@mjschmidt271 mjschmidt271 added BFB PR leaves answers BFB CI: workflow change approved Allow gh action PR testing on ghci-snl-* machines for PRs that alter a worfklow file workflows labels Sep 5, 2025
Copy link
Contributor

@bartgol bartgol left a comment

Choose a reason for hiding this comment

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

Looks good. I got some comments though.

"branch." >> "${GITHUB_STEP_SUMMARY}"
echo "Then commit the changes and push to your remote branch." >> "${GITHUB_STEP_SUMMARY}"
echo "" >> "${GITHUB_STEP_SUMMARY}"
echo "For diffs with ***fewer than 10 files***, we also include the text of " \
Copy link
Contributor

Choose a reason for hiding this comment

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

Some files may still have A LOT of diffs, especially the first time the files undergo clang-format... Maybe you could just run head -N 50 <diff_file> (or 100, or whatever many lines you're comfortable with)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm... that makes sense. The only different approach I might take is to use the head -N <num> to determine whether we include the diff text. The reason being that a partial diff of a file is no use at all as a patch.

@mahf708 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it's too much to ask that the user downloads the patch and looks at it? I think having a list of files that need fixing is plenty enough for the summary...

Copy link
Contributor

Choose a reason for hiding this comment

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

That's ok, as I said, no strong feelings either way. I don't mind

@mjschmidt271 mjschmidt271 force-pushed the mjs/eamxx/format-patch-in-summary branch from 9f76bb7 to 416f2d7 Compare September 5, 2025 18:05
@mjschmidt271 mjschmidt271 marked this pull request as ready for review September 5, 2025 18:06
bartgol added a commit that referenced this pull request Sep 5, 2025
Give patch file unique name and provide text of short diffs in job summary

[BFB]
@bartgol bartgol merged commit 2ede2e3 into master Sep 5, 2025
2 checks passed
@bartgol bartgol deleted the mjs/eamxx/format-patch-in-summary branch September 5, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BFB PR leaves answers BFB CI: workflow change approved Allow gh action PR testing on ghci-snl-* machines for PRs that alter a worfklow file workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants