From fdc075d2f803086b18be34211dc7d8a87c11e5e3 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 13 Apr 2026 16:56:46 +0000 Subject: [PATCH] tests: remove 'treat warnings as errors' flag for docs --- .gitignore | 6 ++++++ packages/gapic-generator/gapic/templates/noxfile.py.j2 | 1 - .../tests/integration/goldens/asset/noxfile.py | 1 - .../tests/integration/goldens/credentials/noxfile.py | 1 - .../tests/integration/goldens/eventarc/noxfile.py | 1 - .../tests/integration/goldens/logging/noxfile.py | 1 - .../tests/integration/goldens/logging_internal/noxfile.py | 1 - .../tests/integration/goldens/redis/noxfile.py | 1 - .../goldens/redis/testing/constraints-3.9-async-rest.txt | 0 .../tests/integration/goldens/redis_selective/noxfile.py | 1 - .../redis_selective/testing/constraints-3.9-async-rest.txt | 0 11 files changed, 6 insertions(+), 8 deletions(-) mode change 100644 => 100755 packages/gapic-generator/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt mode change 100644 => 100755 packages/gapic-generator/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt diff --git a/.gitignore b/.gitignore index f340be976696..efcdb4857b95 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,9 @@ pylintrc.test # Ruff cache .ruff_cache + +# Bazel (created in packages/gapic-generator) +bazel-bin +bazel-gapic-generator +bazel-out +bazel-testlogs diff --git a/packages/gapic-generator/gapic/templates/noxfile.py.j2 b/packages/gapic-generator/gapic/templates/noxfile.py.j2 index b62ed4298138..c628aad47051 100644 --- a/packages/gapic-generator/gapic/templates/noxfile.py.j2 +++ b/packages/gapic-generator/gapic/templates/noxfile.py.j2 @@ -392,7 +392,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py b/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py index 36fef0baf3b2..ca9b5afb08f6 100755 --- a/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/asset/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py b/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py index 8473b412c670..a614b73d8480 100755 --- a/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/credentials/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py b/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py index 8bc8b8eda9dd..584bb9d01c7e 100755 --- a/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/eventarc/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py b/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py index f8e2097351fc..491848c947bd 100755 --- a/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/logging/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py b/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py index f8e2097351fc..491848c947bd 100755 --- a/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/logging_internal/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py b/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py index 52f6e6f07f84..abaab5a4121d 100755 --- a/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/redis/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt b/packages/gapic-generator/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt old mode 100644 new mode 100755 diff --git a/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py b/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py index 52f6e6f07f84..abaab5a4121d 100755 --- a/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py +++ b/packages/gapic-generator/tests/integration/goldens/redis_selective/noxfile.py @@ -384,7 +384,6 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", "html", # builder diff --git a/packages/gapic-generator/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt b/packages/gapic-generator/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt old mode 100644 new mode 100755