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

Move validation of chromium/preferences_schema.json to its own gulp task #11602

Merged
merged 1 commit into from
Feb 16, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

With the way that the default_preferences.json file is now generated at build time, the gulp lint task is now noticeably slower than before. This slowdown has been, and still is, somewhat annoying during the deployment of new ESLint rules.

Hence this patch, which moves the chromium/preferences_schema.json validation from gulp lint and into a new gulp lint-chromium task instead. Obviously this new task is run as part of the gulp npm-test task, and thus through npm test on Node.js/Travis, such that it's still being tested as before.

@timvandermeij
Copy link
Contributor

/botio lint

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/b6fe7eed9167b9e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_lint from @timvandermeij received. Current queue size: 1

Live output at: http://54.215.176.217:8877/526eb52e5f5d53b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/b6fe7eed9167b9e/output.txt

Total script time: 1.11 mins

  • Lint: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/526eb52e5f5d53b/output.txt

Total script time: 2.48 mins

  • Lint: FAILED

@timvandermeij
Copy link
Contributor

Hm, it looks like "files checked, no errors found" is no longer printed and that's what https://github.com/mozilla/botio-files-pdfjs/blob/master/on_cmd_lint.js checks for. Either that can be fixed, or we can change the bot command to look at the exit code instead of string matching.

… task

With the way that the `default_preferences.json` file is now generated at build time, the `gulp lint` task is now noticeably slower than before. This slowdown has been, and still is, somewhat annoying during the deployment of new ESLint rules.

Hence this patch, which moves the `chromium/preferences_schema.json` validation from `gulp lint` and into a new `gulp lint-chromium` task instead. *Obviously* this new task is run as part of the `gulp npm-test` task, and thus through `npm test` on Node.js/Travis, such that it's still being tested as before.
@Snuffleupagus
Copy link
Collaborator Author

Hm, it looks like "files checked, no errors found" is no longer printed and that's what https://github.com/mozilla/botio-files-pdfjs/blob/master/on_cmd_lint.js checks for.

Sorry, I didn't think to look for that!
While I do think that that's a somewhat strange way for the bots to handle this, it seems easier to just reinstate the log line (also since all botio scripts seem to use that pattern).

@timvandermeij
Copy link
Contributor

/botio lint

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/c7fdd93cdabea8b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/2327d3a8571c1a9/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/2327d3a8571c1a9/output.txt

Total script time: 1.11 mins

  • Lint: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/c7fdd93cdabea8b/output.txt

Total script time: 2.53 mins

  • Lint: Passed

@timvandermeij timvandermeij merged commit 64351ca into mozilla:master Feb 16, 2020
@timvandermeij
Copy link
Contributor

Nice that we can run linting faster now. Thanks!

@Snuffleupagus Snuffleupagus deleted the gulp-lint-chromium branch February 16, 2020 12:45
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.

3 participants