Skip to content

Drop support for Node < 10 and Ember < 2.18.#73

Merged
rwjblue merged 7 commits intoember-fastboot:masterfrom
chancancode:upgrades
Apr 30, 2020
Merged

Drop support for Node < 10 and Ember < 2.18.#73
rwjblue merged 7 commits intoember-fastboot:masterfrom
chancancode:upgrades

Conversation

@chancancode
Copy link
Copy Markdown
Contributor

@chancancode chancancode commented Apr 29, 2020

See https://github.com/chancancode/ember-cli-head/pull/1/checks for the GitHub Actions runs. They should start showing up here once this lands. Canary tests are currently failing, should be fixed by #71.

@chancancode
Copy link
Copy Markdown
Contributor Author

See https://github.com/chancancode/ember-cli-head/pull/1/checks for the GitHub Actions runs

@chancancode chancancode force-pushed the upgrades branch 4 times, most recently from f715298 to bc529ca Compare April 29, 2020 03:06
if: matrix.scenario != 'default-with-fastboot'
# Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
# See https://github.com/ember-cli/ember-cli/issues/8922
run: EMBER_ENV=test yarn test --path dist
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that run ember test twice for each scenario, once with the ember-try scenario's dependencies (L47), and once with the default ones here? Also linting for each scenario.

I tried to replicate the default Travis setup as much as possible, have one job that runs linting and default tests, one with floating deps, and then the matrix of ember-try scenarios. E.g. like this: https://github.com/kaliber5/ember-in-element-polyfill/blob/master/.github/workflows/ci.yml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L47 only does the yarn install and sets the optional feature ENV variable, because I passed a command to ember try instead of the default (ember test). I like to break down the steps as much as possible so it makes it easier to see what failed and find the logs.

As for floating dependencies, all of the scenarios are floating by default (—no-lockfile) and I added one that tests with lockfile specifically. This actually confused me a little because the default Travis yaml also uses —no-lockfile by default so I don’t actually understand why the floating dependencies one is needed at all.

@simonihmig
Copy link
Copy Markdown
Contributor

Seems this is now configured to throw on deprecations, so canary is failing due to -in-element. In that case the changes from #71 would also need to be pulled in, right?

@chancancode
Copy link
Copy Markdown
Contributor Author

Yep exactly. But since none of the checks are required (or even running on this repo), we can probably just merge this and rebase #71 on top. Would be a good excuse to test out the new CI setup in the context of a PR.

Comment on lines -18 to -21
headElement: computed(function() {
let documentService = getOwner(this).lookup('service:-document');
return documentService.head;
}),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this removed because it is not needed anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved to init. Some tests is overwriting this and it was causing the computed clobbering deprecation.

if: matrix.scenario != 'default-with-lockfile'
run: yarn install --non-interactive --no-lockfile
- name: Setup ember-try scenario
if: matrix.scenario != 'default' && matrix.scenario != 'default-with-lockfile'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p1/5

FWIW, I find this style significantly harder to read/understand (vs making a different jobs). I'm curious why you prefer it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because they seem to share a lot of the steps. GH Actions have very limited abstraction/reuse features, so it kind of sucks either way. I am pretty indifferent, if you prefer, I can change it.

@rwjblue rwjblue changed the title Upgrades Drop support for Node < 10 and Ember < 2.18. Apr 30, 2020
@rwjblue rwjblue merged commit f96582c into ember-fastboot:master Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor FastBoot tests

4 participants