-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(linting): concurrent linting #6969
feat(linting): concurrent linting #6969
Conversation
Current Playwright Test Results Summary✅ 136 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 08/30/2023 11:11:48pm UTC)
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Log plot tests Log Plot ticks are functionally correct in regular and log mode and after refresh
Retry 1 • Initial Attempt |
3.13% (2)2 / 64 runsfailed over last 7 days |
31.25% (20)20 / 64 runsflaked over last 7 days |
📄 functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1 • Initial Attempt |
0% (0)0 / 60 runsfailed over last 7 days |
46.67% (28)28 / 60 runsflaked over last 7 days |
Codecov Report
@@ Coverage Diff @@
## master #6969 +/- ##
==========================================
+ Coverage 48.23% 48.27% +0.03%
==========================================
Files 643 643
Lines 25730 25721 -9
Branches 2512 2512
==========================================
+ Hits 12412 12417 +5
+ Misses 12840 12824 -16
- Partials 478 480 +2
*This pull request uses carry forward flags. Click here to find out more. see 10 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evenstensberg this is great! Since we're overriding one of the protected terms 'lint', We will need to check github actions and circleci for cli flags
run-p lint:* --quiet
Fails. Will need to be npm run lint -- --quiet
I can make Opened a issue here: streetsidesoftware/cspell#4742 For now customized the two scripts to run a ci version of the linting. |
package.json
Outdated
"lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore", | ||
"lint:fix": "eslint example src e2e --ext .js,.vue openmct.js --fix", | ||
"lint": "run-p lint:*", | ||
"ci": "run-p \"lint:src -- --quiet\" \"lint:spelling -- --fail-fast --no-progress\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure the name is correct. Can change to ci:lint
for instance @unlikelyzero
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is getting pretty complex. The reason we added --quiet
was so that the official github reporter output wouldn't explode on in-line output on PRs. Maybe that's no longer necessary.
Let's try:
- remove the
--quiet
flag with this the previous implementation on github workflows - Update a linter with a true positive failure
- run
pr:platform
and verify that PRs aren't poluted with 12 versions of the same failed linter rule inline on the code
db1e92c
to
b35abb7
Compare
@unlikelyzero without quiet flag. This is what we don't want, right? |
Could do this: eslint/eslint#13898 (comment) |
@evenstensberg ok i found the original card: #4909. Here's an example of what it looks like when the github in-line reporter goes nuts. The following example is the Effectively we turned on quiet mode to prevent the github inline reporter from creating 10+ testfailures in the |
@unlikelyzero I'll investigate if we can suppress through github workflow (probably due next week) |
@unlikelyzero I've spoken with the maintainers of cspell and they are discussing adding |
PR is merged (streetsidesoftware/cspell#4748) and new release on Monday 28th of August. Will update the dependency when new version is rolled out. |
@unlikelyzero It seems like passing a boolean to the --quiet flag doesnt get recognized, nor is passing quiet as a param in the cli. so we'll need to add another script to run in CI. Is that ok? The PR is ready to be reviewed. |
@evenstensberg I am on PTO today. Can you see if it's possible to silence GitHub annotation reporter for the results and we can remove the quiet flags altogether? |
@unlikelyzero For reference, I managed to make it work. The script Enjoy your day, and lmk if you need something 👍🏾 |
package.json
Outdated
"lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore", | ||
"lint:fix": "eslint example src e2e --ext .js,.vue openmct.js --fix", | ||
"lint": "run-p \"lint:* -- {1}\" --", | ||
"fix:lint": "eslint example src e2e --ext .js,.vue openmct.js --fix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evenstensberg after some internal discussion, we think fix:lint
should be reverted to lint:fix
We will then need to explicitly list the scripts in lint
as
"lint":"run-p lint:js lint:vue lint:spelling"
Lastly, it appears that npm-run-all
is no longer maintained and we will want to switch to npm-run-all2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We completed the final review. A few changes, but otherwise this is great and opens the door for more linting options
@unlikelyzero review change done. Personally I think that the |
@unlikelyzero also sent a mail to arc-dl. Would be nice if you had a look and replied. |
Hi @evenstensberg , We've received your message and will be responding today, please stand by. Appreciate your patience! |
package.json
Outdated
@@ -54,6 +54,7 @@ | |||
"moment": "2.29.4", | |||
"moment-duration-format": "2.3.2", | |||
"moment-timezone": "0.5.41", | |||
"npm-run-all2": "^6.0.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pin this to latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Just one change (pin npm-run-all2
to the latest) and then we merge this in
Closes #6968
Describe your changes:
Adds concurrent linting. Note that some commands have been switched.
npm run lint
is nowlint:src
npm run lint:fix
is nowlint:fix
so that eslint doesnt run twice on concurrent commandlint:*
npm run lint:all
is nownpm run lint
so that the run -p doesnt run recursively on itself.Nice to know
All Submissions:
Author Checklist
Reviewer Checklist