Skip to content

[DT-1654] Add scripts #1975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

[DT-1654] Add scripts #1975

wants to merge 2 commits into from

Conversation

s-rubenstein
Copy link
Contributor

Jira ticket: https://broadworkbench.atlassian.net/browse/dt-1654

Addresses

Summary of changes

Testing Strategy

@s-rubenstein s-rubenstein requested a review from a team as a code owner May 29, 2025 14:44
@s-rubenstein s-rubenstein requested review from pshapiro4broad and rjohanek and removed request for a team May 29, 2025 14:44
Copy link

Copy link
Member

@pshapiro4broad pshapiro4broad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect these files to be excluded by the .gitignore entry

tools/migrateInheritSteward/*.json

If you add a file that is later .gitignore'd then any further changes won't be picked up, so this doesn't seem correct. Having an example input seems like a good idea, but it could be added in a comment in the script instead of committed as a file.

print(f"Waiting for job {job_model.id} to finish")
result = clients.jobs_api.retrieve_job(job_model.id)
elif result.job_status == "failed":
print(job_model.id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for debugging? Or should it have a Failed message?

Suggested change
print(job_model.id)
print(f"Job {job_model.id} failed")

Copy link
Contributor

@rjohanek rjohanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good, do we want to make the script more resilient to ignore snapshots that can't be migrated and just migrate those that can, so users can get some benefit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants