mirror of
https://github.com/Comfy-Org/comfyci-runpod-worker.git
synced 2026-11-04 23:47:32 +00:00
[PR #6] [MERGED] Post PULSE comments on code owners' PRs when GPU outputs change #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfyci-runpod-worker#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfyci-runpod-worker/pull/6
Author: @marawan206
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @alexisrolland
Base:
goldens-v2← Head:pulse-pr-comments📝 Commits (9)
59c4dd4Look up the merged pull request for each tested commit23c8931Write the run summary to a file and record each workflow's prior verdict563ec75Add PULSE PR comments for GPU output changes94fd78cRun the PULSE PR comment step after the regression suite775327cDocument PULSE PR comments and the prior verdict fielda931c82Pass the commit input to the target step through env and check it is a shabd82e28Write the run summary only after the results are published2828e04Only report execution errors on workflows that ran before, and skip older-commit re-tests6987318Skip PR comments for runs that covered several commits📊 Changes
11 files changed (+1105 additions, -17 deletions)
View changed files
📝
.github/workflows/regression.yml(+28 -5)📝
README.md(+50 -3)📝
scripts/commit_meta.py(+32 -3)📝
scripts/index_builder.py(+33 -2)➕
scripts/notify_pr.py(+371 -0)📝
scripts/run_regression.py(+26 -3)➕
scripts/tests/test_commit_meta.py(+103 -0)📝
scripts/tests/test_golden_baseline.py(+2 -0)📝
scripts/tests/test_index_builder.py(+17 -0)➕
scripts/tests/test_notify_pr.py(+368 -0)📝
scripts/tests/test_run_regression.py(+75 -1)📄 Description
Stacked on #4 (
goldens-v2), which adds thedetail(new_drift / inherited),commit_metaandtested_rangefields this builds on. Merge #4 first; this PR's diff is the last nine commits.What this does
After each GPU regression run,
scripts/notify_pr.pycan leave one comment on the ComfyUI pull request that landed the tested commit. It is posted as the owner ofPULSE_GH_TOKEN.**(PULSE)**.Default is dry-run. Nothing is posted until the
PULSE_PR_COMMENTSrepo variable is set toon. Until then the comment only appears in the job summary.Policy
detail: new_drift), or<!-- pulse-regression:v1 -->) and the token owner's login, then edited in place. Re-running the same commit never adds a second comment. If a later run of that commit is clean, the comment becomes a short resolved note.*rule of ComfyUI'sCODEOWNERS. Today that is comfyanonymous, guill, alexisrolland, rattus128 and kijai; team entries are ignored.PULSE_ALLOWED_AUTHORS(comma-separated) replaces that list. If CODEOWNERS can't be read and no override is set, nothing is posted.continue-on-error: true. Any API or network problem is a warning with exit code 0.Changes
commit_meta.fetch_commit_metaalso callsGET /repos/Comfy-Org/ComfyUI/commits/{sha}/pulls.pr_title,pr_author,pr_avatar,pr_labels,pr_merged_atandpr_url.prfalls back to the(#N)at the end of the commit subject.pt/pa/avonly when known.run_regression.py--summary-outwrites the final summary once results are published, including on a failing run. A failed publish leaves no summary, so no comment links to a missing page.prior_verdict/prior_commit, read from the run index. Unlike the previous-run pointer, the index includes runs that had execution errors, so a standing error isn't reported on every following PR.regression.ymlinputs.commitandinputs.workflowsthrough env instead of pasting them into the shell. The commit input must be a hex sha.$RUNNER_TEMP/summary.json.index_builder.LANES_FILEinto later tests.How to enable
Comfy-Org/ComfyUI, with Issues and Pull requests set to read and write. It may need approval by an org owner.public_repotoken also works, but it can push to every public repo the account can write to.PULSE_GH_TOKEN.PULSE_PR_COMMENTS=on. Setting it tooffstops the step at once.PULSE_ALLOWED_AUTHORSto narrow or widen the author list.Testing
python -m pytest scripts/testspasses (81 tests). With a mocked GitHub API they cover:A read-only dry run against a real code-owner commit (#16867) resolved the PR and author and reported "would create". Nothing was posted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.