prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Move system tests into a separate Kokoro build
  At the moment, we run the system tests [at the end of *every* Kokoro build](https://github.com/googleapis/google-auth-library-python/blob/da8bb13c1349e771ffc2e125256030495c53d956/.kokoro/build.sh#L57-L63).  Not only should we *not* be running them during e.g. the `docs-presubmit` build, we should also run them separately from the `unit` / `cover` / `lint` sessions, so that we parallelize the long-running systests.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `owlbot.py`
  Content:
  ```
  1 import synthtool as s
  2 from synthtool import gcp
  3 
  4 common = gcp.CommonTemplates()
  5 
  6 # ----------------------------------------------------------------------------
  7 # Add templated files
  8 # ----------------------------------------------------------------------------
  9 templated_files = common.py_library(unit_cov_level=100, cov_level=100)
  10 
  11 
  12 s.move(
  13     templated_files / ".kokoro",
  14     excludes=[
  15         "continuous/common.cfg",
  16         "docs/common.cfg",
  17         "presubmit/common.cfg",
  18         "build.sh",
  19     ],
  20 )  # just move kokoro configs
  21 
  22 
  23 assert 1 == s.replace(
  24     ".kokoro/docs/docs-presubmit.cfg",
  25     'value: "docs docfx"',
  26     'value: "docs"',
  27 )
  28 
  29 assert 1 == s.replace(
  30     ".kokoro/docker/docs/Dockerfile",
  31     """\
  32 CMD \["python3\.8"\]""",
  33     """\
  34 # Install gcloud SDK
  35 RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | \\
  36     tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \\
  37   && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \\
  38     apt-key --keyring /usr/share/keyrings/cloud.google.gpg  add - \\
  39   && apt-get update -y \\
  40   && apt-get install python2 google-cloud-sdk -y
  41 
  42 CMD ["python3.8"]""",
  43 )
  44 
  45 s.shell.run(["nox", "-s", "blacken"], hide_output=False)
  46
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/owlbot.py b/owlbot.py
  --- a/owlbot.py
  +++ b/owlbot.py
  @@ -13,7 +13,6 @@
       templated_files / ".kokoro",
       excludes=[
           "continuous/common.cfg",
  -        "docs/common.cfg",
           "presubmit/common.cfg",
           "build.sh",
       ],
  @@ -26,20 +25,4 @@
       'value: "docs"',
   )
   
  -assert 1 == s.replace(
  -    ".kokoro/docker/docs/Dockerfile",
  -    """\
  -CMD \["python3\.8"\]""",
  -    """\
  -# Install gcloud SDK
  -RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | \\
  -    tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \\
  -  && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \\
  -    apt-key --keyring /usr/share/keyrings/cloud.google.gpg  add - \\
  -  && apt-get update -y \\
  -  && apt-get install python2 google-cloud-sdk -y
  -
  -CMD ["python3.8"]""",
  -)
  -
   s.shell.run(["nox", "-s", "blacken"], hide_output=False)
  
verification_info: {"golden_diff": "diff --git a/owlbot.py b/owlbot.py\n--- a/owlbot.py\n+++ b/owlbot.py\n@@ -13,7 +13,6 @@\n     templated_files / \".kokoro\",\n     excludes=[\n         \"continuous/common.cfg\",\n-        \"docs/common.cfg\",\n         \"presubmit/common.cfg\",\n         \"build.sh\",\n     ],\n@@ -26,20 +25,4 @@\n     'value: \"docs\"',\n )\n \n-assert 1 == s.replace(\n-    \".kokoro/docker/docs/Dockerfile\",\n-    \"\"\"\\\n-CMD \\[\"python3\\.8\"\\]\"\"\",\n-    \"\"\"\\\n-# Install gcloud SDK\n-RUN echo \"deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main\" | \\\\\n-    tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \\\\\n-  && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \\\\\n-    apt-key --keyring /usr/share/keyrings/cloud.google.gpg  add - \\\\\n-  && apt-get update -y \\\\\n-  && apt-get install python2 google-cloud-sdk -y\n-\n-CMD [\"python3.8\"]\"\"\",\n-)\n-\n s.shell.run([\"nox\", \"-s\", \"blacken\"], hide_output=False)\n", "issue": "Move system tests into a separate Kokoro build\nAt the moment, we run the system tests [at the end of *every* Kokoro build](https://github.com/googleapis/google-auth-library-python/blob/da8bb13c1349e771ffc2e125256030495c53d956/.kokoro/build.sh#L57-L63).  Not only should we *not* be running them during e.g. the `docs-presubmit` build, we should also run them separately from the `unit` / `cover` / `lint` sessions, so that we parallelize the long-running systests.\n", "before_files": [{"content": "import synthtool as s\nfrom synthtool import gcp\n\ncommon = gcp.CommonTemplates()\n\n# ----------------------------------------------------------------------------\n# Add templated files\n# ----------------------------------------------------------------------------\ntemplated_files = common.py_library(unit_cov_level=100, cov_level=100)\n\n\ns.move(\n    templated_files / \".kokoro\",\n    excludes=[\n        \"continuous/common.cfg\",\n        \"docs/common.cfg\",\n        \"presubmit/common.cfg\",\n        \"build.sh\",\n    ],\n)  # just move kokoro configs\n\n\nassert 1 == s.replace(\n    \".kokoro/docs/docs-presubmit.cfg\",\n    'value: \"docs docfx\"',\n    'value: \"docs\"',\n)\n\nassert 1 == s.replace(\n    \".kokoro/docker/docs/Dockerfile\",\n    \"\"\"\\\nCMD \\[\"python3\\.8\"\\]\"\"\",\n    \"\"\"\\\n# Install gcloud SDK\nRUN echo \"deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main\" | \\\\\n    tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \\\\\n  && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \\\\\n    apt-key --keyring /usr/share/keyrings/cloud.google.gpg  add - \\\\\n  && apt-get update -y \\\\\n  && apt-get install python2 google-cloud-sdk -y\n\nCMD [\"python3.8\"]\"\"\",\n)\n\ns.shell.run([\"nox\", \"-s\", \"blacken\"], hide_output=False)\n", "path": "owlbot.py"}], "after_files": [{"content": "import synthtool as s\nfrom synthtool import gcp\n\ncommon = gcp.CommonTemplates()\n\n# ----------------------------------------------------------------------------\n# Add templated files\n# ----------------------------------------------------------------------------\ntemplated_files = common.py_library(unit_cov_level=100, cov_level=100)\n\n\ns.move(\n    templated_files / \".kokoro\",\n    excludes=[\n        \"continuous/common.cfg\",\n        \"presubmit/common.cfg\",\n        \"build.sh\",\n    ],\n)  # just move kokoro configs\n\n\nassert 1 == s.replace(\n    \".kokoro/docs/docs-presubmit.cfg\",\n    'value: \"docs docfx\"',\n    'value: \"docs\"',\n)\n\ns.shell.run([\"nox\", \"-s\", \"blacken\"], hide_output=False)\n", "path": "owlbot.py"}]}