Skip to content

ci(repo): post the entity check comment from the org runner group - #3257

Open
VelikovPetar wants to merge 2 commits into
masterfrom
ci/check-db-entities-comment-job
Open

VelikovPetar wants to merge 2 commits into
masterfrom
ci/check-db-entities-comment-job

Conversation

@VelikovPetar

@VelikovPetar VelikovPetar commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Submit a pull request

Linear: none
Github Issue: none

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Since #3256, check_entity_modifications runs on ubuntu-latest, but it still posted the PR comment itself. Commenting is a signed-in GitHub call, which the org IP allow list refuses from a standard runner, so the check failed on every PR from this repository that modifies a persistence entity file (seen on #3052: the script passed, then Find Comment failed).

The job is now split the way sdk_size.yml splits measure-android and report-android:

  • check_entity_modifications stays on ubuntu-latest. It runs the script, writes the job summary, uploads comment_body.md as an artifact and enforces the schemaVersion bump, so the check's result follows the script only. A failed upload does not fail it.
  • comment is a new job in the github-public-amd64 group. It downloads the artifact and posts or updates the comment. It also runs when the check job failed on a missing bump, and is skipped for forks, when no entity file changed and when no comment body was uploaded.
  • issues: write and pull-requests: write move from the workflow to the comment job.

Testing: live-tested on throwaway PRs stacked on this branch (#3258, #3259, both closed):

Case check_entity_modifications comment
Entity file changed, no bump fails at the enforce step posts the comment with the suggested bump
Bump pushed passes updates the same comment in place
Check job re-run passes passes, no artifact name conflict
No entity change (this PR) passes skipped

Not tested: a fork PR (the same-repo guard is unchanged).

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@VelikovPetar
VelikovPetar marked this pull request as ready for review November 27, 2026 13:19
@VelikovPetar
VelikovPetar requested a review from a team November 27, 2026 13:19
@github-actions github-actions Bot added the ready Pull request ready to be reviewed label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Pull request ready to be reviewed v10 Targets the v10 release line

Development

Successfully merging this pull request may close these issues.

1 participant