Skip to content

update barracuda version, enable tests for 2020.2 #4571

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
Oct 20, 2020

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Oct 15, 2020

Proposed change(s)

Upgrade barracuda dependency to 1.1.2-preview. This contains a fix for 2020.2, so we can re-enable that in the test versions.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

https://jira.unity3d.com/browse/MLA-1464

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@@ -150,10 +150,11 @@ def checkout_csharp_version(csharp_version):
return

csharp_tag = f"com.unity.ml-agents_{csharp_version}"
csharp_dirs = ["com.unity.ml-agents", "Project"]
csharp_dirs = ["com.unity.ml-agents", "com.unity.ml-agents.extensions", "Project"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we don't sync the extensions package, we'll get compile failures because the current extensions code is not compatible with old package code.

for csharp_dir in csharp_dirs:
subprocess.check_call(f"rm -rf {csharp_dir}", shell=True)
subprocess.check_call(f"git checkout {csharp_tag} -- {csharp_dir}", shell=True)
# Allow the checkout to fail, since the extensions folder isn't availabe in 1.0.0
subprocess.call(f"git checkout {csharp_tag} -- {csharp_dir}", shell=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

... but trying to checkout the directory at old tags before it existed will fail

@chriselion chriselion merged commit 65644d1 into master Oct 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the MLA-1464-barracuda-fix branch October 20, 2020 17:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 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