Giter VIP home page Giter VIP logo

frambo's People

Contributors

dhodovsk avatar jpopelka avatar lbarcziova avatar phracek avatar rpitonak avatar tomastomecek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

frambo's Issues

Metod for sending events to sentry

For cases we want to report something without trace-backing the bot.

Inspiration:

client = raven.Client(dsn, install_logging_hook=True)
client.capture(event_type, tags=tags, fingerprint=fingerprint, **kwargs)

Copy pasted from internal Gitlab (reported by @dhodovsk )

src.fedoraproject.org does not need PAGURE_PORT

betka bot clones dist-git repositories by clone SSH URL.
For src.osci.redhat.com we use PAGURE_PORT.
But src.fedoraproject.org does not use it.

https://github.com/user-cont/frambo/blob/master/frambo/pagure.py#L4

The Pull request which fixes it will follow soon.

I would suggest, in case of get_from_frambo_config("pagure", "port") fails with KeyError, then initiated as PAGURE_PORT = ""

See configuration file for pagure.io https://github.com/user-cont/frambo/blob/master/frambo/data/conf.d/config.yml#L12

try:
   PAGURE_PORT = get_from_frambo_config("pagure", "port")
except ValueError:
  PAGURE_PORT = ""

See betka output:

betka_1      |   File "/usr/local/lib/python3.7/site-packages/betka/core.py", line 18, in <module>
betka_1      |     from frambo.pagure import PAGURE_HOST, PAGURE_PORT, PAGURE_URL
betka_1      |   File "/usr/local/lib/python3.7/site-packages/frambo/pagure.py", line 4, in <module>
betka_1      |     PAGURE_PORT = get_from_frambo_config("pagure", "port")
betka_1      |   File "/usr/local/lib/python3.7/site-packages/frambo/config.py", line 58, in get_from_frambo_config
betka_1      |     raise ValueError(f"{module}:{key} not set in {CONFIG_DIR / 'config.yml'}")
betka_1      | ValueError: Couldn't import 'tasks': pagure:port not set in /usr/local/lib/python3.7/site-packages/frambo/data/conf.d/config.yml

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.