Github Integration - file upload order bug?

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Theme

Expected behavior

All files upload correctly.

Actual behavior

First time I’ve come across this in a while, but if you push up some changes (single commit) that contain template changes and a new section block then it can on occasion actually fail. This is because the files appear to upload in paralell, whereas the section files should be uploaded before the templates.

More-so to do with the Github integration, but there’s not a category for this sorry.

So to give you a specific example, I created a new block for the main product section, I also updated the .json template to use that block and merged with production to put it live. The section went live ok, but the template upload failed because the section file wasn’t uploaded first via the Github integration - it produced an error in the log.

Reproduction steps

  1. Create a new block within a section
  2. Update a template.json file to use that new section block.
  3. Push to production/main (whatever the theme is connected to)
  4. If you’re unlucky, the template.json upload will fail.

Verbose output

N/A

Operating system

Windows 11

CLI version

3.92.1

Shell

Git Bash/Power Shell

Nodejs version

24.6.0

What language and version are you using in your application?

N/A

Example of the error in the log Github Integration log

re-uploading product.json fixed it

Thanks @ceri_waters! I think I just came across an issue that described this the other day. I’ll try to find it and make sure it’s prioritized.