From 6ee0aa0961f4296000a043c0a1686fb0afbf77ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Wed, 13 Mar 2024 14:29:41 -0500 Subject: [PATCH 1/2] docs: add version information to bug template --- owlbot.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/owlbot.py b/owlbot.py index 4dc6d1aca3..77479401d5 100644 --- a/owlbot.py +++ b/owlbot.py @@ -16,6 +16,7 @@ import pathlib import re +import textwrap from synthtool import gcp import synthtool as s @@ -59,6 +60,35 @@ # Fixup files # ---------------------------------------------------------------------------- +# Encourage sharring all relevant versions in bug reports. +s.replace( + [".github/ISSUE_TEMPLATE/bug_report.md"], + re.escape("#### Steps to reproduce\n"), + textwrap.dedent( + """ + ```python + import sys + import bigframes + import google.cloud.bigquery + import ibis + import pandas + import pyarrow + import sqlglot + + print(f"Python: {sys.version}") + print(f"bigframes=={bigframes.__version__}") + print(f"google-cloud-bigquery=={google.cloud.bigquery.__version__}") + print(f"ibis=={ibis.__version__}") + print(f"pandas=={pandas.__version__}") + print(f"pyarrow=={pyarrow.__version__}") + print(f"sqlglot=={sqlglot.__version__}") + ``` + + #### Steps to reproduce + """, + ), +) + # Make sure build includes all necessary files. s.replace( ["MANIFEST.in"], From 6e7d109b3b488ab4e825e4900b2b76db4690ffdb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 13 Mar 2024 19:31:55 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .github/ISSUE_TEMPLATE/bug_report.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 7b0900728e..8bc1d5f787 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -22,6 +22,25 @@ If you are still having issues, please be sure to include as much information as - pip version: `pip --version` - `bigframes` version: `pip show bigframes` + +```python +import sys +import bigframes +import google.cloud.bigquery +import ibis +import pandas +import pyarrow +import sqlglot + +print(f"Python: {sys.version}") +print(f"bigframes=={bigframes.__version__}") +print(f"google-cloud-bigquery=={google.cloud.bigquery.__version__}") +print(f"ibis=={ibis.__version__}") +print(f"pandas=={pandas.__version__}") +print(f"pyarrow=={pyarrow.__version__}") +print(f"sqlglot=={sqlglot.__version__}") +``` + #### Steps to reproduce 1. ?