YannickRe / azuredevops-buildagents

Generate self-hosted build agents for Azure DevOps, just like Microsoft does.
MIT License
153 stars 90 forks source link

Always use "main" branch instead of releases, based on feedback #68

Closed System-Admins-ath closed 1 year ago

System-Admins-ath commented 1 year ago

Currently it's not possible to build the Windows images due to an error in the downloaded releases. Based on feedback from the /actions/runner team, this should always use the main branch.

https://github.com/actions/runner-images/issues/8732

image

YannickRe commented 1 year ago

H @System-Admins-ath ,

This has been the guideline forever with that repository, because of the way they do things. While running the packer build, all the binaries for all the software are downloaded on the fly. Sometimes these are fixed versions, sometimes they are just the latest version available at that point. This means that none of the releases or prereleases (or any subsequent run of the same snapshot of code from that repo) will necessarily result in the same image.

It's a challenge for my project because a run might work now and fail in 3h and work again in 6h, and I'm usually taking the heat for it although it's rarely caused by my "wrapper" 😄. We used to only run on the latest and greatest code from the runner-images repo, but some people wanted to option to go the latest release or pre-release. That's why we introduced those selections when starting your build: alpha (which is latest and greatest), pre-release (latest pre-release tag for a specific image type), or release (latest release tag for a specific image type).

I hope this clarifies things?

System-Admins-ath commented 1 year ago

So i could just use alpha, and that will use the main branch? :-)

On 6 Nov 2023, at 15.29, Yannick Reekmans @.***> wrote:

 CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

H @System-Admins-athhttps://github.com/System-Admins-ath ,

This has been the guideline forever with that repository, because of the way they do things. While running the packer build, all the binaries for all the software are downloaded on the fly. Sometimes these are fixed versions, sometimes they are just the latest version available at that point. This means that none of the releases or prereleases (or any subsequent run of the same snapshot of code from that repo) will necessarily result in the same image.

It's a challenge for my project because a run might work now and fail in 3h and work again in 6h, and I'm usually taking the heat for it although it's rarely caused by my "wrapper" 😄. We used to only run on the latest and greatest code from the runner-images repo, but some people wanted to option to go the latest release or pre-release. That's why we introduced those selections when starting your build: alpha (which is latest and greatest), pre-release (latest pre-release tag for a specific image type), or release (latest release tag for a specific image type).

I hope this clarifies things?

— Reply to this email directly, view it on GitHubhttps://github.com/YannickRe/azuredevops-buildagents/issues/68#issuecomment-1794958514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWOUYEZX5TWHHFFTEAYEU7DYDDX5XAVCNFSM6AAAAAA67QW756VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJUHE2TQNJRGQ. You are receiving this because you were mentioned.Message ID: @.***>

YannickRe commented 1 year ago

Exactly!

System-Admins-ath commented 1 year ago

Perfect! Then the issue can be closed!

On 6 Nov 2023, at 15.32, Yannick Reekmans @.***> wrote:

 CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Exactly!

— Reply to this email directly, view it on GitHubhttps://github.com/YannickRe/azuredevops-buildagents/issues/68#issuecomment-1794963853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWOUYEYR7KCNN75JFK5HNADYDDYIDAVCNFSM6AAAAAA67QW756VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJUHE3DGOBVGM. You are receiving this because you were mentioned.Message ID: @.***>