Skip to content
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

Update all packages to the most recent version #8977

Merged
merged 1 commit into from
Oct 1, 2017

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Sep 29, 2017

To support this, the following changes have to be made as well:

  • Ignore package-lock.json since NPM creates it, but we should not have it in the repository.
  • Switch from babel-preset-es2015 to babel-preset-env to resolve the deprecation warning in the test logs. The latter is more recent and flexible, but should be the same functionality-wise.
  • transform now needs to have the utf-8 encoding option provided. If not given, it will call the callback with a Buffer object, which results in an unhandled promise rejection since what is returned from the callback is a string, not a Buffer.

Multiple test log warnings are resolved by this patch.

Fixes #8970

@timvandermeij
Copy link
Contributor Author

/botio test

@@ -152,7 +152,7 @@ function createWebpackConfig(defines, output) {
loader: 'babel-loader',
exclude: /src\/core\/(glyphlist|unicode)/, // babel is too slow
options: {
presets: pdfjsNext ? undefined : ['es2015'],
presets: pdfjsNext ? undefined : ['env'],
Copy link
Collaborator

@Snuffleupagus Snuffleupagus Sep 30, 2017

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in the new commit.

@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 30, 2017
To support this, the following changes have to be made as well:

- Ignore `package-lock.json` since NPM creates it, but we should not
  have it in the repository.
- Switch from `babel-preset-es2015` to `babel-preset-env` to resolve
  the deprecation warning in the test logs. The latter is more recent
  and flexible, but should be the same functionality-wise.
- `transform` now needs to have the `utf-8` encoding option provided.
  If not given, it will call the callback with a `Buffer` object,
  which results in an unhandled promise rejection since what is
  returned from the callback is a string, not a `Buffer`.
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/4339bc991ba5b35/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/4339bc991ba5b35/output.txt

Total script time: 2.45 mins

Published

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/865cbb83ac6b2dd/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7f901872e0b8013/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7f901872e0b8013/output.txt

Total script time: 16.79 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/865cbb83ac6b2dd/output.txt

Total script time: 22.85 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

This seems to work fine, when testing quickly locally.
r=me, with the following question answered:

Did you run a couple of different gulp commands (e.g. generic/firefox/mozcentral/...) locally with/without this patch, just to check that nothing obvious broke with the new package versions?

I'm assuming that you did, but just wanted to double check :-)

Feel free to land this, thank you!

@timvandermeij timvandermeij merged commit 9742e58 into mozilla:master Oct 1, 2017
@timvandermeij timvandermeij deleted the updates branch October 1, 2017 12:36
@timvandermeij
Copy link
Contributor Author

Thank you for the review! Yes, the different gulp commands produced the exact same output before and after the patch.

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Update all packages to the most recent version
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.

Consider updating to worker-loader 1.0
3 participants