Repository navigation
feat(actions): keep one arc-job-report comment per PR with a section per workflow - #384
Merged
Merged
Conversation
JesperTerkelsen
marked this pull request as ready for review
October 14, 2026 07:08
JesperTerkelsen
requested review from
prasad-manu
and removed request for
a team
October 14, 2026 07:08
…per workflow monta-app/server runs its ARC jobs in several workflows (Unit tests, Integration tests, Static checks, Smoke tests). With one section per comment, each workflow's run would overwrite the others' job table and mix their run histories. The comment now has a section per workflow, marked with "<!-- workflow: <name> -->"; a run re-renders only its own section, and the 50-run history is split evenly between sections to stay under GitHub's comment size limit. A comment from before sections is adopted as the reporting workflow's section, keeping its history. A run whose commit has no PR now exits 0 with a message instead of failing: push-triggered workflows on branches without a PR are normal. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
JesperTerkelsen
force-pushed
the
feat/arc-job-report-one-comment-per-pr
branch
from
October 14, 2026 07:10
bb8dae7 to
3c87a03
Compare
tobias0106
approved these changes
Oct 14, 2026
brroMonta
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This lets the ARC job report cover several workflows in one comment per PR, so it can be turned on for monta-app/server.
monta-app/server runs its ARC jobs in four push-triggered workflows:
Unit tests,Integration tests,Static checksandSmoke tests. The report kept one block per comment, so each workflow's run would overwrite the others' job table and mix their run histories.<!-- workflow: <name> -->and its summary line now names the workflow (Unit tests · ✅ 6m 20s · …). A run re-renders only its own section, so each section keeps its own job table, suggestions and run history.Testing
python3 -m unittest discover -s .github/actions/arc-job-report -p 'test_*.py': 18 tests (including fix(actions): group "(shard N)" jobs into one arc-job-report row #383). The new ones cover two workflows sharing a comment with only the reporting section replaced, re-rendering the same run giving an identical comment, adopting an existing comment, and the history being split between sections.Unit tests,Integration testsandStatic checksruns for commitb293f11(dry run, nothing posted). That gives three sections, each with its own wall time, jobs and history. After rebasing onto fix(actions): group "(shard N)" jobs into one arc-job-report row #383,Unit testsshowsunit-tests · shards 1–8in one row, andIntegration testslists both matrix jobs by full name, each with a suggestion (8cpu → 4cpu, fits).--dry-runon https://github.com/monta-app/monorepo-typescript/actions/runs/38420988227 adopts the existing comment https://github.com/monta-app/monorepo-typescript/pull/11599#issuecomment-6141491902 as aPull Request - Mainsection with all 31 history rows.Gaps
🤖 Generated with Claude Code