Skip to content

Get the main branch deployable by restricting node versions #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

jenweber
Copy link
Contributor

@jenweber jenweber commented Nov 21, 2022

I found that our deployment pipeline does not read from volta. If we restrict to Node 14 in engines of package.json, the app deploys 🎉

Alternate options:

  • test if Node 16 works (I haven't done this yet)
  • could use npmrc
  • try to fix what broke when using Node 18 (I think we should do this, just maybe not now given other priorities)

I have a slight preference for using engines, in the interest of not proliferating places that version compat could live. Open to other approaches.

QA click testing available at https://ember-api-docs-staging.herokuapp.com/ember/release

@jenweber jenweber requested a review from chriskrycho November 21, 2022 17:26
@chriskrycho
Copy link
Contributor

chriskrycho commented Nov 22, 2022

The issue with Heroku is annoying; notably, though, engines is much less reliable than Volta in terms of helping developers working on the project or even knowing what actual version you'll get and, critically, you cannot use Volta to specify a package manager unless it specifies Node. Net, there's a tradeoff here in terms of having a single source of truth vs, how much that source of truth actually gives you. This change certainly makes sense to unblock, regardless, and the Learning team can evaluate the Volta question separately that way. (Has anyone checked into whether Heroku does, or has any plans to, support using Volta?)

@jenweber
Copy link
Contributor Author

I think we’re stuck with engines. I googled “Volta heroku support” and came up with nothing. Heroku docs talk about engines only: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

Let’s keep both Volta and engines.

@jenweber jenweber merged commit 443c3e9 into master Nov 22, 2022
@jenweber jenweber deleted the jw-node-v branch November 22, 2022 13:30
@jenweber jenweber mentioned this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants