-
Notifications
You must be signed in to change notification settings - Fork 78
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
development instructions are super confusing #113
Comments
@alexcos20 @ssallam let's start by first figuring out the most basic way to run the tests locally. What else is required to make this succeed? # 1st terminal
git clone https://github.com/oceanprotocol/barge
cd barge
./start_ocean.sh --no-dashboard
# 2nd terminal
tox @mariacarmina what do you get when you run this? |
I'm glad to see this as an issue 👍👍 |
So, I want tot test locally the tests from ocean.py. I updated the provider's version, then I run barge with the provider too, I wait a little and the I run in the second terminal (in ocean.py) tox and I received this error and some timeouts. |
This issue, and its related README file, are related to developers looking to improve ocean.py, vs simply use it.
I believe these the relevant issues that this ticket should be addressing.
This is a good idea. But outside the scope of this issue, since it's for developers simply using ocean.py. Go ahead and create that issue if you feel it's worth it:)
90%+ users of ocean.py are just that -- users. They're looking to improve ocean.py. The README is currently structured to help them onboard the fastest, and walk through each sub-step. Whereas people who want to learn how to improve ocean.py (including Testing part) get only a link to the developers.md file. This makes sense in terms of emphasis.
Remember, ocean.js has sub-READMEs for quickstarts, not in the main README. Same as ocean.py. They're what we agreed upon at the beginning of V3 work, and to me, still make lots of sense because they help a smooth onboarding. The ocean.py READMEs they evolved based on user feedback and pain, most recently via #85 and #89. For example helping the developer find test OCEAN, and help understand how config params work. So, putting everything into a single README would be a step backward. Let's avoid that, and focus on the problems that this issue raises, copied at the top of this comment, which are to improve onboarding for developers looking to improve ocean.py. BTW should we make a ticket to improve ocean.js README to help developers get test OCEAN, understand config params, etc?
|
Problem solved. When you update the barge, you need to delete the containers first: docker container rm $(docker ps -a -q). |
Note: @akshay-ap had made some great changes so far, so to help move briskly in master, I just merged them. |
I just merged in da350f3, which streamlines the flow further, to be barge-only. And it has a couple tweaks to avoid barge gotchas. |
Today I cleaned up the description, clarifying between (a) devs just using ocean.py and (b) devs working to improve ocean.py code itself (in developers.md). Turns out that (b) is in much better shape now. After many iterations by @akshay-ap and me. To handle (a), I reassigned the issue to myself. Now that we have a simple flow for developers, we can propagate things back to users. I plan to move the simple & marketplace quickstarts to first-thing in the README, both using local / barge. Users can then learn details about remote services after they get these quick wins on local. |
WIP to handle (a) is in this branch. |
For #113, change quickstarts to successfully go through "simple" and "marketplace" quickstarts in a streamlined fashion as possible. It's ok to use barge here.
(a) is done via commit a246fe4 |
Note: (a) would be better yet with the new issue I just reported: #200. "For users of ocean-lib with ganache, getting fake OCEAN adds friction". Beyond scope of this ticket. And we can do much better yet with readthedocs style documentation. MultiRepo#80. Beyond scope of this ticket. @kremalicious are you satisfied for this ticket now? |
Problem
The current instructions provide a terrible onboarding experience for both (a) devs just using ocean.py and (b) devs working to improve ocean.py code itself (in developers.md).
Use case: I'm an external developer and want to do a tiny code change and want to test my change locally. developers.md tells me to clone 3 repos and in the end no tests can run locally.
For testing flow, compare with this for inspiration https://github.com/oceanprotocol/ocean.js#-testing.
This needs:
For developers just using ocean.py (via import):
For developers working to improve the ocean.py code itself:
barge
and not manual cloning/copyingtox
on Travis,pytest
locally, why the difference?)Related: #181: 'example' folder doesn't do much; either delete or flesh out
The text was updated successfully, but these errors were encountered: