-
Notifications
You must be signed in to change notification settings - Fork 152
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
MineRL update #350
Open
MadcowD
wants to merge
170
commits into
master
Choose a base branch
from
wguss/unification
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
MineRL update #350
Changes from 63 commits
Commits
Show all changes
170 commits
Select commit
Hold shift + click to select a range
fc4f7b8
commit 52fd99889c5f428aab30b2f26765dc40128b00a1
MadcowD 73ac6b8
Merge remote-tracking branch 'openai/master' into dev
MadcowD 97456b5
Using gthub actions CI.
MadcowD bf57359
Adding new build
MadcowD 0122132
Add ajava dep
MadcowD a0d95d3
Get the python version
MadcowD 378d06c
Removing python 2
MadcowD fba67d9
Adding apt dependencies for linux builds.
MadcowD be18635
Java path
MadcowD a5cf079
Only installing the jdk
MadcowD e5cd8d4
Switching to yum
MadcowD d217b7f
Adding JDK back for windows
MadcowD cd56a36
Java home
MadcowD 10e4be0
Removing other builds
MadcowD b13ed07
Dir name
MadcowD d92ee11
Adding gradlew scoping.
MadcowD 5e72fa7
Adding new jdk path?
MadcowD 0c065b8
Switching to headless?
MadcowD 1f2cb98
Swiching java versions back with a sad note against RHEL
MadcowD 179bea4
Adding fix for dist utils failure.
MadcowD 47b9418
libxranr
MadcowD b3191f4
.
MadcowD f41f7f8
.
MadcowD e848fad
.
MadcowD 3f4247c
.
MadcowD dc954a3
More x11 deps.
MadcowD 0361063
Lib xcuros?
MadcowD 6a58686
Reading more about PEP 535
MadcowD 8cffa4f
.
MadcowD e03adf8
.
MadcowD a10c85b
.
MadcowD 2016bb5
Attempting to add LD_LIBRARY_PATH
MadcowD df9bb49
removing java
MadcowD aa9248f
.
MadcowD aa259a4
z
MadcowD 88d67c8
test of default
MadcowD 6c08dc5
wf
MadcowD b00db27
easier days
MadcowD 02083f2
.
MadcowD 8fc08a1
a
MadcowD c406485
az
MadcowD 4d2010b
.
MadcowD c902704
Removing redundant installs
MadcowD 4ff2a61
Adding java dependency to the white list of audit wheel.
MadcowD b35f3ba
Moving the json update to the repiar wheel command
MadcowD 46826db
Using the correct pip?
MadcowD f27cbe2
Attempting to truly update the policy
MadcowD 828864c
Switching to manylinux 2014
MadcowD 647cbea
Fixing a syntax error.
MadcowD 6cbc0ee
Parallelizing build
MadcowD a2d062d
Even faster builds.
MadcowD d85f7cc
.
MadcowD 522ae0b
Test
MadcowD 244e98c
z
MadcowD c227bfd
New platform instructions
MadcowD 4b6d176
.
MadcowD 6f3b06d
.
MadcowD fb83306
.
MadcowD 5600a4b
Stopping sdist build
MadcowD 3cf0ab3
Adding workflow dispatch.
MadcowD 0c4b397
Attempting to trigger.
MadcowD 7173840
Fixing pver issue!
MadcowD d1a779e
.
MadcowD 9328c56
New trigger
MadcowD 706e965
Trigger
MadcowD e9394e2
.
MadcowD ff768a7
Update
MadcowD 944eadc
Adding sdist
MadcowD 21f2c93
Testing.
MadcowD 2eb07f2
Updating.
MadcowD 88acfc0
Fixing the build pipeline & merging MC_usptream and unified spaces.
MadcowD 3e608b4
Fixing build directory for shadowjar.
MadcowD 2883b16
Doing test build deploy.
MadcowD c1c6599
.
MadcowD 11f8761
.
MadcowD 6f9cf70
.
MadcowD acdc0e8
fast gs stuff
MadcowD fa75d49
Catching bug
MadcowD 5a52053
Something is wrong
MadcowD 6e54f42
Fixing this.
MadcowD 590d2fd
.
MadcowD e2c720a
removing submodule
MadcowD 2a97c2d
fixe
MadcowD aa34866
Cleaning for sure :)
MadcowD 73f62cb
Speeding up travis.
MadcowD 6a17aeb
local install
MadcowD 12eb20c
Removing useless module.
MadcowD c3f72b1
Making comopatible with python 3.5
MadcowD 59fc021
Removing irrelevent tests.
MadcowD 2531e36
Updating the data version, and moving relfection compoenents.
MadcowD 9c6b348
Merging changes from @brandonhoughton for life-stats
MadcowD 8d7e6a9
Handlerized pov, info, etc. Removed fullstats
MadcowD 5850a11
Switching to using action handlers.
MadcowD 648797a
Fixing classpath
MadcowD 48c6e19
Reorganizing handlers, switching to XML templating. Finishing action …
MadcowD ef58e5d
Began adding templating for observations and added an agent_start sec…
MadcowD fa40751
Finishing observable implementations.
MadcowD 0e77d72
Adding imports for observations.
MadcowD 7273a2a
Implemented all currently used handlers in python -_-
MadcowD 7b8b1d1
Fully comitting.
MadcowD c5e9491
Deleting those things
brandonhoughton 260d7a6
Adding fixed reward handlers.
MadcowD 45f68c2
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD 2ca3e90
Update gradlew wrapper to work in modern IDEs
brandonhoughton 27e03bc
Add setup script for intellij
brandonhoughton 4e2c403
update setup script for intellij
brandonhoughton 698c95f
Updaing options.txt with malmo config options
brandonhoughton 8a04742
Templating successfully complete for treechop!
MadcowD 0935c22
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD 4fbffda
Add abstract method stubs to enable importing of envs
brandonhoughton a0219d6
Fixin treechop.xml
MadcowD 61786b1
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD 31f859c
Adding sorting to the translation handler.
MadcowD 8ebcc48
Finishing the navigate spec.
MadcowD 584c92a
Adding dense and extreme.
MadcowD 6fe273a
Fixing misc constructor.
MadcowD 5ea428b
Fixing wrapper.
MadcowD eb43735
Unit tests are now running!
MadcowD 5657695
XML templating
MadcowD 00ca6d5
.
MadcowD e238e8e
Add abstract method stubs for server decorators
brandonhoughton 667fe40
Adding abstract method.
MadcowD 64101e7
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD b65dc28
Breaking up the sections
MadcowD 7a8c206
Switching templating to str based (for exact template checking)
MadcowD 4ec7162
Updating the fake env.
MadcowD 053f40d
Fixing POV
MadcowD 90bd572
Fixing pause implementation hogging the commands.
MadcowD 089f647
Added mission.xml.j2 to the manifest
MadcowD f9068a6
y
MadcowD 2bd6750
a
MadcowD c2af353
a
MadcowD c28c6a2
Pushing changes to Mindcraft codebase
brandonhoughton 74b1bd7
Regression tests.
MadcowD c159bd7
Regressio ntest
MadcowD 26c3fc8
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD 8068ff4
Dropping inflection. Adding reset Reverting generate. Fixing foc. Bum…
MadcowD a08eb56
All unit tests are passing!
MadcowD 6cbf3b2
XML regression
MadcowD 34ac230
Regression tests passed!
MadcowD 9c804d0
Push for github
MadcowD f6eb0c9
Fix treechop regression.
MadcowD d3f080f
.
MadcowD 743c3e0
.
MadcowD 94a7ee3
Fixing gradle build!
MadcowD 3cdcfe4
Removing junk jenkins file
MadcowD d9163b9
Glenn unification multiagent support (#375)
glennpow 91e7c49
Adding a make function.
MadcowD ee60f08
Merge branch 'wguss/unification' of github.com:minerllabs/minerl into…
MadcowD 7e426da
Finishing make mehtod.
MadcowD 3d9bd75
Gwetting multiagent to run.
MadcowD d59bd23
Fixing error at end of process watcher.
MadcowD b484657
Rewriting the syncmanager state machine.
MadcowD 95ed0bd
Updated the mixin!
MadcowD 0de72ea
Attempting to remove callback so that this will run.
MadcowD 57f6b45
Episodes running!
MadcowD 4821b24
Multiagent?
MadcowD a66e18f
Multiagent is working.~
MadcowD 089934e
Removing print statements and adding todos for render.
MadcowD 3e45819
Rewrote env and added multiagent viewers
MadcowD 936824d
Adding a launch utility
MadcowD c47152a
Supporting truncating instance lists.
MadcowD b8b109a
Privitized env specs & made fake env (#380)
MadcowD dc388b1
Made a fake env integration tests. Closes #380
MadcowD a9722e6
Closes #390. Added environment monitors (for the info dicitonary) and…
MadcowD 74befee
Removing achievments and structures (#397)
MadcowD 50597f4
Adding multiagent rendering!
MadcowD f90e9f4
Fixed the environments to return proper info indexing.
MadcowD 87e6137
Bug fixes
MadcowD a327028
Update Mindcraft code to integrate new MineRL refactor
brandonhoughton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
steps: | ||
- label: build minerl | ||
env: | ||
MINERL_DATA_ROOT: /tmp/minerl-data | ||
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64 | ||
command: | ||
- add-apt-repository -y ppa:openjdk-r/ppa | ||
- apt-get -y update | ||
- apt-get -y install openjdk-8-jdk | ||
- export PATH=$$JAVA_HOME/bin:$$PATH | ||
- java -version | ||
- ./download_minerl_data.sh | ||
- ./test_build_deploy.sh | ||
|
||
timeout_in_minutes: 15 | ||
agents: | ||
queue: rl-cpu-v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PYTHONPATH=.:$PYTHONPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
name: Build wheels 3 | ||
|
||
on: [push] #, pull_request] | ||
|
||
# todo: Support windows | ||
# todo: make new docker image which includes java | ||
# todo: get s3 upload to work. | ||
# todo: support sdist! | ||
|
||
jobs: | ||
build_wheels_linux: | ||
name: ${{ matrix.os }} ${{ matrix.pver }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04] #, windows-latest, macos-latest] | ||
pver: ["cp35*x86_64", "cp36*x86_64", "cp37*x86_64", "cp38*x86_64"] # Todo add 39. | ||
env: | ||
# build using the manylinux2014 image | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | ||
CIBW_BUILD: "${{ matrix.pver }}" | ||
CIBW_SKIP: cp27-* pp27-* | ||
CIBW_BEFORE_BUILD_LINUX: | | ||
yum install -y \ | ||
java-1.8.0-openjdk-devel | ||
# Why the fuck is there no headless-devel package like on debian! | ||
|
||
# Add the Java dependencies to the | ||
echo "$(/opt/python/cp37-cp37m/bin/pip show auditwheel | grep "Location:" | cut -d ':' -f2)/auditwheel/policy/policy.json" | xargs \ | ||
python -c "import sys; import json; import os; fname = sys.argv[1]; fread = open(fname, 'r'); obj = json.load(fread); fread.close(); print(obj[-1]); [o['lib_whitelist'].extend('libXcursor.so.1, libXfixes.so.3, libXi.so.6, libXrandr.so.2, libXtst.so.6, libXxf86vm.so.1, libawt.so, libawt_xawt.so, libjava.so, libjawt.so, libjvm.so, libncurses.so.5, libtinfo.so.5, libverify.so'.split(', ')) for o in obj]; print(obj[-1]['lib_whitelist']); fwrite = open(fname, 'w'); json.dump(obj, fwrite); fwrite.close(); fread = open(fname, 'r'); print(json.load(fread)[-1])" | ||
|
||
|
||
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel -v repair -w {dest_dir} {wheel}" | ||
CIBW_BEFORE_BUILD: pip install . | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Declare some variables | ||
id: vars | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
|
||
- uses: actions/setup-java@v1.3.0 # This is for MacOS and Windows | ||
with: | ||
java-version: '8' # The JDK version to make available on the path. | ||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk | ||
architecture: x64 # (x64 or x86) - defaults to x64 | ||
|
||
# TODO Run testing here! (Or we could run it in a different workflow.) | ||
|
||
|
||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install cibuildwheel==1.5.2 | ||
|
||
|
||
- name: Build wheels | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
- uses: shallwefootball/s3-upload-action@master | ||
with: | ||
aws_key_id: ${{ secrets.AWS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}} | ||
aws_bucket: ${{ secrets.AWS_MINERL_BUCKET }} | ||
source_dir: './wheelhouse' | ||
destination_dir: builds/${{ steps.vars.outputs.branch }}/${{ steps.vars.outputs.sha_short }}/ | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
|
||
- name: Declare some variables | ||
id: vars | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Build sdist | ||
run: python setup.py sdist | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
- uses: shallwefootball/s3-upload-action@master | ||
with: | ||
aws_key_id: ${{ secrets.AWS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}} | ||
aws_bucket: ${{ secrets.AWS_MINERL_BUCKET }} | ||
source_dir: './wheelhouse' | ||
destination_dir: builds/${{ steps.vars.outputs.branch }}/${{ steps.vars.outputs.sha_short }}/ | ||
|
||
|
||
|
||
# # upload_pypi: | ||
# # needs: [build_wheels, build_sdist] | ||
# # runs-on: ubuntu-latest | ||
# # # upload to PyPI on every tag starting with 'v' | ||
# # # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# # # alternatively, to publish when a GitHub Release is created, use the following rule: | ||
# # if: github.event_name == 'release' && github.event.action == 'published' | ||
# # steps: | ||
# # - uses: actions/download-artifact@v2 | ||
# # with: | ||
# # name: artifact | ||
# # path: dist | ||
|
||
# # - uses: pypa/gh-action-pypi-publish@master | ||
# # with: | ||
# # user: __token__ | ||
# # password: ${{ secrets.pypi_password }} | ||
# # To test: repository_url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
recursive-include projectname *.py | ||
include README | ||
include requirements.txt | ||
include LICENSE | ||
include LICENSE | ||
recursive-include minerl/env/Malmo/Minecraft/build/libs *.jar | ||
recursive-include minerl/env/Malmo/Minecraft/run/gradle/caches/minecraft * | ||
recursive-include minerl/env/Malmo/Minecraft/run/gradle/native * | ||
recursive-include minerl/env/Malmo/Schemas * | ||
recursive-include minerl/env/missions *.xml | ||
include minerl/env/Malmo/Minecraft/launchClient.sh | ||
include minerl/env/Malmo/Minecraft/options.txt | ||
include minerl/core/mc_constants.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Minecraft_</name> | ||
<comment>Project Minecraft_ created by Buildship.</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THIS SHOULD NOT BE MERGED!