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

HDDS-10667. Improvements to spelling checks. #89

Merged
merged 16 commits into from
Apr 16, 2024

Conversation

errose28
Copy link
Contributor

@errose28 errose28 commented Apr 8, 2024

What changes were proposed in this pull request?

  • Add some terms that were missed in the initial commit of spelling capitalization checking configuration files.
  • Add a link to docs on fixing false positive spelling errors in the job failure output
    • The output on the main workflow summary page is not easy to find.

What is the link to the Apache Jira?

HDDS-10667

How was this patch tested?

  • Failing run
    • Note that all variants of "mis-replicate" are now allowed, but "mis" on its own is not, which correctly fails the run.
    • New output is more spread out and links to the contributing guide for resolving spelling issues.
  • Passing run with spelling error fixed
    • This verifies the changes to the handling of the http acronym in the Apache license headers.

@errose28 errose28 requested review from sodonnel and adoroszlai April 8, 2024 23:09
@github-actions github-actions bot added the website-v2 Tasks for the new ozone website targeting the HDDS-9225-website-v2 branch label Apr 8, 2024
Comment on lines +54 to +56
- mis-replicate
- mis-replication
- mis-replicated
Copy link
Contributor

Choose a reason for hiding this comment

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

I think misreplication is one word, similar to other words with mis- prefix.

CC @sodonnel

Copy link

Choose a reason for hiding this comment

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

Seems like it should be, although I think we have used mis-replicated in some headings in the source code. Eg the RM report has Mis-Replicated containers. I think we may have carried the spelling over from HDFS which I think spells it the same way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually saw the same wikipedia page when I was looking this up. The point of these configs is to make sure we use consistent spelling and capitalization of terms throughout the docs, so this is where we can decide whether we want to use misreplication or mis-replication across the whole site. cspell also doesn't recognize misreplication so we can choose one to add and the other will be flagged as incorrect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As for which one to use, I'm not sure I have a preference. Misreplication looks more correct, although it would be used with overreplication and underreplication which look a little strange. As Stephen said, I'm pretty sure code and CLI output uses mis-replication, over-replication, and under-replication, so maybe it would be easiest just to keep using those?

Choose a reason for hiding this comment

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

Saying as the code has mis-replication, I am happy to go with that. Otherwise we are going to have to make code changes just to facilitate the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok let's keep "mis-replication". "overreplication" and "underreplication" will already be flagged. CSpell doesn't support matching on spaces so we can't forbid "over replication" in favor of "over-replication" with cspell, although I could just add a grep at the end of the spelling.sh file that does this.

@errose28
Copy link
Contributor Author

@adoroszlai @sodonnel are you ok with the spellings proposed in this PR, or do we need to discuss more? Currently the following are considered "correct":

  • over-replicat{ed,ion}
  • under-replicat{ed,ion}
  • mis-replicat{ed,ion}
  • quasi-close{d}

Copy link

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

I am good with the hyphen separated words as we have them in the code already.

@adoroszlai
Copy link
Contributor

are you ok with the spellings proposed in this PR?

I guess I can live with them. :)

@errose28
Copy link
Contributor Author

Thanks for the reviews. If we need to revisit the plain-text versions of some of our Ozone terms in the future we can always use some combination of cspell and grep to fix and enforce changes in the future.

@errose28 errose28 merged commit eebd323 into apache:HDDS-9225-website-v2 Apr 16, 2024
13 checks passed
errose28 added a commit to errose28/ozone-site that referenced this pull request May 10, 2024
* HDDS-9225-website-v2:
  HDDS-10667. Improvements to spelling checks. (apache#89)
  HDDS-10698. Bump skywalking-eyes to v0.6.0 (apache#90)
  HDDS-10449. Add quick start to the top of contributing guide. (apache#83)
errose28 added a commit to errose28/ozone-site that referenced this pull request May 30, 2024
* HDDS-9225-website-v2:
  Bump docusaurus to 3.3.2 (apache#93)
  HDDS-10667. Improvements to spelling checks. (apache#89)
  HDDS-10698. Bump skywalking-eyes to v0.6.0 (apache#90)
  HDDS-10449. Add quick start to the top of contributing guide. (apache#83)
  HDDS-10351. Add GitHub Actions check for yaml formatting (apache#87)
  HDDS-9567. Add GitHub Actions license header check for relevant files. (apache#86)
  HDDS-10506. Reduce directory iterations in sidebar check (apache#85)
  HDDS-9866. Add GitHub Actions checks for consistent Docusaurus formatting. (apache#84)
  HDDS-10254. Add GitHub Actions check for Markdown style. (apache#81)
  HDDS-10349. Add GitHub Actions check for consistent file name formatting. (apache#79)
  HDDS-10426. Crop ozone-logo.svg to a proper size (apache#80)
  HDDS-10353. Add GitHub Actions check of all generated URLs in the sitemap. (apache#77)
  HDDS-9868. Add GitHub Actions check for spelling. (apache#76)
  HDDS-10400. Fix event condition in website publish workflow (apache#78)
  HDDS-10352. Add GitHub Actions workflow to build and run the website. (apache#74)
  HDDS-10222. Add pnpm guide to contributing guide. (apache#64)
  HDDS-10313. Update "Redundant" to "Reliable" in new website. (apache#73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website-v2 Tasks for the new ozone website targeting the HDDS-9225-website-v2 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants