Skip to content

fix: spelling errors and add spellcheck CI workflow#395

Open
hharshhsaini wants to merge 1 commit intokubeedge:mainfrom
hharshhsaini:fix/spelling-check-ci-232
Open

fix: spelling errors and add spellcheck CI workflow#395
hharshhsaini wants to merge 1 commit intokubeedge:mainfrom
hharshhsaini:fix/spelling-check-ci-232

Conversation

@hharshhsaini
Copy link
Copy Markdown

@hharshhsaini hharshhsaini commented Apr 12, 2026

What type of PR is this?

/kind cleanup
/kind documentation
/kind feature

What this PR does / why we need it:

This PR addresses two parts of issue #232:

Part 1: Fix existing spelling errors in documentation and code comments

Typo Fix File(s)
contributrbute contribute docs/guides/how-to-contribute-algorithms.md
enviroment environment docs/guides/how-to-build-simulation-env.md, docs/proposals/simulation/simulation.md
moudles modules docs/guides/how-to-build-simulation-env.md, docs/proposals/simulation/simulation.md
funcitons functions docs/guides/how-to-build-simulation-env.md, docs/proposals/simulation/simulation.md
framwork framework docs/proposals/simulation/simulation.md
simualtion simulation docs/proposals/simulation/simulation.md
Congratulation Congratulations docs/guides/how-to-build-simulation-env.md
LadeSepcDec LadeSpecDec examples/cloud-edge-collaborative-inference-for-llm/testalgorithms/query-routing/test_queryrouting.yaml

Part 2: Add CI spellcheck workflow for .md files

  • .spellcheck.yml - pyspelling config using aspell (en_US) with markdown filter
  • .wordlist.txt - custom dictionary for project-specific technical terms (e.g., Ianvs, KubeEdge, vLLM, TTFT)
  • .github/workflows/spellcheck.yml - GitHub Actions workflow that:
    • Triggers only on .md file changes (push to main / PR)
    • Runs as non-blocking (continue-on-error: true) - gives advisory suggestions before merging, not as a merge barrier
    • Uses pyspelling with aspell for spell checking

This addresses all the review feedback from the previous PR #240:

  1. Correct pyspelling YAML structure (fixes invalid config)
  2. No unnecessary code filter (pyspelling ignores code blocks by default)
  3. Non-blocking workflow (suggestion only, not a CI gate)
  4. Custom wordlist to reduce false positives on technical terms

Which issue(s) this PR fixes:

Fixes #232

Fix various spelling errors in documentation and code comments:
- contributrbute -> contribute (how-to-contribute-algorithms.md)
- enviroment -> environment (how-to-build-simulation-env.md, simulation.md)
- moudles -> modules (how-to-build-simulation-env.md, simulation.md)
- funcitons -> functions (how-to-build-simulation-env.md, simulation.md)
- framwork -> framework (simulation.md)
- simualtion -> simulation (simulation.md)
- Congratulation -> Congratulations (how-to-build-simulation-env.md)
- LadeSepcDec -> LadeSpecDec (test_queryrouting.yaml)

Add CI spellcheck workflow for .md files:
- Add .spellcheck.yml with pyspelling + aspell (en_US)
- Add .wordlist.txt for project-specific technical terms
- Add .github/workflows/spellcheck.yml:
  - Triggers only on .md file changes (push/PR)
  - Non-blocking (continue-on-error: true) - advisory only
  - Uses pyspelling with markdown filter

Fixes kubeedge#232

Signed-off-by: hharshhsaini <sainiharsh3311@gmail.com>
@kubeedge-bot kubeedge-bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. kind/documentation Categorizes issue or PR as related to documentation. kind/feature Categorizes issue or PR as related to a new feature. labels Apr 12, 2026
@kubeedge-bot
Copy link
Copy Markdown
Collaborator

Welcome @hharshhsaini! It looks like this is your first PR to kubeedge/ianvs 🎉

@kubeedge-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hharshhsaini
To complete the pull request process, please assign moorezheng after the PR has been reviewed.
You can assign the PR to them by writing /assign @moorezheng in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 12, 2026
@kubeedge-bot
Copy link
Copy Markdown
Collaborator

Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages.

The list of commits with invalid commit messages:

  • 18444b9 fix: spelling errors and add spellcheck CI workflow
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request implements automated spellchecking by adding a .spellcheck.yml configuration and a .wordlist.txt dictionary, while also correcting various typos in the documentation. The review feedback highlights a syntax error in the YAML configuration, notes a missing CI workflow file, and provides several suggestions for grammatical improvements and subject-verb agreement in the updated documentation files.

pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- markdown.extensions.extra:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The trailing colon in markdown.extensions.extra: makes it a dictionary key with a null value in YAML. In the context of pyspelling and the markdown library, this should be a string literal representing the extension name. Also, please note that the .github/workflows/spellcheck.yml file mentioned in the PR description is missing from the provided changes, which will prevent the CI from actually running.

      - markdown.extensions.extra

3. build the simulation environment
4. create and deploy the modules needed in simulation environment
5. close and delete the simulation environment
- The `Simulation Job Administrator` is the core module for manage the simulation job, and provides the following functions:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "for manage" should be "for managing" to be grammatically correct.

Suggested change
- The `Simulation Job Administrator` is the core module for manage the simulation job, and provides the following functions:
- The Simulation Job Administrator is the core module for managing the simulation job, and provides the following functions:

See Pod status: kubectl -n sedna get pod
[I1029 01:16:56.974] Mini Sedna is created successfully
[2022-10-29 01:17:12,880] simulation_system_admin.py(170) [INFO] - Congratulation! The simulation enviroment build successful!
[2022-10-29 01:17:12,880] simulation_system_admin.py(170) [INFO] - Congratulations! The simulation environment build successful!
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "build successful" should be "build was successful" or "built successfully". Additionally, please note that the underlying log message in core/testcasecontroller/simulation_system_admin/simulation_system_admin.py (line 170) still contains the spelling errors Congratulation and enviroment. It is recommended to update the source code to match the corrected documentation.

Suggested change
[2022-10-29 01:17:12,880] simulation_system_admin.py(170) [INFO] - Congratulations! The simulation environment build successful!
[2022-10-29 01:17:12,880] simulation_system_admin.py(170) [INFO] - Congratulations! The simulation environment build was successful!

![img](images/simulation_framework.jpg)

In the framwork of ianvs, the `simulation controller` is the core module of system simulation. The `simulation controller` has been supplemented, which build and deploy local edge-cloud simulation environment with K8s.
In the framework of ianvs, the `simulation controller` is the core module of system simulation. The `simulation controller` has been supplemented, which build and deploy local edge-cloud simulation environment with K8s.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "which build and deploy" should be "which builds and deploys" to correctly agree with the singular subject "simulation controller".

Suggested change
In the framework of ianvs, the `simulation controller` is the core module of system simulation. The `simulation controller` has been supplemented, which build and deploy local edge-cloud simulation environment with K8s.
In the framework of ianvs, the simulation controller is the core module of system simulation. The simulation controller has been supplemented, which builds and deploys local edge-cloud simulation environment with K8s.

3. build the simulation environment
4. create and deploy the modules needed in simulation environment
5. close and delete the simulation environment
- The `Simulation Job Administrator` is the core module for manage the simulation job, and provides the following functions:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "for manage" should be "for managing".

Suggested change
- The `Simulation Job Administrator` is the core module for manage the simulation job, and provides the following functions:
- The Simulation Job Administrator is the core module for managing the simulation job, and provides the following functions:

- parse simulation config

4. `Simulation System Administrator` build the environment and create needed moudles.
4. `Simulation System Administrator` build the environment and create needed modules.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "build" and "create" should be "builds" and "creates" to match the singular subject.

Suggested change
4. `Simulation System Administrator` build the environment and create needed modules.
4. Simulation System Administrator builds the environment and creates needed modules.

- generate the YAML of simulation job base on `testenv.yaml` and `algorithm.yaml`
- deploy simulation job: access k8s API-server via `python-k8sclient` to deploy simulation jobs
6. `Simulation Job Administrator` list-watch the configmap of results: ianvs-simualtion-job-result
6. `Simulation Job Administrator` list-watch the configmap of results: ianvs-simulation-job-result
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "list-watch" should be "list-watches" for subject-verb agreement.

Suggested change
6. `Simulation Job Administrator` list-watch the configmap of results: ianvs-simulation-job-result
6. Simulation Job Administrator list-watches the configmap of results: ianvs-simulation-job-result

- list-watch the simulation jobs in K8s
- run the simulation jobs
8. `Simulation Job Controller` save results of simulation job to configmap: ianvs-simualtion-job-result
8. `Simulation Job Controller` save results of simulation job to configmap: ianvs-simulation-job-result
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Grammar improvement: "save" should be "saves" for subject-verb agreement.

Suggested change
8. `Simulation Job Controller` save results of simulation job to configmap: ianvs-simulation-job-result
8. Simulation Job Controller saves results of simulation job to configmap: ianvs-simulation-job-result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/documentation Categorizes issue or PR as related to documentation. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix various spelling errors and typos in the documentation and code comments

2 participants