Merge "add more trace info to process_release_requests.py"
This commit is contained in:
commit
8528ef5584
@ -49,6 +49,7 @@ def find_modified_deliverable_files(reporoot):
|
|||||||
|
|
||||||
def tag_release(repo, series_name, version, diff_start, hash,
|
def tag_release(repo, series_name, version, diff_start, hash,
|
||||||
include_pypi_link, first_full_release, meta_data):
|
include_pypi_link, first_full_release, meta_data):
|
||||||
|
print('Tagging {} in {}'.format(version, repo))
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
[RELEASE_SCRIPT, repo, series_name, version,
|
[RELEASE_SCRIPT, repo, series_name, version,
|
||||||
@ -63,6 +64,7 @@ def tag_release(repo, series_name, version, diff_start, hash,
|
|||||||
|
|
||||||
|
|
||||||
def make_branch(repo, name, ref):
|
def make_branch(repo, name, ref):
|
||||||
|
print('Branching {} in {}'.format(name, repo))
|
||||||
try:
|
try:
|
||||||
subprocess.check_call([BRANCH_SCRIPT, repo, name, ref])
|
subprocess.check_call([BRANCH_SCRIPT, repo, name, ref])
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
@ -94,15 +96,18 @@ def process_release_requests(reporoot, filenames, meta_data):
|
|||||||
error_count = 0
|
error_count = 0
|
||||||
|
|
||||||
for basename in deliverable_files:
|
for basename in deliverable_files:
|
||||||
|
print('Looking at changes in {}'.format(basename))
|
||||||
filename = os.path.join(reporoot, basename)
|
filename = os.path.join(reporoot, basename)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
# The file must have been deleted, skip it.
|
# The file must have been deleted, skip it.
|
||||||
|
print(' {} was deleted'.format(basename))
|
||||||
continue
|
continue
|
||||||
with open(filename, 'r', encoding='utf-8') as f:
|
with open(filename, 'r', encoding='utf-8') as f:
|
||||||
deliverable_data = yaml.load(f.read())
|
deliverable_data = yaml.load(f.read())
|
||||||
|
|
||||||
# If there are no releases listed in this file, skip it.
|
# If there are no releases listed in this file, skip it.
|
||||||
if not deliverable_data.get('releases'):
|
if not deliverable_data.get('releases'):
|
||||||
|
print(' {} contains no releases, skipping'.format(basename))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Map the release version to the release contents so we can
|
# Map the release version to the release contents so we can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user