ci: log workflow results and write GitHub job summaries #988
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/988"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-06T22:05:15Z.
Summary
Make maintenance and progress GitHub Actions easier to audit: log what each run did and mirror key lines in the Job summary tab, without extra API calls.
pr-overlap.yml,tools/pr_overlap.py): print open-PR scan totals; log comment create/update/delete/unchanged/clean; job summary sync table.progress-comment.yml): log when a Progress report run is stale (PR head moved sinceworkflow_run.head_sha); skip PATCH when the existing bot comment body is unchanged (same pattern as PR overlap); logunchanged comment.progress-report.yml): job summary when compare is empty (No library/shader progress changes in this diff).progress.yml): teeprogress.pyoutput withpipefail; copylibraries/shaderslines into job summary.Test plan
unchanged commentorskipped stale run(not full overlap-style sync counters).workflow_dispatchand confirm log lines + job summary counts.What
CI observability: workflow logs and
$GITHUB_STEP_SUMMARYfor PR overlap, progress report, progress comment, and Pages progress publish.Behaviour (intentional): Progress comment no longer PATCHes GitHub when the composed body matches the existing
github-actions[bot]comment (reduces API churn; mirrors PR overlap unchanged handling).Report files keep explicit UTF-8 encoding from merged #2134 (
write_text(..., encoding="utf-8")).Tested
Head:
4973a9c64865299846e3ebd50d708b3ffd2f0943(rebased onto upstreammain).pr_overlap: repo=... open_prs=...;pr_overlap sync: created=0 ... clean=1; Job summary tablelibraries/shaderslines + Job summary; job fails on forkdeploy-pages(expected)No library/shader progress changes in this diff.progress comment sync: unchanged comment on PR #3(forkmaintemporarily FF'd to run this workflow; restored)Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Sanjaysrinivas on 2026-10-07T19:21:49Z.
I reproduced the empty-report failure on current main (
cea1ef13c35044356348bc6221d45f3a80f7df09): the unmatched glob becomesissues/*/comments, then jq fails. The same failure occurred in this fork workflow run.I tested the PR-overlap shell step at your exact head
09ef50d98941587402e180c2a891b4e349cbae2fon Ubuntu 24.04 under WSL2, using real Bash and jq 1.7 with mocked report generation and GitHub CLI calls:All five scenarios behaved as expected on this PR. The four scenarios with report files also passed on main, providing controls for the reproduction. No live comment creation, editing or deletion was performed during the checks.
This validates the empty-glob fix and these PR-overlap shell paths. The other workflows and end-to-end GitHub summary presentation were not tested.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:27:51Z.
Review: CHANGES_REQUESTED
Thanks. Points to address:
shopt -s nullgloband|| trueinpr-overlap.yml(lines 29-30, 38) change behaviour: they fix the empty-report failure Sanjaysrinivas reproduced. That is a bug fix, not observability, and the description doesn't mention it. Please move it to its own PR (it can land quickly) and keep this one logging-only.PR overlapandProgresson your fork and link the runs showing the log lines and Job summary. The only local check so far (Sanjaysrinivas's comment) covers thepr-overlapstep, with mocks. Inprogress.yml, thegrep -E '^libraries |^shaders 'does match whattools/progress.pyprints (lines 337-338), butpython3 tools/progress.py out | teeruns withoutpipefail(the defaultrunshell isbash -e), so a failingprogress.pyis only caught by accident when that grep finds nothing. Please addset -o pipefail.progress-comment.ymlgoes from 13 to 56 lines in that step to count six states that are only printed. Please cut it to the stale-run skip line and the unchanged-comment skip, which are the only ones that carry information.tools/pr_overlap.py; rebase after they land or confirm there is no conflict.Workflow behaviour changes outside CONTRIBUTING are boykopovar's call, so the above evidence will help him decide.
Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-08T21:56:15Z.
Fixed
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T22:37:03Z.
I reviewed the overlap with Marc's #2134. The changes address separate behavior:
They can coexist and do not depend on each other. Since both touch the report writer, preserve
encoding="utf-8"when the two diffs are combined (for this branch's extracted helper, that meanswrite_text(body, encoding="utf-8")).Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-11T13:44:05Z.
Rebased
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:22:51Z.
Review: CHANGES_REQUESTED
Thanks for the rebase. Remaining points:
progress-comment.yml:30-46only echoesskipped stale run/unchanged comment. There are no created/updated counters and no job summary. Either add them or fix the description.progress-comment.yml:36-46now skips the PATCH when the body is unchanged. That is a behaviour change, not logging, and the description doesn't list it as one. Please state it under What (it is fine to keep, pr-overlap already does the same).1ef9dc62(the Pages deploy step fails on the fork, as expected). Nothing shows theprogress-report.yml:34-41empty-diff summary or theprogress-comment.ymllog lines running. Please link a run of each (a PR on your fork is enough) and re-run Progress on the current head, since thepipefail+grepinprogress.yml:25-35fails the publish step if a line is missing.encoding="utf-8"in the report writer when #2134 lands.Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-11T21:50:59Z.
@adriadam10 Addressed the Oct 11 review on head
4973a9c(rebased onto current upstreammain).Description: Progress comment no longer claims overlap-style sync counters; documented the intentional unchanged-body PATCH skip under What.
Evidence (fork, same HEAD):
pr_overlap:scan line +pr_overlap sync: ...+ Job summary)pipefail+libraries/shadersin log/summary;deploy-pagesfails on the fork as before)progress comment sync: unchanged comment on PR #3; briefly FF'd forkmainsoworkflow_runpicked up the new workflow, then restoredmainto951fd9afc)#2134:
write_text(..., encoding="utf-8")still present intools/pr_overlap.pyafter rebase.Please take another look when you have a moment.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:18:08Z.
Review: COMMENTED
Reviewed
79d90c356c1f311db5322dc0c7bcb7416da754d8. Pending review.The focused workflow behavior passes local checks; the current merge conflict keeps this review pending.
Validation: Executed the submitted progress-comment Bash step with local gh/jq doubles for stale, unchanged, changed, absent and deleted reports. The candidate suppresses the unchanged PATCH that the base issues, while preserving create/update/delete routing. No GitHub calls were made by the probe. Reviewed the other summary/log changes.
Scope / next step: Resolve the conflict and test the resulting workflow revision. These local fixtures do not replace execution of the live Pages/overlap workflows.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-27T03:26:54Z.
Review: COMMENTED
Reviewed
c38d765ce5f88136b598c50fbf999f5c7e8fbb1f. Comment: the earlier merge conflict is resolved, but current-head execution of the live overlap, Pages and progress-comment workflows remains unverified in this review.On Windows/Python 3.11.9, 79 overlap tests passed and 5 were skipped. The submitted progress-comment Bash step passed local stale, unchanged, update, create and delete routing fixtures with gh/jq doubles; the old step PATCHes an unchanged body, establishing the behavior change. These fixtures made no GitHub calls. Git Bash needed an outside-sandbox rerun after the sandbox prevented it from starting.
The upstream Progress report job checked out the PR merge with this head and logged the empty-diff message. The upstream Linux relinker job ran the registered overlap tests on a merge containing this head; product jobs were skipped. The linked fork demonstrations identify an earlier revision. Please confirm the remaining live workflow paths on this head or provide equivalent evidence; this is a validation limitation, not a demonstrated production defect.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-27T09:44:52Z.
Review: COMMENTED
Thanks for requesting another review. I rechecked
c38d765ce5and the linked fork runs. The conflict is resolved, the current-head overlap run passed, and all five local comment-routing checks passed again. I found no new code defect.My review remains pending because current-head Pages execution and the exact workflow revision used by the progress-comment runs remain unverified. The new evidence improves coverage, but doesn’t fully close those validation gaps.
Pull request closed