diff --git a/.github/workflows/unit-and-integration-tests-unified.yml b/.github/workflows/unit-and-integration-tests-unified.yml index 544787e79a3c..f2b9214d1aa8 100644 --- a/.github/workflows/unit-and-integration-tests-unified.yml +++ b/.github/workflows/unit-and-integration-tests-unified.yml @@ -19,6 +19,7 @@ on: paths-ignore: - '**/*.md' - 'dev/**' + - 'distribution/bin/**' - 'docs/**' - 'examples/**/jupyter-notebooks/**' - 'web-console/**' @@ -31,6 +32,7 @@ on: paths-ignore: - '**/*.md' - 'dev/**' + - 'distribution/bin/**' - 'docs/**' - 'examples/**/jupyter-notebooks/**' - 'web-console/**' diff --git a/distribution/bin/find-missing-backports.py b/distribution/bin/find-missing-backports.py index 88e7418d2975..e412527d00f9 100755 --- a/distribution/bin/find-missing-backports.py +++ b/distribution/bin/find-missing-backports.py @@ -64,17 +64,18 @@ def find_next_url(links): return None -if len(sys.argv) != 5: - sys.stderr.write('usage: program \n') - sys.stderr.write(" e.g., program myusername 0.17.0 0.18.0 30") - sys.stderr.write(" e.g., The milestone number for Druid 30 is 56, since the milestone has the url https://github.com/apache/druid/milestone/56\n") - sys.stderr.write(" It is also necessary to set a GIT_TOKEN environment variable containing a personal access token.") +if len(sys.argv) != 4: + sys.stderr.write('Incorrect program arguments.\n') + sys.stderr.write('Usage: program \n') + sys.stderr.write(" e.g., program myusername 29.0.0 30.0.0\n") + sys.stderr.write(" Ensure that the title of the milestone is the same as the release branch.\n") + sys.stderr.write(" Ensure that a GIT_TOKEN environment variable containing a personal access token has been set.\n") sys.exit(1) github_username = sys.argv[1] previous_branch = sys.argv[2] release_branch = sys.argv[3] -milestone_number = int(sys.argv[4]) +milestone_title = release_branch master_branch = "master" command = "git log {}..{} --oneline | tail -1".format(master_branch, previous_branch) @@ -102,9 +103,6 @@ def find_next_url(links): print("Number of release PR subjects: {}".format(len(release_pr_subjects))) # Get all closed PRs and filter out with milestone -milestone_url = "https://api.github.com/repos/apache/druid/milestones/{}".format(milestone_number) -resp = requests.get(milestone_url, auth=(github_username, os.environ["GIT_TOKEN"])).json() -milestone_title = resp['title'] pr_items = [] page = 0 while True: