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

[doc] add a doc page about ci testing workflow on a PR #45446

Merged
merged 2 commits into from
May 24, 2024
Merged

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented May 20, 2024

As title, add a doc page about the new ci testing workflow (microcheck, go, premerge, etc.). I'll follow up with another PR to add more images to the doc.

Test:

Screenshot 2024-05-20 at 11 02 29 AM

@can-anyscale can-anyscale requested a review from a team as a code owner May 20, 2024 18:04
@can-anyscale can-anyscale requested a review from jjyao May 20, 2024 18:05
@aslonnie aslonnie requested a review from angelinalg May 20, 2024 19:36
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label May 20, 2024
@can-anyscale
Copy link
Collaborator Author

can-anyscale commented May 20, 2024

let's hold off from adding the go label, very expensive for this small PR, in case reviewers ask for minor changes etc.

@can-anyscale can-anyscale removed the go add ONLY when ready to merge, run all tests label May 20, 2024
@@ -0,0 +1,50 @@
CI Testing Workflow on PRs
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure about if the words in the middle of the title needs to be start with upper case or not. I see different / inconsistent conventions in the sidebar.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, i'm sticking to the most common styling then

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you install Vale? Our style guide is to sentence case headings. Thanks! https://anyscale-ray--45446.com.readthedocs.build/en/45446/ray-contribute/docs.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will do thankks

doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
is how I manually add tests in my pull request::

// git command to add commit message
git commit -a -s
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe don't add -a? probably should not encourage / tell user to use -a here as if -a is required for the workflow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

what is your favorite workflow to add a git commit message? the -a is required to add a new commit message (there are similar alternatives like -m but they will need something)

@can-anyscale
Copy link
Collaborator Author

@aslonnie's comments

Copy link
Collaborator

@aslonnie aslonnie left a comment

Choose a reason for hiding this comment

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

please wait for doc reviews.

Copy link
Contributor

@angelinalg angelinalg left a comment

Choose a reason for hiding this comment

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

Just some style nits. Please consider installing the Vale extension to catch these earlier. (go/vale) Thanks!

@@ -0,0 +1,52 @@
CI Testing Workflow on PRs
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
CI Testing Workflow on PRs
CI testing workflow on PRs

==========================

This guide helps contributors to understand the Continuous Integration (CI)
workflow on a PR. Here CI stands for the automated testing of the codebase
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
workflow on a PR. Here CI stands for the automated testing of the codebase
workflow on a PR. CI refers to the automated testing of the codebase


microcheck: default tests on your PR
------------------------------------
With every commit on your PR, by default, we'll run a set of tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
With every commit on your PR, by default, we'll run a set of tests
With every commit on your PR, by default, CI runs a set of tests

With every commit on your PR, by default, we'll run a set of tests
called `microcheck`.

These tests are designed to be 90% accurate at catching bugs on your
Copy link
Contributor

@angelinalg angelinalg May 24, 2024

Choose a reason for hiding this comment

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

Suggested change
These tests are designed to be 90% accurate at catching bugs on your
These tests, based on historical data, are 90% accurate at detecting bugs on your


These tests are designed to be 90% accurate at catching bugs on your
PR while running only 10% of the full test suite. As a result,
microcheck typically finishes twice as fast and twice cheaper than
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
microcheck typically finishes twice as fast and twice cheaper than
microcheck typically runs twice as fast and costs half as much as

cases, and the PR will merge automatically once they finish and pass.

Alternatively, you can also add a `go` label to manually trigger the full
test suite on your PR (be mindful that this is less recommended but we
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
test suite on your PR (be mindful that this is less recommended but we
test suite on your PR. Be mindful of the cost and run time consequences of this option.


Alternatively, you can also add a `go` label to manually trigger the full
test suite on your PR (be mindful that this is less recommended but we
understand you know best about the need of your PR). While we anticipate
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
understand you know best about the need of your PR). While we anticipate

Alternatively, you can also add a `go` label to manually trigger the full
test suite on your PR (be mindful that this is less recommended but we
understand you know best about the need of your PR). While we anticipate
this will be rarely needed, if you do require it constantly, please let
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
this will be rarely needed, if you do require it constantly, please let
You should only need to run the full suite in rare cases. However, if you require it frequently,

test suite on your PR (be mindful that this is less recommended but we
understand you know best about the need of your PR). While we anticipate
this will be rarely needed, if you do require it constantly, please let
us know. We are continuously improve the effectiveness of microcheck.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
us know. We are continuously improve the effectiveness of microcheck.
let the Ray team know. The Ray team is continuously improving the effectiveness of microcheck.

doc/source/ray-contribute/ci.rst Outdated Show resolved Hide resolved
@can-anyscale can-anyscale enabled auto-merge (squash) May 24, 2024 20:48
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label May 24, 2024
Co-authored-by: angelinalg <[email protected]>
Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: can <[email protected]>
@github-actions github-actions bot disabled auto-merge May 24, 2024 21:09
@can-anyscale can-anyscale enabled auto-merge (squash) May 24, 2024 21:09
@can-anyscale can-anyscale merged commit 21534bb into master May 24, 2024
7 checks passed
@can-anyscale can-anyscale deleted the can-d01 branch May 24, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants