Skip to content

ci: Use date-based branch names for toxgen PRs#5704

Merged
sentrivana merged 2 commits intomasterfrom
ivana/toxgen-new-branch-everytime
Mar 19, 2026
Merged

ci: Use date-based branch names for toxgen PRs#5704
sentrivana merged 2 commits intomasterfrom
ivana/toxgen-new-branch-everytime

Conversation

@sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Mar 19, 2026

Reusing the toxgen/update branch can get annoying, especially since it needs manual babysitting (empty commit to trigger CI). Let's use distinct names instead.

Summary

  • Instead of always reusing the same toxgen/update branch, the "Update test matrix" workflow now creates a date-based branch (e.g. toxgen/update-03-19).
  • Same-day reruns force-push to the same branch, so they overwrite rather than fail.
  • The PR-closing logic now finds and closes all open PRs from any toxgen/ branch, not just the current one.

Test plan

  • Trigger the "Update test matrix" workflow manually and verify it creates a branch like toxgen/update-MM-DD
  • Trigger it again on the same day and verify it overwrites the branch and closes the previous PR
  • Verify old toxgen PRs from different branches get closed

sentrivana and others added 2 commits March 19, 2026 12:00
Instead of always reusing the same "toxgen/update" branch, create a new
branch per run with the date appended (e.g. "toxgen/update-03-19").
Same-day reruns overwrite the branch via force push. The PR-closing
logic now finds all open PRs from any toxgen/ branch, not just the
current one.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sentrivana sentrivana marked this pull request as ready for review March 19, 2026 11:08
@sentrivana sentrivana requested a review from a team as a code owner March 19, 2026 11:08
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Codecov Results 📊

13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 7.77s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14366 uncovered lines.


Generated by Codecov Action

@sentrivana sentrivana merged commit 715fd2b into master Mar 19, 2026
155 of 158 checks passed
@sentrivana sentrivana deleted the ivana/toxgen-new-branch-everytime branch March 19, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants