julia-actions / setup-julia

This action sets up a Julia environment for use in actions by downloading a specified version of Julia and adding it to PATH.
MIT License
93 stars 23 forks source link

update to node20 #209

Closed ranocha closed 6 months ago

ranocha commented 8 months ago

Fixes #208

Node 16 is deprecated, see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

DilumAluthge commented 8 months ago

Node20 requires glibc 2.28.

CentOS 7 ships with glibc 2.17. Therefore, once we upgrade julia-actions/setup-julia to Node20, self-hosted CentOS 7 runners won't be able to use new versions of the setup-julia action.

CentOS 7 will become end-of-life on June 30, 2024. Therefore, I think that we should wait until June 30 to upgrade setup-julia to Node20.


CentOS 8 ships with glibc 2.28. Therefore, self-hosted CentOS 8 runners will be able to run Node20.

andreyz4k commented 8 months ago

@DilumAluthge Why not just release a new version? That's what setup-python did, for example. CentOS 7 users will stay on v1 and everyone else will move on

ViralBShah commented 8 months ago

If node16 is EOL, shouldn't we move quickly to node20? Will those nodes stop working at some point?

davidanthoff commented 8 months ago

All the other major actions bumped their major version to handle this. That seems like a good solution here too? Just make it julia-actions/setup-julia@v2?

DilumAluthge commented 8 months ago

Why not just release a new version?

Because then all bugfixes have to be backported to the old version v1, which is a nontrivial amount of work.

DilumAluthge commented 8 months ago

Will those nodes stop working at some point?

I haven't seen any announcement that GitHub-hosted runners will lose the ability to run node16 actions prior to June 30 of this year.

ViralBShah commented 8 months ago

If node20 is faster, wouldn't it be nice for people who don't worry about CentOS 7 etc to be able to use it? v2 seems like a good choice.

EDIT: I see your point about backporting. What really depends on CentOS 7 in our ecosystem? I thought pretty much most package CI scripts use ubuntu-latest. I understand June 30 is not that far away...

DilumAluthge commented 6 months ago

we will start enforcing the use of Node20 rather than Node16 on the 13th of May.

Source: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Personally, I'm not pleased that GitHub is forcing the upgrade a month and a half earlier than the CentOS 7 EOL. But unfortunately there's nothing that we can do.

So May 13 is when we'll need to switch to Node20. It'll probably be good to give ourselves a day or two of buffer, so let's plan on merging this PR on Monday, May 13, 2024 and making the new v2.0.0 release of this action on the same day.

lamdor commented 6 months ago

I think you'll want to release 2.0 before the runner cut off date to give those who use this action some time to update their workflows to use 2.0 before nodejs 16 is removed. Otherwise they're stuck with a broken 1.0 for a bit.

DilumAluthge commented 6 months ago

Ah, that's fair. How much of a lead time do you think would make sense? Would one week be enough? Maybe two weeks?

fingolfin commented 6 months ago

Honestly? About two months ago would have been nice. Now is second best. Just 1-2 weeks before is super short. Thousands of projects need to adapt to this change.

Allowing for a smooth transition over multiple months like this is a major reason why GitHub actions can have multiple versions supported in parallel.

ViralBShah commented 6 months ago

Why not do it right away? What will we gain with CentOS 7 support for another 6 weeks?

DilumAluthge commented 6 months ago

The version number bump will be done here: https://github.com/julia-actions/setup-julia/pull/228

ViralBShah commented 6 months ago

Thanks @DilumAluthge!

SaschaMann commented 6 months ago

I wonder if we should add a deprecation notice to @v1, perhaps even bundled with a check for the presence of a dependabot file and info on how to set it up?

Otherwise I imagine lots of people will never get newer versions as they've just copied workflows that included @v1 at some point.

Similarly, PkgTemplates.jl and other places that contain a CI template need to be updated.

(There's a reason why in the past we've tagged a few releases as non-breaking even if they were technically breaking on enterprise/self-hosted setups)

ararslan commented 6 months ago

I imagine lots of people will never get newer versions as they've just copied workflows that included @v1 at some point.

Or from this repo's README 😄