Skip to content

Weekly update for staging - #452

Merged
slinlee merged 8 commits into
stagingfrom
dev
Oct 20, 2021
Merged

Weekly update for staging#452
slinlee merged 8 commits into
stagingfrom
dev

Conversation

@slinlee

@slinlee slinlee commented Oct 20, 2021

Copy link
Copy Markdown
Contributor

No description provided.

slinlee and others added 8 commits October 14, 2021 12:39
* 3.7 compat

* black linting

* typo
New build-arg is required.
* Add Pre-commit to project

To run:
- pip install -r nativerl/python/requirements-dev.txt
- pre-commit install

When you create a commit it will automatically lint and format your code.

Don't autoflake __init__.py files

* Add github workflow to check python code in PR

Adapt github flow for nativerl

Add pytest to dev requirements

Enable pytests on git commits

* Ignore venv folder

* Apply pre-commit recommendations

- Sort imports in python files
- check for newline at end of file
- Format markdown
- Apply Black formatting for Python

* Update tests for `get_callbacks()`

* Update tests for `get_scheduler()`

* Add `getRewardTerms()` to cartpole example

This was the minimum to get it to pass tests. I don't know if it will train.

* Update test for stopper

* Lock aioredis version to compatible version

* Create different folders for the training auto tests

Otherwise they fail the second time you run them

* Set up github check to fail fast

- pre-commit before dependencies
- unit tests before integration tests

* Skip flake for now for known issues

I filed two github issues to follow-up on.

* Get test_policy_serving to pass

Queries a policy server hosted by the webapp that was trained on the AnyLogic model.

- Adapt mouse_and_cheese to match anylogic observations
  This will let us use the current policy server.

- Move policy serving to integration tests

* WIP - get test training to pass for Pathmind Simulations

* WIP - xfail tests for policy serving and training

- Policy serving tests depend on an update in pathmind-api

Switch to the right dir to run pytests

fixup - change to right directory for training tests

fixup - more tests expected to pass now

* Add basic instructions to README

* Update README.md for specific rllib version
Also enables the test again.

Fixes #444
* Remove noqa in offending file

* Replace `is` with `==`
content by @brettskymind
@slinlee
slinlee merged commit e8ca512 into staging Oct 20, 2021
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.

2 participants