| 1 |
# Patches to grpc repo tags for the backwards compatibility interop tests |
| 2 |
|
| 3 |
This directory has patch files that can be applied to different tags |
| 4 |
of the grpc git repo in order to run the interop tests for a specific |
| 5 |
language based on that tag. |
| 6 |
|
| 7 |
For example, because the ruby interop tests do not run on the v1.0.1 tag out |
| 8 |
of the box, but we still want to test compatibility of the 1.0.1 ruby release |
| 9 |
with other versions, we can apply a patch to the v1.0.1 tag from this directory |
| 10 |
that makes the necessary changes that are needed to run the ruby interop tests |
| 11 |
from that tag. We can then use that patch to build the docker image for the |
| 12 |
ruby v1.0.1 interop tests. |
| 13 |
|
| 14 |
## How to add a new patch to this directory |
| 15 |
|
| 16 |
Patch files in this directory are meant to be applied to a git tag |
| 17 |
with a `git apply` command. |
| 18 |
|
| 19 |
1. Under the `patches` directory, create a new subdirectory |
| 20 |
titled `<language>_<git_tag>` for the git tag being modified. |
| 21 |
|
| 22 |
2. `git checkout <git_tag>` |
| 23 |
|
| 24 |
3. Make necessary modifications to the git repo at that tag. |
| 25 |
|
| 26 |
4. |
| 27 |
|
| 28 |
``` |
| 29 |
git diff > ~/git_repo.patch |
| 30 |
git checkout <current working branch> |
| 31 |
cp ~/git_repo.patch tools/interop_matrix/patches/<language>_<git_tag>/ |
| 32 |
``` |
| 33 |
|
| 34 |
5. Edit the `LANGUAGE_RELEASE_MATRIX` in `client_matrix.py` for your language/tag |
| 35 |
and add a `'patch': [<files>,....]` entry to it's `dictionary`. |
| 36 |
|
| 37 |
After doing this, the interop image creation script can apply that patch to the |
| 38 |
tag with `git apply` before uploading to the test image repo. |