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

Spelling: Remove deprecated --no-install, replace with --no #9013

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

danieljurek
Copy link
Member

Fixes #6315

@danieljurek danieljurek requested a review from a team as a code owner September 19, 2024 17:17
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

eng/common/spelling/Invoke-Cspell.ps1 Outdated Show resolved Hide resolved
@danieljurek
Copy link
Member Author

Chatted w/ @weshaggard, going to:

  1. Convert tests to pester tests
  2. Fix how git changes are enumerated to decouple from DevOps pipeline variables

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@danieljurek
Copy link
Member Author

I refactored a bunch to get the tests into Pester. I'm curious to see if they pass in our pipelines as a lot of the code is coupled to both pipelines and error outputs (which can change when running in pipelines).

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@@ -0,0 +1,41 @@
Describe 'Tool Version' {
BeforeAll {
Copy link
Member Author

Choose a reason for hiding this comment

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

@weshaggard -- This is done in lieu of adding a .vscode/cspell.json file to this repo's root.

Comment on lines +43 to +49
# This forces normal Write-Error behavior (as seen on desktop) for
# errors encountered during testing of
# check-spelling-in-changed-files.ps1. Setting this keeps errors out of
# the DevOps logs for successful tests. Any errors produced by these
# tests are expected or will result in test failures.
$OriginalTeamProjectId = $env:SYSTEM_TEAMPROJECTID
$env:SYSTEM_TEAMPROJECTID = $null
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed to prevent DevOps from showing a bunch of fake error messages produced by the testing.

Comment on lines +60 to +63
[string]$SourceCommittish = "${env:SYSTEM_PULLREQUEST_SOURCECOMMITID}",

[Parameter()]
[string]$TargetCommittish = ("origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}" -replace "refs/heads/")
Copy link
Member Author

Choose a reason for hiding this comment

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

These are needed to push values through to Get-ChangedFiles during testing. It also makes it possible to run the tool and tests locally again.

@danieljurek
Copy link
Member Author

@weshaggard -- Have a look. I made a few changes and added the tests into the tools - eng-common-tests - ci pipeline. They do take a little longer than other tests but do not require authentication.

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spell check should use --no in npx invocation
5 participants