From 02fd457799de35b3ce36669d8557d29781f9066c Mon Sep 17 00:00:00 2001 From: JoeWang1127 Date: Fri, 8 Mar 2024 00:13:25 +0000 Subject: [PATCH 1/2] chore: write description to a file --- library_generation/generate_pr_description.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library_generation/generate_pr_description.py b/library_generation/generate_pr_description.py index 5c98912331..6452bb1b54 100644 --- a/library_generation/generate_pr_description.py +++ b/library_generation/generate_pr_description.py @@ -68,11 +68,16 @@ def generate( repo_url: str, baseline_commit: str, ) -> str: - return generate_pr_descriptions( + description = generate_pr_descriptions( generation_config_yaml=generation_config_yaml, repo_url=repo_url, baseline_commit=baseline_commit, ) + idx = generation_config_yaml.rfind("/") + config_path = generation_config_yaml[:idx] + with open(f"{config_path}/pr_description.txt", "w+") as f: + f.write(description) + return description def generate_pr_descriptions( From 3c549e3438903575239462d8e6e8581b922e8438 Mon Sep 17 00:00:00 2001 From: JoeWang1127 Date: Fri, 8 Mar 2024 00:15:52 +0000 Subject: [PATCH 2/2] temp disable java-bigtable in integration test --- library_generation/test/integration_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library_generation/test/integration_tests.py b/library_generation/test/integration_tests.py index 3ca7d45881..5c0a3b4523 100755 --- a/library_generation/test/integration_tests.py +++ b/library_generation/test/integration_tests.py @@ -203,7 +203,7 @@ def __get_config_files(cls, path: str) -> List[tuple[str, str]]: if sub_dir.is_file(): continue repo = sub_dir.name - if repo == "golden": + if repo == "golden" or repo == "java-bigtable": continue config = f"{sub_dir}/{config_name}" config_files.append((repo, config))