Skip to content

Syncer lambda is not downloading GitHub runner release into S3 bucket #1541

Closed

Description

@npalm

Problem

The latest release of GitHub runners contains a lot more artifacts. The syncer Lambda is downloading the GitHub runner release based on a prefix with architecture and os. Per arch and os this leads now to mutliple matches wich cause the error "Cannot find GitHub release asset".

Work around

Download the latest GitHub release for the runner to the S3 bucket created by the module (Terraform). You can find the name of the bucket and object as part of the config of the Lambda. For example, via the AWS console or terraform resources. Look for S3_BUCKET_NAME and S3_OBJECT_KEY. The Lambda in the bucket also uses tags for the object, but the tags are not used by the install script which fetch the distribution from the bcket.

Fix

Release 0.27.2+ see also PR #1542

Activity

  1. added
    bug
    on Dec 21, 2021
  2. changed the title [-]Download runner dist broken.[/-] [+]Download lambda for runner dist broken.[/+] on Dec 21, 2021
  3. changed the title [-]Download lambda for runner dist broken.[/-] [+]Syncer lambda is not downloading GitHub runner release into S3 bucket[/+] on Dec 22, 2021
  4. added a commit that references this issue on Dec 22, 2021
  5. pinned this issue on Dec 23, 2021
  6. npalm commented on Jan 13, 2022

    @npalm
    MemberAuthor

    Kept the issue for some time open, to indicate the problem clearly. A patch is available since version 0.27.2.

  7. dhaven commented on Jan 31, 2022

    @dhaven

    Hello there,

    I've stumbled on this issue while working with windows instances and version 0.32.0 of this module. Can you confirm that the lambda syncer is expected to work when downloading the windows binary?

    I've done some investigation and found the following :

    the release filename to be downloaded should look like : actions-runner-win-x64-2.287.1.zip

    looking at the lambda function code here the runner_os variable is used in the filename. For windows this variable used to be "win" but has recently been changed to "windows" (as of #1591 ). I might be wrong but this seems to be the source of the error.

    Thanks,

  8. unpinned this issue on Feb 7, 2022
  9. ScottGuymer commented on Feb 8, 2022

    @ScottGuymer
    Contributor

    @dhaven I think you are exactly right with this. We changed it to windows as it then matched up with the automatically added GitHub os label.

    Is this still not working correctly in the latest version?

  10. krlydm commented on Feb 8, 2022

    @krlydm
    Contributor

    I can confirm that I have the same issue with the latest v0.34.0. As a workaround, I manually downloaded the action-runner from GitHub, rename it to the correct format (actions-runner-windows.zip) and uploaded to the S3 bucket.

  11. ScottGuymer commented on Feb 9, 2022

    @ScottGuymer
    Contributor

    Hopefully #1716 will address this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions