Merge pull request #61448 from tensorflow:sushreebarsa-patch-2

PiperOrigin-RevId: 553365736
This commit is contained in:
TensorFlower Gardener 2023-08-02 22:56:38 -07:00
commit 19322711fd

View File

@ -30,43 +30,44 @@ Before sending your pull requests, make sure you do the following:
**2. Valid?**
- If the PR passes all the quality checks then we go ahead and assign a
reviewer.
- If the PR didn't meet the validation criteria, we request for additional
changes to be made to PR to pass quality checks and send it back or on a rare
occassion we may reject it.
- If the PR passes all the quality checks then we go ahead and assign a
reviewer.
- If the PR didn't meet the validation criteria, we request for additional
changes to be made to PR to pass quality checks and send it back or on a
rare occasion we may reject it.
**3. Review**
- For Valid PR, reviewer (person familiar with the code/functionality) checks if
the PR looks good or needs additional changes.
- If all looks good, reviewer would approve the PR.
- If a change is needed, the contributor is requested to make suggested change.
- You make the change and submit for the review again.
- This cycle repeats itself till the PR gets approved.
- Note: As a friendly reminder we may reach out to you if the PR is awaiting
your response for more than 2 weeks.
- For a valid PR, reviewer (person familiar with the code/functionality)
checks if the PR looks good or needs additional changes.
- If all looks good, the reviewer will approve the PR.
- If a change is needed, the contributor is requested to make the suggested
change.
- You make the change and submit it for the review again.
- This cycle repeats itself untill the PR gets approved.
- Note: As a friendly reminder, we may reach out to you if the PR is awaiting
your response for more than 2 weeks.
**4. Approved**
- Once the PR is approved, it gets `kokoro:force-run` label applied and it
initiates CI/CD tests.
- We can't move forward if these tests fail.
- In such situations, we may request you to make further changes to your PR for
the tests to pass.
- Once the tests pass, we now bring all the code in the internal code base,
using a job called "copybara".
- Once the PR is approved, it gets `kokoro:force-run` label applied and it
initiates CI/CD tests.
- We can't move forward if these tests fail.
- In such situations, we may request you to make further changes to your PR
for the tests to pass.
- Once the tests pass, we now bring all the code into the internal code base,
using a job called "copybara".
**5. Copy to Google Internal codebase and run internal CI**
- Once the PR is in Google codebase, we make sure it integrates well with its
dependencies and the rest of the system.
- Rarely, but If the tests fail at this stage, we cannot merge the code.
- If needed, we may come to you to make some changes. At times, it may not be
you, it may be us who may have hit a snag. Please be patient while we work to
fix this.
- Once the internal tests pass, we go ahead and merge the code internally as
well as externally on GitHub.
- Once the PR is in the Google codebase, we make sure it integrates well with
its dependencies and the rest of the system.
- Rarely, If the tests fail at this stage, we cannot merge the code.
- If needed, we may come to you to make some changes. At times, it may not be
you, it may be us who may have hit a snag. Please be patient while we work
to fix this.
- Once the internal tests pass, we go ahead and merge the code internally as
well as externally on GitHub.
In a graphical form, the entire lifetime of a PR looks like
@ -147,7 +148,7 @@ TensorFlow coding style.
* As every PR requires several CPU/GPU hours of CI testing, we discourage
submitting PRs to fix one typo, one warning,etc. We recommend fixing the
same issue at the file level at least (e.g.: fix all typos in a file, fix
all compiler warning in a file, etc.)
all compiler warnings in a file, etc.)
* Tests should follow the
[testing best practices](https://www.tensorflow.org/community/contribute/tests)
guide.
@ -234,8 +235,8 @@ There are two ways to run TensorFlow unit tests.
[Docker images](https://hub.docker.com/r/tensorflow/tensorflow/tags/), e.g.,
`tensorflow/tensorflow:devel` and `tensorflow/tensorflow:devel-gpu` for
development to avoid installing the packages directly on your system (in
which case remember to change directory from `/root` to `/tensorflow` once
you get into the running container so `bazel` can find the `tensorflow`
which case remember to change the directory from `/root` to `/tensorflow`
once you get into the running container so `bazel` can find the `tensorflow`
workspace).
Once you have the packages installed, you can run a specific unit test in
@ -245,8 +246,8 @@ There are two ways to run TensorFlow unit tests.
export flags="--config=opt -k"
```
If the tests are to be run on GPU, add CUDA paths to LD_LIBRARY_PATH and add
the `cuda` option flag
If the tests are to be run on the GPU, add CUDA paths to LD_LIBRARY_PATH and
add the `cuda` option flag
```bash
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH"