Giter Club home page Giter Club logo

ya-httpx-client's Issues

goth tests

Currently goth tests are almost ready, but there are few small things missing.

PR is here: #16

ya-httpx-client installation fails

Name: blue
yagna version: 0.8.0
OS+lang+version (if applicable): linux, python 3.6.12

$ pip3 install .[requestor]
Processing /home/blue/ya-httpx-client
  Preparing metadata (setup.py) ... done
Collecting yapapi-service-manager@ git+https://github.com/golemfactory/yapapi-service-manager.git
  Cloning https://github.com/golemfactory/yapapi-service-manager.git to /tmp/pip-install-vwps1gzg/yapapi-service-manager_3010580acb044d8f8ef787a9acadd1bd
  Running command git clone --filter=blob:none -q https://github.com/golemfactory/yapapi-service-manager.git /tmp/pip-install-vwps1gzg/yapapi-service-manager_3010580acb044d8f8ef787a9acadd1bd
  Resolved https://github.com/golemfactory/yapapi-service-manager.git to commit 5e9b2aa3002d830d040681b06b1c78e5c764e21d
  Preparing metadata (setup.py) ... done
Collecting httpx==0.18.2
  Using cached httpx-0.18.2-py3-none-any.whl (76 kB)
Collecting httpcore<0.14.0,>=0.13.3
  Using cached httpcore-0.13.7-py3-none-any.whl (58 kB)
Collecting async-generator
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting rfc3986[idna2008]<2,>=1.3
  Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting certifi
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting sniffio
  Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting yapapi@ git+https://[email protected]/golemfactory/[email protected]
  Cloning https://****@github.com/golemfactory/yapapi.git (to revision b0.7) to /tmp/pip-install-vwps1gzg/yapapi_4e6bd9b303354c78bdc76f8e4b804724
  Running command git clone --filter=blob:none -q 'https://****@github.com/golemfactory/yapapi.git' /tmp/pip-install-vwps1gzg/yapapi_4e6bd9b303354c78bdc76f8e4b804724
  Running command git checkout -b b0.7 --track origin/b0.7
  Switched to a new branch 'b0.7'
  Branch 'b0.7' set up to track remote branch 'b0.7' from 'origin'.
^CERROR: Operation cancelled by user

Remove deprecations & improve the interface

Since work_context/script decoupling in yapapi, we could do just

session.add_service(
    http://some_url,
    ...,
    start_commands = [
        Run(/something/),
    ]
)

This would be clean & convenient.
Also, this part either way needs reworking to fix the deprecations (it can't be done in a really easy way).

two instances when a single one was ordered

  1. Have a cluster with size == 1
  2. Wait for
[2021-09-28T12:29:32.908+0200 WARNING yapapi.services] Instance failed when starting, trying to create another one...
Replacing service on mf - it is failed

in logs. (I've no idea how to cause this, sorry).
3. Observe two instances created instead of one.

I think we want respawn_unstarted_instances=False in golem.run_service, but maybe this would be worth some investigation?

Python 3.6 support

This line:

from contextlib import asynccontextmanager

in ya_httpx_client.session fails on python 3.6. Maybe there are also some other lines that fail as well.

Either:
A) fix this, so python3.6 works
B) mention in README that higher python is required

Consider: move to `yapapi.contrib`

WHY? Because this just fits there.
WHAT?

  • use (internally) yapapi.contrib.service.http_proxy
  • preserve the cool interface
  • close this repo

goth tests of file-serialization-based communication

Currently we have tests only for VPN.
This shouldn't be hard.
Also this wouldn't be really useful, because why would anyone use file serialization? But either way, if there's such option, it would be nice to test it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.