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

Fix misspellings in code files #1420

Merged

Conversation

aleksdmladenovic
Copy link
Contributor

@aleksdmladenovic aleksdmladenovic commented Oct 18, 2024

Description

Currently, we are doing an strict misspelling check on document files but not on code files. According to intensive misspelling check on all code files, catched 92 occurrences in 27 files and fixed.

Fixes #1419

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

@aleksdmladenovic
Copy link
Contributor Author

Hope you to check this.

cc: @allada, @MarcusSorealheis, @aaronmondal

Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

Thanks!

Generally lgtm, although I'd probably prefer the previous spellings of Cachable,Uncachable and Unreachable as they're more concise and still valid spellings: https://en.wiktionary.org/wiki/cachable, https://en.wiktionary.org/wiki/unreachable

:lgtm:

Reviewed 29 of 29 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained, and all files reviewed, and pending CI: Remote / large-ubuntu-22.04, and 1 discussions need to be resolved


nativelink-worker/tests/utils/mock_running_actions_manager.rs line 106 at r1 (raw file):

            RunningActionManagerCalls::CacheActionResult(req) => *req,
            RunningActionManagerCalls::CreateAndAddAction(_) => {
                panic!("Got incorrect call waiting for cache_action_result")

nit: is this necessary?

Copy link
Contributor Author

@aleksdmladenovic aleksdmladenovic left a comment

Choose a reason for hiding this comment

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

Well, it seemed like that word usage percentage of cacheable is bigger than cachable.
But it depends on our specific purposes.

So do you want to just go with cachable as before? cc: @aaronmondal

Reviewable status: 1 of 2 LGTMs obtained, and all files reviewed, and pending CI: Remote / large-ubuntu-22.04, and 1 discussions need to be resolved


nativelink-worker/tests/utils/mock_running_actions_manager.rs line 106 at r1 (raw file):

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

nit: is this necessary?

It was from the running result of

`bazel run \

  --@rules_rust//:rustfmt.toml=//:.rustfmt.toml \

  @rules_rust//:rustfmt`

command on my side.

Copy link
Contributor Author

@aleksdmladenovic aleksdmladenovic left a comment

Choose a reason for hiding this comment

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

Addressed your changes. @aaronmondal
Hope you to check thsi and merge PR.
Thank you!

cc: @MarcusSorealheis, @allada

Reviewable status: 1 of 2 LGTMs obtained, and 15 of 29 files reviewed, and pending CI: Analyze (python), Bazel Dev / macos-13, Bazel Dev / macos-14, Bazel Dev / ubuntu-24.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Coverage, Installation / macos-13, Installation / macos-14, Installation / ubuntu-22.04, Local / ubuntu-22.04, NativeLink.com Cloud / Remote Cache / macos-14, NativeLink.com Cloud / Remote Cache / ubuntu-24.04, Publish image, Publish nativelink-worker-init, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04, Web Platform Deployment / macos-14, Web Platform Deployment / ubuntu-24.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (22.04), integration-tests (22.04), macos-13, pre-commit-checks, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, windows-2022 / stable, and 1 discussions need to be resolved

Copy link
Contributor

@SchahinRohani SchahinRohani left a comment

Choose a reason for hiding this comment

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

You can rebase the PR, then the workflows shouldn't break.

Reviewable status: 1 of 2 LGTMs obtained, and 15 of 29 files reviewed, and pending CI: Remote / large-ubuntu-22.04, and 1 discussions need to be resolved

Currently, we are doing an strict misspelling check on document files
but not on code files. Fixed all misspellings according to the intensive
misspelling check on all code files.
Copy link
Contributor Author

@aleksdmladenovic aleksdmladenovic left a comment

Choose a reason for hiding this comment

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

Rebased PR. cc: @SchahinRohani, @MarcusSorealheis

Reviewable status: 1 of 2 LGTMs obtained, and 13 of 29 files reviewed, and pending CI: Analyze (javascript-typescript), Analyze (python), Bazel Dev / macos-13, Bazel Dev / macos-14, Bazel Dev / ubuntu-24.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Coverage, Installation / macos-13, Installation / macos-14, Installation / ubuntu-22.04, Local / ubuntu-22.04, NativeLink.com Cloud / Remote Cache / macos-14, NativeLink.com Cloud / Remote Cache / ubuntu-24.04, Publish image, Publish nativelink-worker-init, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04, Web Platform Deployment / macos-14, Web Platform Deployment / ubuntu-24.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (22.04), integration-tests (22.04), macos-13, pre-commit-checks, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, windows-2022 / stable, and 1 discussions need to be resolved

Copy link
Contributor

@SchahinRohani SchahinRohani left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 5 files at r3.
Reviewable status: 1 of 2 LGTMs obtained, and 14 of 29 files reviewed, and 1 discussions need to be resolved

Copy link
Contributor

@SchahinRohani SchahinRohani left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 2 of 2 LGTMs obtained, and 14 of 29 files reviewed, and 1 discussions need to be resolved

Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 14 files at r2, 5 of 5 files at r3, all commit messages.
Reviewable status: 2 of 2 LGTMs obtained, and 19 of 29 files reviewed, and 1 discussions need to be resolved

Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 10 of 14 files at r2.
Reviewable status: :shipit: complete! 2 of 2 LGTMs obtained, and all files reviewed

@aaronmondal aaronmondal merged commit 6899467 into TraceMachina:main Oct 25, 2024
35 checks passed
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.

Misspellings in code files need to be fixed
3 participants