Skip to content
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

RO tests #682

Merged
merged 14 commits into from Oct 18, 2019
Merged

RO tests #682

merged 14 commits into from Oct 18, 2019

Conversation

bitProfessor
Copy link
Collaborator

  1. DEXBot/tests/strategies/relative_orders/conftest.py
  2. DEXBot/tests/strategies/relative_orders/test_relative_orders.py
  3. DEXBot/tests/strategies/relative_orders/test_relative_orders_unittests.py
  4. DEXBot/tests/strategies/relative_orders/test_single_account_multiple_workers_unittests.py

bitphage and others added 9 commits August 23, 2019 23:04
If custom expiration is set and it's too small, it makes a bad condition
for worker with cp_from_last_trade active. So just make sure we have
default expiration when cp_from_last_trade is used.
* if worker newly created, use market center price
* if worker is not new, always try to find own last trade even on startup

Closes: Codaone#672
Don't limit to 1 op, get all ops and iterate to find first match. This
is a preparation to run multiple workers on same account.
@PermieBTS
Copy link
Collaborator

Better to merge into devel rather than master until these tests have been reviewed

@bitProfessor
Copy link
Collaborator Author

bitProfessor commented Sep 6, 2019 via email

@bitphage bitphage added this to Backlog in Relative Orders via automation Sep 6, 2019
@bitphage bitphage changed the base branch from master to devel September 6, 2019 12:52
Relative Orders automation moved this from Backlog to Done Sep 7, 2019
@PermieBTS PermieBTS reopened this Sep 7, 2019
Relative Orders automation moved this from Done to In progress Sep 7, 2019
@PermieBTS
Copy link
Collaborator

PermieBTS commented Sep 7, 2019

Why close?

It's been edited to merge to devel now, vvk altered it 👍

@bitfag bitfag changed the base branch from master to devel 21 hours ago

@bitphage
Copy link
Collaborator

bitphage commented Sep 7, 2019

@bitProfessor no need to open-close multiple PRs. A good workflow is:

  1. create a branch to work on a feature
  2. do PR once the feature is ready
  3. forgot something? Add more commits into the same branch
  4. Avoid force pushes after opening a PR (exception: if you 100% know if nobody else working on it, and you really need to adjust past commits)

@bitProfessor
Copy link
Collaborator Author

bitProfessor commented Sep 7, 2019 via email

@PermieBTS
Copy link
Collaborator

PermieBTS commented Sep 13, 2019

@joelvai when you get back from vacation can we have this merged asap please :)

With the aim to release Single Account Multiple Workers soon after when tests confirm the feature is satisfactory

@joelvai
Copy link
Collaborator

joelvai commented Sep 27, 2019

@bitProfessor make necessary fixes so that the Travis build passes and there appears to be two functions with same name test_correct_asset_names.

@bitProfessor
Copy link
Collaborator Author

bitProfessor commented Sep 27, 2019 via email

@bitphage
Copy link
Collaborator

@joelvai I would like to review/improve these tests before merging.

@PermieBTS
Copy link
Collaborator

@bitfag are you able to review these tests by tomorrow evening? Or ASAP to be ready in good time for @joelvai to merge on friday?

@bitphage
Copy link
Collaborator

I'm starting to work on it. I'll post time estimations later on.

@bitphage
Copy link
Collaborator

These tests are partially copypaste from KOTH tests, but RO strategy requires testing of different things. Overall coverage is too surfaced, more deep coverage is needed. Huge refactor needed. At least several workdays are needed.

@PermieBTS
Copy link
Collaborator

Hmm ok thanks @bitfag

If you don't finish them in time for @joelvai to merge on friday we can re-assess

@bitphage
Copy link
Collaborator

bitphage commented Oct 5, 2019

@joelvai this is ready for review, I also merged here my ro-refactor branch because it contains the fixes needed to run RO tests.

@joelvai joelvai merged commit 4da6f7b into Codaone:devel Oct 18, 2019
Relative Orders automation moved this from In progress to Done Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants