Skip to content

Upgrade Ember and other dependencies where possible #501

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 8 commits into from
Feb 11, 2017

Conversation

bjornharrtell
Copy link
Contributor

@bjornharrtell bjornharrtell commented Jan 6, 2017

Thought I'd try an Ember and deps upgrade here as an exercise. Almost made it.

Known TODOs

  • Assertion Failed: You attempted to define a {{link-to "crate.version"}} but did not pass the parameters required for generating its dynamic segments. You must provide a param version_num."
  • Assertion Failed: You modified crate.owners twice on <cargo@model:crate::ember764:log> in a single render
  • Two test failures

Size trivia

Before

  • cargo-78d091696888a1996f55b55e06305ed1.js: 326.6 KB (32.12 KB gzipped)
  • cargo-dd3626a8e865f3873803b828b74aec11.css: 18.27 KB (3.91 KB gzipped)
  • vendor-31836fffce5288795738abce6ce5df0a.js: 804.41 KB (219.53 KB gzipped)
  • vendor-db1aae18a50d64dc7d57cc30890fa4a9.css: 1.82 KB (889 B gzipped)

Ember 2.10

  • cargo-a2ea731112e31eb4ad816a2673775132.js: 195.24 KB (25.6 KB gzipped)
  • cargo-dd3626a8e865f3873803b828b74aec11.css: 18.27 KB (3.91 KB gzipped)
  • vendor-344087d1962d26f87e103b37bb470b18.js: 898.98 KB (234.69 KB gzipped)
  • vendor-924cc62bda01ca298267563aa0a649b0.css: 2.11 KB (969 B gzipped)

Ember 2.11

  • cargo-1055d8d7726ed3652b8c5b15698dad5f.js: 203.79 KB (26.89 KB gzipped)
  • cargo-87493fb73363b542afc2eb3fb4cd5e3e.css: 18.24 KB (3.91 KB gzipped)
  • vendor-8c012c271ee0b49d3b8c93c77601c24f.js: 906.82 KB (235.8 KB gzipped)
  • vendor-924cc62bda01ca298267563aa0a649b0.css: 2.11 KB (969 B gzipped)

@bjornharrtell
Copy link
Contributor Author

The link-to issue seems to be an Ember regression, emberjs/ember.js#14657.

@alexcrichton
Copy link
Member

r? @carols10cents

Thanks for the PR @bjornharrtell!

@carols10cents carols10cents self-assigned this Jan 11, 2017
@carols10cents
Copy link
Member

@bjornharrtell It looks like this is still WIP, right? And we'll need to wait on a fix for that ember issue? If so, please ping me when this is ready for review or if you need any help! <3

@bjornharrtell
Copy link
Contributor Author

Had another go so this is now rebased on master and at Ember 2.11. I've worked around the link-to issue and can't reproduce the other issues now so perhaps this is ready for review. Ping @carols10cents. :)

@bjornharrtell bjornharrtell changed the title Upgrade Ember and other dependencies where possible (WIP) Upgrade Ember and other dependencies where possible Feb 3, 2017
@carols10cents
Copy link
Member

This is awesome!! I'm so glad you're doing this :) Just three hopefully small things:

  1. There's a few merge conflicts; I think I could resolve them but I'd rather you make sure I don't pick the wrong versions. If I promise not to merge any front end code that would cause more merge conflicts in the meantime, would you mind rebasing one more time? :)
  2. When I load up the homepage on this branch, there are a few differences in the CSS and I'm not sure why they would have changed :-/

screen shot 2017-02-09 at 10 36 17 pm

There's a purple outline around the search box, and the text of the "Browse All Crates", "Docs", and "Log in with github" links is dark. Also, while those header links function correctly as links when I click on them, they don't have cursor: pointer on hover :(

  1. There's a warning about pretender in the travis logs during the frontend test runs. While it is just a warning, it's not happening on master, so I wonder if we need to be doing something differently?

@bjornharrtell
Copy link
Contributor Author

You are welcome :) Worked through the merge conflicts.

I would assume any visual change could be explain by some dependency upgrade (besides ember), but I cannot reproduce the purple outline. The dark links and cursor issue is fixed, it was caused by changes in normalize-css.

Not sure how to fix the pretender warning.

The red border started appearing around the empty search box (since it's
required) with the changes in rust-lang#501, even though nothing changed in the
markup. Rather than try and figure out which upgrade changed this, I'm
just going to override it.
So that the mirage fixtures aren't included in the production build.

http://www.ember-cli-mirage.com/docs/v0.2.x/upgrading/#x--02-upgrade-guide
@carols10cents
Copy link
Member

Thank you for fixing the merge conflicts and the normalize-css!!

I poked at the purple outline around the search box-- it only happens for me in firefox. If I put some white behind it instead of the dark green, then the outline looks red. And-- wait for it-- if I remove the required attribute from the input, it goes away :)

I considered removing the required attribute, but adding it was deliberate, soooo i'm going to throw box-shadow: none on the search box and call it a day.

As far as the Pretender warning, that was a fun one to chase down 😌 Along the way I found the mirage upgrade docs which said everything should be in /mirage rather than /app/mirage now. After trying many things recommended in various mirage bug reports, I found this issue that mentioned this change to the blueprints that was included in 0.2.5, so I regenerated the mirage files, indeed picked up a change that shuts down the server after each acceptance test, and it seems to be working.

Pushed to your branch to let CI run, I'll merge when it passes!!! 🎉

@carols10cents
Copy link
Member

And we're green! Thank you!!!!

@carols10cents carols10cents merged commit 51a3f14 into rust-lang:master Feb 11, 2017
@bjornharrtell bjornharrtell deleted the ember-2.10-upgrade branch February 11, 2017 09:54
bors added a commit that referenced this pull request Dec 18, 2019
….2, r=Turbo87

Bump qunit-dom from 0.9.0 to 0.9.2

Bumps [qunit-dom](https://github.com/simplabs/qunit-dom) from 0.9.0 to 0.9.2.
<details>
<summary>Release notes</summary>

*Sourced from [qunit-dom's releases](https://github.com/simplabs/qunit-dom/releases).*

> ## v0.9.1
> #### 🚀 Enhancement
> * [#496](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/496) Adding `hasTagName()` assertion ([@&#8203;scalvert](https://github.com/scalvert))
> * [#451](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/451) Adds regex support for CSS class assertions ([@&#8203;timiyay](https://github.com/timiyay))
>
> #### 🏠 Internal
> * [#407](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/407) Update ESLint-Typescript tooling ([@&#8203;Turbo87](https://github.com/Turbo87))
>
> #### Committers: 4
> - Stephen Yeung ([@&#8203;step2yeung](https://github.com/step2yeung))
> - Steve Calvert ([@&#8203;scalvert](https://github.com/scalvert))
> - Tobias Bieniek ([@&#8203;Turbo87](https://github.com/Turbo87))
> - [@&#8203;timiyay](https://github.com/timiyay)
</details>
<details>
<summary>Changelog</summary>

*Sourced from [qunit-dom's changelog](https://github.com/simplabs/qunit-dom/blob/master/CHANGELOG.md).*

> ## v0.9.2 (2019-11-12)
>
> #### 🚀 Enhancement
> * [#535](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/535) isChecked: Add support for `aria-checked="true/false"` ([@&#8203;Turbo87](https://github.com/Turbo87))
>
> #### 📝 Documentation
> * [#530](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/530) Update Changelog ([@&#8203;tniezurawski](https://github.com/tniezurawski))
>
> #### Committers: 2
> - Tobias Bieniek ([@&#8203;Turbo87](https://github.com/Turbo87))
> - Tomasz Nieżurawski ([@&#8203;tniezurawski](https://github.com/tniezurawski))
>
>
> ## v0.9.1 (2019-10-28)
>
> #### 🚀 Enhancement
> * [#499](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/499) Add `hasNoText()` assertion ([@&#8203;step2yeung](https://github.com/step2yeung))
> * [#501](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/501) Add `doesNotHaveTagName()` assertion ([@&#8203;scalvert](https://github.com/scalvert))
> * [#496](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/496) Add `hasTagName()` assertion ([@&#8203;scalvert](https://github.com/scalvert))
> * [#451](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/451) Add regex support for CSS class assertions ([@&#8203;timiyay](https://github.com/timiyay))
>
> #### 🏠 Internal
> * [#498](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/498) Fix tests to correctly ignore dist output ([@&#8203;scalvert](https://github.com/scalvert))
> * [#407](https://github-redirect.dependabot.com/simplabs/qunit-dom/pull/407) Update ESLint-Typescript tooling ([@&#8203;Turbo87](https://github.com/Turbo87))
>
> #### Committers: 4
> - Stephen Yeung ([@&#8203;step2yeung](https://github.com/step2yeung))
> - Steve Calvert ([@&#8203;scalvert](https://github.com/scalvert))
> - Tobias Bieniek ([@&#8203;Turbo87](https://github.com/Turbo87))
> - [@&#8203;timiyay](https://github.com/timiyay)
</details>
<details>
<summary>Commits</summary>

- [`eb42c68`](mainmatter/qunit-dom@eb42c68) v0.9.2
- [`57c73b5`](mainmatter/qunit-dom@57c73b5) Merge pull request [#535](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/535) from Turbo87/aria-checked
- [`dc1619e`](mainmatter/qunit-dom@dc1619e) build(deps-dev): bump rollup from 1.26.4 to 1.26.5 ([#536](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/536))
- [`308a688`](mainmatter/qunit-dom@308a688) build(deps-dev): bump lerna-changelog from 0.8.2 to 0.8.3 ([#537](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/537))
- [`aec772a`](mainmatter/qunit-dom@aec772a) isChecked: Add support for `aria-checked="true/false"`
- [`016ee2d`](mainmatter/qunit-dom@016ee2d) build(deps-dev): bump rollup-plugin-typescript2 from 0.24.3 to 0.25.2 ([#527](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/527))
- [`5613807`](mainmatter/qunit-dom@5613807) build(deps-dev): bump prettier from 1.18.2 to 1.19.1 ([#533](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/533))
- [`5548ba0`](mainmatter/qunit-dom@5548ba0) build(deps-dev): bump rollup from 1.26.3 to 1.26.4 ([#534](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/534))
- [`2cdac6c`](mainmatter/qunit-dom@2cdac6c) Update Changelog ([#530](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/530))
- [`8959924`](mainmatter/qunit-dom@8959924) build(deps-dev): bump @types/jest from 24.0.21 to 24.0.22 ([#529](https://github-redirect.dependabot.com/simplabs/qunit-dom/issues/529))
- Additional commits viewable in [compare view](mainmatter/qunit-dom@v0.9.0...v0.9.2)
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=qunit-dom&package-manager=npm_and_yarn&previous-version=0.9.0&new-version=0.9.2)](https://dependabot.com/compatibility-score.html?dependency-name=qunit-dom&package-manager=npm_and_yarn&previous-version=0.9.0&new-version=0.9.2)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
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.

3 participants