unknown-cli 0.9.29__tar.gz → 0.9.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/PKG-INFO +1 -1
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/PKG-INFO +1 -1
- unknown-cli-0.9.31/unknowncli/VERSION +1 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/commands/preflight.py +14 -3
- unknown-cli-0.9.29/unknowncli/VERSION +0 -1
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/README.md +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/setup.cfg +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/setup.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/SOURCES.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/dependency_links.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/entry_points.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/requires.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknown_cli.egg-info/top_level.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/__init__.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/__main__.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/commands/__init__.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/commands/project.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/commands/task.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/commands/unreal.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/data/.p4ignore.txt +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/set_registry_keys.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/set_url_handler.py +0 -0
- {unknown-cli-0.9.29 → unknown-cli-0.9.31}/unknowncli/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.31
|
|
@@ -572,8 +572,7 @@ def get_shelve_preflight_build_id(shelve_changelist, type=PreflightType.FULL, st
|
|
|
572
572
|
secho(output, fg="green")
|
|
573
573
|
build_id = output.split("\n")[-1]
|
|
574
574
|
except CalledProcessError as e:
|
|
575
|
-
|
|
576
|
-
secho(e.output.decode("ascii"), fg="red")
|
|
575
|
+
secho(e.output.decode("ascii"), fg="red")
|
|
577
576
|
if abort_on_fail:
|
|
578
577
|
abort(f"Failed to {'find' if find else 'trigger'} preflight.")
|
|
579
578
|
if build_id and print_output:
|
|
@@ -735,10 +734,22 @@ def wait_on_teamcity_build(build_id, changelist, submit_on_server):
|
|
|
735
734
|
return table
|
|
736
735
|
|
|
737
736
|
build_json = get_teamcity_build_json(build_id)
|
|
737
|
+
estimate_build_id = build_id
|
|
738
|
+
running_info = get_build_running_info(build_json)
|
|
739
|
+
if not 'estimatedTotalSeconds' in running_info:
|
|
740
|
+
snapshot_dependencies = build_json.get("snapshot-dependencies")
|
|
741
|
+
estimate_build_id = str(snapshot_dependencies.get("build")[0].get("id"))
|
|
738
742
|
prev_state = None
|
|
739
743
|
with Live(generate_state_table(build_json), refresh_per_second=3) as live:
|
|
740
744
|
while get_build_state(build_json) in [BuildState.QUEUED, BuildState.RUNNING, BuildState.FINISHED]:
|
|
741
745
|
build_json = get_teamcity_build_json(build_id)
|
|
746
|
+
if estimate_build_id != build_id and "startDate" in build_json:
|
|
747
|
+
estimate_json = get_teamcity_build_json(estimate_build_id)
|
|
748
|
+
if "finishEstimate" in estimate_json:
|
|
749
|
+
finish_estimate = datetime.strptime(estimate_json["finishEstimate"], "%Y%m%dT%H%M%S%z")
|
|
750
|
+
start_date = datetime.strptime(build_json["startDate"], "%Y%m%dT%H%M%S%z")
|
|
751
|
+
build_json["running-info"]["estimatedTotalSeconds"] = (finish_estimate - start_date).seconds
|
|
752
|
+
|
|
742
753
|
live.update(generate_state_table(build_json))
|
|
743
754
|
curr_state = get_build_state(build_json)
|
|
744
755
|
# Skip updating if we did a submit on server as that process already updated the tag.
|
|
@@ -902,7 +913,7 @@ def main(
|
|
|
902
913
|
check_for_forbidden_files(shelve_changelist)
|
|
903
914
|
if use_server_submit and commit_on_success:
|
|
904
915
|
secho(f"Reverting files from CL {shelve_changelist} to allow for submit on the server..")
|
|
905
|
-
revert_file_in_cl("//...", shelve_changelist)
|
|
916
|
+
revert_file_in_cl("//...", shelve_changelist, "-w")
|
|
906
917
|
else:
|
|
907
918
|
if change_obj.is_shelved:
|
|
908
919
|
shelve_changelist = change_obj.change
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.29
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|