Skip to content

Automate meta file check #2133

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

Merged
merged 4 commits into from
Jun 14, 2019
Merged

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Jun 14, 2019

Attempt to automate part of our release checklist. This ensures each .meta file corresponds to a normal file, and each normal file has a .meta file (except for the script itself).

We could potentially run this as a unit test instead, but that would mean the mlagents package would have to read outside its own directory. Standalone script and executing in CI seemed like a cleaner approach.

Also, please check that my understanding of the checklist item is correct.

@chriselion chriselion requested a review from xiaomaogy June 14, 2019 16:23


def main():
asset_path = "UnitySDK/Assets"
Copy link
Contributor

Choose a reason for hiding this comment

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

This assumes that you are always running in the root path of the repo, which I guess is fine since you will only run it in the circleci.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I guess we could add the path as a parameter if we need to later. But I think it's OK to leave hardcoded for now.

@xiaomaogy
Copy link
Contributor

Overall looks good to me. The only things is that maybe we should not put this script inside the UnitySDK folder. This seems like a utils script and might worth its own folder?

@chriselion
Copy link
Contributor Author

Sure, I'll look into moving it into a folder.

@chriselion chriselion merged commit 672052a into develop Jun 14, 2019
@chriselion chriselion deleted the develop-automate-meta-file-check branch July 11, 2019 22:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants