GithubHelp home page GithubHelp logo

getslash / backslash-python Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 7.0 343 KB

Client library for the backslash test reporting service

Home Page: https://getslash.github.io

License: Other

Makefile 0.47% Python 99.53%

backslash-python's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

backslash-python's Issues

BackslashPlugin.error_added fails on SyntaxError

Sentry link: http://sentry.infinidat.com/sentry/slash_infinidat-backslash-plug/issues/5114/

SyntaxError: EOL while scanning string literal (<unknown>, line 1)
  File "backslash/contrib/slash_plugin.py", line 49, in new_func
    return func(self, *args, **kwargs)
  File "backslash/contrib/slash_plugin.py", line 373, in error_added
    'traceback': distill_slash_traceback(error), 'exception_attrs': getattr(error, 'exception_attributes', NOTHING)}
  File "backslash/contrib/utils.py", line 30, in distill_slash_traceback
    commands = ast.literal_eval(frame['locals']['In']['value'])
  File "python3.6/ast.py", line 48, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)

Backslash keep-alive thread terminated after slash's TerminatedException

...
slash.exceptions.TerminatedException: Terminated by signal

[2018-08-15 19:34:19.319511] ERROR:backslash.contrib.keepalive_thread: Quitting keepalive thread due to exception
Traceback (most recent call last):
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/backslash/contrib/keepalive_thread.py", line 24, in run
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/backslash/session.py", line 28, in send_keepalive
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/backslash/api.py", line 85, in call_function
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/requests/sessions.py", line 559, in post
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/raven/breadcrumbs.py", line 326, in send
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/requests/adapters.py", line 412, in send
  File "/home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/requests/adapters.py", line 227, in cert_verify
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /home/jenkins/jenkins/workspace/integ-qa/qa_bundle/env/lib/python3.6/site-packages/certifi/cacert.pem
[2018-08-15 19:34:19.323573] DEBUG:backslash.contrib.keepalive_thread: Backslash keepalive thread terminated

Backslash link: https://backslash.infinidat.com/#/sessions/ca1272b8-a095-11e8-a05d-005056976407_0/tests/ca1272b8-a095-11e8-a05d-005056976407_0_2

Log link: http://scotty.infinidat.com/#/beams/2964384?tag=ca1272b8-a095-11e8-a05d-005056976407_0

It reproduced more than once this week. Client version: 2.36.1.

Report events in the background

  • Detect existence of necessary APIs, fall back to sync mode
  • Implement a background queue
  • Correct all time-sensitive APIs to report original time
  • Implement proxy objects for tests and sessions
  • Need to sync with the server upon initial discovery about server time
  • Support multiple Backslash instances at once

Location of config.json should be configurable

Currently, config.json resides under the user's home directory. We'd like to be able to configure its location and specifically, have it reside under the project's root. We're running tests from a single remote machine, and users run the tests under the same Unix user, so we'd like to be able to differentiate their sessions in backslash.

Thanks!

[develop branch] slash plugin's session start raises UnboundLocalError

[2017-06-08 20:21:24.805104] DEBUG:stokado.plugins.backslash_plugin: Exception caught while reporting to Backslash. Shutting down Backslash plugin
Traceback (most recent call last):
  File "/home/ayalas/src/github/backslash-python/backslash/contrib/slash_plugin.py", line 48, in new_func
    return func(self, *args, **kwargs)
  File "/home/ayalas/src/github/backslash-python/backslash/contrib/slash_plugin.py", line 114, in session_start
    child_id=child_id,
UnboundLocalError: local variable 'child_id' referenced before assignment

Installation from pip for python3.5 is broken

pip install -i https://pypi.python.org/simple backslash
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting backslash
  Could not fetch URL https://pypi.python.org/simple/backslash/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement backslash (from versions: )
No matching distribution found for backslash

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.