Skip to content

Removes shelljs#8366

Merged
yurydelendik merged 2 commits intomozilla:masterfrom
yurydelendik:rm-shelljs
May 19, 2017
Merged

Removes shelljs#8366
yurydelendik merged 2 commits intomozilla:masterfrom
yurydelendik:rm-shelljs

Conversation

@yurydelendik
Copy link
Copy Markdown
Contributor

No description provided.

@yurydelendik
Copy link
Copy Markdown
Contributor Author

yurydelendik commented May 3, 2017

TODO:

  • test code in the test/webbrowser.js

@timvandermeij
Copy link
Copy Markdown
Contributor

timvandermeij commented May 5, 2017

Nice idea! Removing shelljs may help a bit with the web browser performance on the bots.

@timvandermeij
Copy link
Copy Markdown
Contributor

How are you planning to test this? I think we can just run the bots and see what it does, or are changes on the bots required for this as well?

if (errors) {
echo('Found ' + errors + ' expectation failures.');
console.error('Found ' + errors + ' expectation failures.');
process.exit(1);
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.

Shouldn't external/builder/test-fixtures.js have this as well, since they're quite similar? The same holds for the else branch here.

Comment thread test/webbrowser.js Outdated
};
cmdCheckAllKilled = {
file: 'wmic',
args: wmicPrefix.concat(['call', 'get CommandLine'])
Copy link
Copy Markdown
Contributor

@timvandermeij timvandermeij May 10, 2017

Choose a reason for hiding this comment

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

I think 'call' should be removed here, i.e., it should probably be wmicPrefix.concat(['get', 'CommandLine']) to match the other one.

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

Snuffleupagus commented May 18, 2017

test code in the test/webbrowser.js

I'm not sure what sort of testing you had in mind here, however:
I've tested this patch locally on Windows, using commands such as e.g. gulp {unittest, fonttest, browsertest}, and everything appear to work exactly the same as with the current master.

@yurydelendik
Copy link
Copy Markdown
Contributor Author

yurydelendik commented May 18, 2017

I'm not sure what sort of testing you had in mind here

Mostly aborting hanging browser process.

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

Snuffleupagus commented May 18, 2017

Mostly aborting hanging browser process.

I've just tested this (on Windows), by reverting a patch (on top of this PR) that fixed an infinite loop, and once the timeout[1] was reached the browser was closed/cleaned-up properly.
There were no problems running e.g. back-to-back gulp browsertest commands.[2]


[1]

var browserTimeout = 120;

[2] I'm assuming that issues with aborting a hanging browser process would have prevented a new test from being successfully triggered.

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

/botio test

@pdfjsbot
Copy link
Copy Markdown

@pdfjsbot
Copy link
Copy Markdown

@pdfjsbot
Copy link
Copy Markdown

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/6be0f807b1a4dde/output.txt

Total script time: 24.97 mins

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

@pdfjsbot
Copy link
Copy Markdown

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/682ac7c2e7244b9/output.txt

Total script time: 25.64 mins

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

Copy link
Copy Markdown
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.

You should be able to remove lines test/.eslintrc#L8 and external/.eslintrc#L8 too, since there shouldn't be any code left relying on ShellJS.
Edit: Apparently that causes linting failures in https://github.com/mozilla/pdf.js/tree/master/external/crlfchecker. However, that entire folder appears to be completely unused now, so let's just remove it :-)

This looks good to me, thanks for cleaning this up!

@yurydelendik Unless there's any more tests that you think we need to run here, please feel free to land this!

@yurydelendik yurydelendik merged commit 7b365b9 into mozilla:master May 19, 2017
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
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.

4 participants