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

[#6600] docs: Refactor the how-to-build docs #6659

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tengqm
Copy link
Contributor

@tengqm tengqm commented Mar 10, 2025

What changes were proposed in this pull request?

This PR refactors the how-to-build guide.

Why are the changes needed?

The current how-to guide has some duplicated contents. For example,

  • the process to build the packages is the same once WSL is installed on Windows;
  • the docker installation, although optional, is almost the same for all platforms;
  • the same version requirements are repeated many times;

Related: #6600

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

N/A

@tengqm
Copy link
Contributor Author

tengqm commented Mar 11, 2025

/assign @jerryshao

Copy link
Contributor Author

@tengqm tengqm left a comment

Choose a reason for hiding this comment

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

@justinmclean Thanks for the review.
Most suggestions accepted and issues are fixed accordingly.
There is one suggestion I don't agree with you, please help double check?

If you want to contribute to this open-source project, please fork the project on GitHub first. After forking, clone the forked project to your local environment, make your changes, and submit a pull request (PR).
:::note
Depending on how you deploy Gravitino, there may be contain known security vulnerabilities
in other software used in conjunction with Gravitino.
Copy link
Member

Choose a reason for hiding this comment

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

I missed this in my first review, and this shows why this is an issue. Breaking this sentence over two lines hides an error. Please keep the orignal text "Depending on how you deploy Gravitino, other software used in conjunction with Gravitino may contain known security vulnerabilities."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. If you hate breaking long lines, try figure out a way breaking this sentences to two.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think there is any need to do that either. BTW this was added as due to an ASF requirement.

:::note
The Gravitino libraries built are Java 8 compatible and verified under Java 8, 11, and 17.
You can run the Gravitino server using JRE 8, 11, or 17,
regardless which JDK version was used to build the project.
Copy link
Member

Choose a reason for hiding this comment

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

Again splitting this over two lines hides an issue. it should be "regardless of which"

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 can fix this.
But, again, this issue is not caused by line breaking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In other words, the error doesn't become more evident when we merge these two lines into a single line.
On the contrary, long lines make it hard for catching errors like this.

Copy link
Member

Choose a reason for hiding this comment

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

If the two lines are together in one sentence, and you use a grammar checker, you see the error right away as it is underlined in red. With the line break, you may not see the error as a grammar check will not see the error, so yes the added line breaks did contribute to this error being missed on my first review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is your grammar checker's problem. It requires a sentence to be written in a single line. If that is the case, forget the tool. Trust your eyes and your brain.

Copy link
Member

@justinmclean justinmclean Mar 12, 2025

Choose a reason for hiding this comment

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

We are all fallible. Mistakes happen, but tooling can easily catch many of these errors if you let it. You have introduced several of these issues in this and other PRs, but I assume you trusted your eyes and brain to avoid making those mistakes. Breaking up sentences increases the risk of errors like this being introduced, and manual reviews will not catch all of these issues.

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.

2 participants