|
|
@ -1,4 +1,5 @@ |
|
|
|
#!/usr/bin/env python3 |
|
|
|
#!/usr/bin/env python3 |
|
|
|
|
|
|
|
import sys |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
from common.basedir import BASEDIR |
|
|
|
from common.basedir import BASEDIR |
|
|
|
from azure.storage.blob import BlockBlobService |
|
|
|
from azure.storage.blob import BlockBlobService |
|
|
@ -54,17 +55,16 @@ def sync_to_ci_public(route): |
|
|
|
if __name__ == "__main__": |
|
|
|
if __name__ == "__main__": |
|
|
|
failed_routes = [] |
|
|
|
failed_routes = [] |
|
|
|
|
|
|
|
|
|
|
|
# sync process replay routes |
|
|
|
to_sync = sys.argv[1:] |
|
|
|
for s in replay_segments: |
|
|
|
|
|
|
|
route_name, _ = s[1].rsplit('--', 1) |
|
|
|
|
|
|
|
if not sync_to_ci_public(route_name): |
|
|
|
|
|
|
|
failed_routes.append(route_name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sync test_car_models routes |
|
|
|
if not len(to_sync): |
|
|
|
for r in list(test_car_models_routes.keys()): |
|
|
|
# sync routes from test_car_models and process replay |
|
|
|
|
|
|
|
to_sync.extend(test_car_models_routes.keys()) |
|
|
|
|
|
|
|
to_sync.extend([s[1].rsplit('--', 1)[0] for s in replay_segments]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for r in to_sync: |
|
|
|
if not sync_to_ci_public(r): |
|
|
|
if not sync_to_ci_public(r): |
|
|
|
failed_routes.append(r) |
|
|
|
failed_routes.append(r) |
|
|
|
|
|
|
|
|
|
|
|
if len(failed_routes): |
|
|
|
if len(failed_routes): |
|
|
|
print("failed routes:") |
|
|
|
print("failed routes:", failed_routes) |
|
|
|
print(failed_routes) |
|
|
|
|
|
|
|