Skip to content

Update AL2 ci images with unofficial nodejs build before EOL deprecation #5178

@peterzhuamazon

Description

@peterzhuamazon

A lot of the github actions are failing now due to AL2 with older glibc does not support node 18 and 20 and above. (Ex: opensearch-project/job-scheduler#700) (Ex2: opensearch-project/neural-search#975)

Since AL2 will be deprecated on 2025/06 we opt to use the unofficial build to unblock us from this situation without doing too much changes to everyone's checks.

Thanks.

New Approach:

  1. The image will have the unofficial build on disk, so it wont be blocked if nodejs mirror is down.
  2. The workflow will do two volume mount, and force the hardcoded path of github runner binary pointing to the unofficial build on disk.

Therefore the actions of v4s will then use our binary to run, which support glibc2.17.


Plugin Owners, please follow this Sample PR to mitigate the issues:

Thanks!


Fix Mechanism PRs:

Infra/Plugin PRs:


New updates:

20250821 GitHub Actions now support node24 co-exist with node20, as a result some actions such as checkout@v5 has already updated, we need to take a look soon:

There are multiple issues with trying to build node24 on glibc < 2.27 system, with AL2 having 2.26 by default. memfd_create is not available as a wrapper in the header. Even unofficial project has stopped it for a while. Our approach is to replace node24 on the runner with node20 and rely on github having their code backward compatible on these v5 actions and above.

Thanks.

Metadata

Metadata

Type

No type

Projects

Status

Done

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions