-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
build: Initial spell check setup #4836
Conversation
If you're a MSFT employee, click this link |
Automation for azure-sdk-for-pythonUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-nodeUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-rubyUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-jsUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-goUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-javaUnable to detect any generation context from this PR. |
e84314a
to
1c69e67
Compare
Can one of the admins verify this patch? |
9960515
to
56b5c38
Compare
@nschonni Thanks for setting up this! Can you also provide an example of suppression? |
"java", | ||
"csharp" | ||
], | ||
"overrides": [ |
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.
@jianghaolu these would be examples of suppression. I tried the nested config files, but these seemed to work better.
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.
So I assume there isn't a way to do it in individual spec folders. Let me bring this to the team.
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.
It takes a glob/regex, so you could relace it with somefolder/**
to apply the overrides to a folder
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.
These examples I did at the file level with the assumption that these typos are breaking changes to fix in the current version, but you'd want it flagged in the next version so it would be fixed there
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.
Oh I was actually asking if we can move this section to a separate cSpell.partial.json
in somefolder/
. As this list grows it may be easier to organize that way.
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.
Ah, I believe that you can just have nested cSpell.json files, but I can't remember if I actually ran into an issue with that or that I thought it might be more confusion having other non-swagger json files mixed in
56b5c38
to
39e1aa4
Compare
Rebased for a few of the PRs that landed, and added an exception for #4837 |
5cc94ea
to
566fcc1
Compare
76f668f
to
ab67f90
Compare
638be4d
to
2034bad
Compare
2034bad
to
70e250b
Compare
9dd87eb
to
5249c15
Compare
5249c15
to
74d96b6
Compare
@sergey-shandar and @veronicagg thoughts here? |
74d96b6
to
c4e4a9b
Compare
.travis.yml
Outdated
@@ -14,13 +14,15 @@ env: | |||
# - MODE=model PR_ONLY=false | |||
- MODE=BreakingChange PR_ONLY=true CHECK_NAME="Breaking Changes" | |||
- MODE=lintdiff PR_ONLY=true CHECK_NAME="Linter Diff" NODE_OPTIONS=--max-old-space-size=8192 | |||
- MODE=spellcheck CHECK_NAME="Spell Checking" |
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 are switching to Azure Dev Ops so we don't extend travis-ci
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.
So, undo this change, and add the step to the azure-pipelines.yml instead?
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.
I switched it over to the pipelines setup, but it won't preview (AFAIK this is a default security thing)
c210a03
to
2f44f54
Compare
@@ -127,3 +127,18 @@ jobs: | |||
- script: echo $(NODE_OPTIONS) | |||
- script: "scripts/swagger-to-sdk.sh Azure/$(AZURE_SDK_REPO) -v $(AZURE_SDK_PARAMS)" | |||
displayName: "Swagger to SDK script" | |||
|
|||
- job: "Spellcheck" | |||
condition: "not(variables['PRIVATE'])" |
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.
I copied this from the Avocado task, but maybe it should be run on your internal side too
2f44f54
to
8d1269c
Compare
16fcadd
to
9b7f92a
Compare
@sergey-shandar @veronicagg I ended up suppressing all the existing issues that have PRs submitted or have open issues, so it should be "clean" to land |
9b7f92a
to
6fd77fb
Compare
6fd77fb
to
6c4ff2d
Compare
@nschonni we are in the process to switch to Azure DevOps. The first target is to move existing jobs. Only after that we will start accept PRs Azure DevOps pipeline. |
@nschonni you may want to try preproduction pipeline. |
Initial setup for #4793. There is still some pending typo PRs that should remove some of the failures. Not sure I caught all the dictionary exclusions yet.
When this is actually consistently clean, it could be removed from the allowed_failures section