Skip to content

various fixes from fallout from task.py removal#9164

Merged
allisonkarlitskaya merged 3 commits into
mainfrom
bots-fixes
Jun 8, 2026
Merged

various fixes from fallout from task.py removal#9164
allisonkarlitskaya merged 3 commits into
mainfrom
bots-fixes

Conversation

@allisonkarlitskaya

Copy link
Copy Markdown
Member

No description provided.

Most callers who want the return value of this function are interested
only in the number of the created pull request.  Return that directly.

The only other thing that anyone was using the data for was to get the
SHA of the HEAD of the PR but we have that information locally since we
just pushed it.  It's also not going to be useful soon: we will start
force-pushing which changes the sha.  Callers that need that information
can fetch it themselves from the local repository.

Assisted-by: Claude Opus 4.6
PRs created with the `GITHUB_TOKEN` from the workflow run don't trigger
workflow events due to GitHub's recursive-trigger protection.  The old
`task.pull()` worked around this by amending the commit and forcepushing
via the deploy key (SSH).  Let's do the same.

Assisted-by: Claude Opus 4.6
We used to download the old image as the first thing that we do when
creating a new version of it.  We tried to move that download down until
after we created the new image but it broke: we download by the image
name and the symlink was already updated at that point, more or less
guaranteeing that the download will fail.

Move it back up to the top: it's pointless work in an edge case (the
image is unchanged), but it *is* an edge case.

@jelly jelly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@allisonkarlitskaya allisonkarlitskaya merged commit c940743 into main Jun 8, 2026
6 checks passed
@allisonkarlitskaya allisonkarlitskaya deleted the bots-fixes branch June 8, 2026 09:01
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