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

Update README for More Clarity #803

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

nfarah86
Copy link
Contributor

@nfarah86 nfarah86 commented Mar 27, 2024

Description

added mac os warning

Fixes #729

Type of change

Please delete options that aren't relevant.

  • This change requires a documentation update

Checklist

  • Updated documentation if needed
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

@nfarah86 nfarah86 force-pushed the DOCS-update-readme branch from 0582f4a to db313e1 Compare March 27, 2024 23:16
@nfarah86 nfarah86 changed the title made a quick update to readme Add MACOS warning to readme Mar 27, 2024
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.

@nfarah86 Since this is doing more than just adding the warning section, could you split this into two PRs?

FYI the stylechecker warnings are visualized in the regular GitHub review view here: https://github.com/TraceMachina/nativelink/pull/803/files

The config for that checker is here: https://github.com/TraceMachina/nativelink/blob/main/.vale.ini

To run the checks manually:

  • Set up nix and flakes (for instance with this installer: https://github.com/NixOS/experimental-nix-installer)
  • Run nix develop in the repository.
  • (Alternatively, install direnv with e.g. nix profile install nixpkgs#direnv and hook it into your shell like https://direnv.net/docs/hook.html. This way the flake automatically activates when you cd into the repository).
  • Run pre-commit run -a. If you're in the nix flake this will also run automatically every time you create a commit and will stop the commit if it doesn't pass the pre-commit CI locally.

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), macos-13, pre-commit-checks, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, windows-2022 / stable, zig-cc ubuntu-20.04, zig-cc ubuntu-22.04

@nfarah86 nfarah86 force-pushed the DOCS-update-readme branch from db313e1 to 2447f20 Compare March 27, 2024 23:50
Copy link
Contributor Author

@nfarah86 nfarah86 left a comment

Choose a reason for hiding this comment

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

Hey @aaronmondal is it ok to change the commit messages to reflect the macos warning and that I updated the readme for more clarity? I setup nix and ran pre commit hooks.

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Local / ubuntu-22.04, Publish image, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), macos-13, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, windows-2022 / stable, zig-cc ubuntu-20.04, zig-cc ubuntu-22.04

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.

Sure. Changes to the commit title and message are part of the review in reviewable.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: 0 of 1 LGTMs obtained, and 2 discussions need to be resolved


-- commits line 2 at r2:
If you edit this message while doing a git commit --amend it'll show up here as a change.


README.md line 78 at r2 (raw file):

and `worker`.

<!-- vale off -->

Let's not turn of vale unless it's absolutely necessary.

If it raises a false positive because it doesn't know a valid word you can add it to the vocabulary here: https://github.com/TraceMachina/nativelink/blob/main/.github/styles/config/vocabularies/TraceMachina/accept.txt

@nfarah86 nfarah86 force-pushed the DOCS-update-readme branch 3 times, most recently from 615641b to 9f2ec27 Compare March 28, 2024 02:09
Copy link
Contributor Author

@nfarah86 nfarah86 left a comment

Choose a reason for hiding this comment

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

Updated - how does it look now?

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Vercel, pre-commit-checks, and 2 discussions need to be resolved

@nfarah86 nfarah86 changed the title Add MACOS warning to readme update readme for macos warning and more clarity Mar 28, 2024
@nfarah86 nfarah86 force-pushed the DOCS-update-readme branch from 9f2ec27 to 46a7286 Compare March 28, 2024 13:35
Copy link
Contributor

@blakehatch blakehatch 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 2 files at r3, 1 of 1 files at r5, all commit messages.
Reviewable status: 1 of 1 LGTMs obtained, and 2 discussions need to be resolved


-- commits line 2 at r2:

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

If you edit this message while doing a git commit --amend it'll show up here as a change.

Or git commit --amend -m "..." so you don't have to exit vim 😂

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.

Reviewed all commit messages.
Reviewable status: 1 of 1 LGTMs obtained, and 2 discussions need to be resolved


-- commits line 2 at r2:

Previously, blakehatch (Blake Hatch) wrote…

Or git commit --amend -m "..." so you don't have to exit vim 😂

With -m you'd lose the original message. I.e. the diff between messages wouldn't really be a diff but something else every time you have some larger commit. Also, neovim automatically color-codes too long commit titles and auto-linebreaks the commit message body 🤓

@nfarah86 The format we use for commits is

  1. Capitalized title
  2. No trailing period
  3. Short and concise, but precise title, if possible shorter than 72 characters
  4. Details in the body (also limited to 72 characters except for links) if necessary.
  5. Imperative tone
  6. If the message contains and, it's probably something that should be split into two commits

You can see examples when you run git log in a terminal.

The relevant part here is that a git log invocation should be readable on a terminal. Most editors auto-linebreak so in those cases you wouldn't notice issues with extremely long lines, but when you use a terminal on a server it gives much better user experience. The guidelines are fairly "default", but AFAIK we don't have it documented anywhere (which we should probably change).

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.

Reviewable status: 1 of 1 LGTMs obtained, and 2 discussions need to be resolved


README.md line 78 at r2 (raw file):

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

Let's not turn of vale unless it's absolutely necessary.

If it raises a false positive because it doesn't know a valid word you can add it to the vocabulary here: https://github.com/TraceMachina/nativelink/blob/main/.github/styles/config/vocabularies/TraceMachina/accept.txt

fyi @nfarah86 you can Type Done in this message to resolve it or click on the Resolve button to unblock this comment.

@nfarah86 nfarah86 changed the title update readme for macos warning and more clarity Update README for More Clarity Mar 28, 2024
@nfarah86 nfarah86 force-pushed the DOCS-update-readme branch from 46a7286 to 2803351 Compare March 28, 2024 16:57
Copy link
Contributor Author

@nfarah86 nfarah86 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 1 LGTMs obtained, and pending CI: Analyze (javascript-typescript), Analyze (python), Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Local / ubuntu-22.04, Publish image, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), macos-13, pre-commit-checks, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, vale, windows-2022 / stable, zig-cc ubuntu-20.04, zig-cc ubuntu-22.04, and 2 discussions need to be resolved


-- commits line 2 at r2:

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

With -m you'd lose the original message. I.e. the diff between messages wouldn't really be a diff but something else every time you have some larger commit. Also, neovim automatically color-codes too long commit titles and auto-linebreaks the commit message body 🤓

@nfarah86 The format we use for commits is

  1. Capitalized title
  2. No trailing period
  3. Short and concise, but precise title, if possible shorter than 72 characters
  4. Details in the body (also limited to 72 characters except for links) if necessary.
  5. Imperative tone
  6. If the message contains and, it's probably something that should be split into two commits

You can see examples when you run git log in a terminal.

The relevant part here is that a git log invocation should be readable on a terminal. Most editors auto-linebreak so in those cases you wouldn't notice issues with extremely long lines, but when you use a terminal on a server it gives much better user experience. The guidelines are fairly "default", but AFAIK we don't have it documented anywhere (which we should probably change).

Done.


README.md line 78 at r2 (raw file):

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

fyi @nfarah86 you can Type Done in this message to resolve it or click on the Resolve button to unblock this comment.

Done.

@nfarah86
Copy link
Contributor Author

Reviewable status: 1 of 1 LGTMs obtained, and 2 discussions need to be resolved

README.md line 78 at r2 (raw file):

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…
fyi @nfarah86 you can Type Done in this message to resolve it or click on the Resolve button to unblock this comment.

The resolve button is not showing up for me :(

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 all commit messages.
Reviewable status: :shipit: complete! 2 of 1 LGTMs obtained

@aaronmondal aaronmondal merged commit 31a1bf1 into TraceMachina:main Mar 28, 2024
26 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.

Quickstart has an empty directory with no files, throwing a not found error
3 participants