Git Product home page Git Product logo

github-circleci-trigger's Introduction

CI (Build) OpenSSF Scorecard

Slicer, or 3D Slicer, is a free, open source software package for visualization and image analysis.

3D Slicer is natively designed to be available on multiple platforms, including Windows, Linux and macOS.

Build instructions for all platforms are available on the Slicer wiki:

For Slicer community announcements and support, visit:

For documentation, tutorials, and more information, please see:

See License.txt for information on using and contributing.

github-circleci-trigger's People

Contributors

jcfr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-circleci-trigger's Issues

On tag pushed: Fix `'NoneType' object has no attribute 'lstrip'` because of `branch = data['base_ref'].lstrip('refs/heads/')`

2017-10-18T10:06:41.242755+00:00 app[web.1]: [2017-10-18 10:06:41,241] ERROR in app: Exception on /postreceive [POST]
2017-10-18T10:06:41.242776+00:00 app[web.1]: Traceback (most recent call last):
2017-10-18T10:06:41.242779+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
2017-10-18T10:06:41.242780+00:00 app[web.1]:     response = self.full_dispatch_request()
2017-10-18T10:06:41.242782+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
2017-10-18T10:06:41.242783+00:00 app[web.1]:     rv = self.handle_user_exception(e)
2017-10-18T10:06:41.242783+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
2017-10-18T10:06:41.242784+00:00 app[web.1]:     reraise(exc_type, exc_value, tb)
2017-10-18T10:06:41.242784+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
2017-10-18T10:06:41.242785+00:00 app[web.1]:     rv = self.dispatch_request()
2017-10-18T10:06:41.242786+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
2017-10-18T10:06:41.242787+00:00 app[web.1]:     return self.view_functions[rule.endpoint](**req.view_args)
2017-10-18T10:06:41.242788+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/github_webhook/webhook.py", line 73, in _postreceive
2017-10-18T10:06:41.242789+00:00 app[web.1]:     hook(data)
2017-10-18T10:06:41.242790+00:00 app[web.1]:   File "/app/github-circleci-trigger.py", line 60, in with_ip_check
2017-10-18T10:06:41.242791+00:00 app[web.1]:     return func(*args, **kwargs)
2017-10-18T10:06:41.242791+00:00 app[web.1]:   File "/app/github-circleci-trigger.py", line 134, in on_push
2017-10-18T10:06:41.242792+00:00 app[web.1]:     branch = data['base_ref'].lstrip('refs/heads/')
2017-10-18T10:06:41.242793+00:00 app[web.1]: AttributeError: 'NoneType' object has no attribute 'lstrip'

Payload:

{
  "ref": "refs/tags/v4.8.0",
  "before": "0000000000000000000000000000000000000000",
  "after": "8993a98935c1586e9445ac7354343ae959ebfc36",
  "created": true,
  "deleted": false,
  "forced": false,
  "base_ref": null,
  "compare": "https://github.com/Slicer/Slicer/compare/v4.8.0",
  "commits": [

  ],
  "head_commit": {
    "id": "944c364a6dd95f1e57dca9ee6b5e1878951de184",
    "tree_id": "d32e3925b43d2e5766b7cb7e849463d24bcd83b8",
    "distinct": true,
    "message": "ENH: Slicer 4.8.0\n\ngit-svn-id: http://svn.slicer.org/Slicer4/trunk@26489 3bd1e089-480b-0410-8dfb-8563597acbee",
    "timestamp": "2017-10-18T09:11:33Z",
    "url": "https://github.com/Slicer/Slicer/commit/944c364a6dd95f1e57dca9ee6b5e1878951de184",
    "author": {
      "name": "jcfr",
      "email": "jcfr@3bd1e089-480b-0410-8dfb-8563597acbee",
      "username": "jcfr"
    },
    "committer": {
      "name": "jcfr",
      "email": "jcfr@3bd1e089-480b-0410-8dfb-8563597acbee",
      "username": "jcfr"
    },
    "added": [

    ],
    "removed": [

    ],
    "modified": [
      "CMakeLists.txt",
      "Utilities/Scripts/SlicerWizard/__version__.py"
    ]
  },
  "repository": {
    "id": 2006302,
    "name": "Slicer",
    "full_name": "Slicer/Slicer",
    "owner": {
      [...]
    },
    "private": false,
    "html_url": "https://github.com/Slicer/Slicer",
    "description": "Multi-platform, free open source software for visualization and image computing.",
    "fork": false,
    "url": "https://github.com/Slicer/Slicer",
    "forks_url": "https://api.github.com/repos/Slicer/Slicer/forks",
    "keys_url": "https://api.github.com/repos/Slicer/Slicer/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/Slicer/Slicer/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/Slicer/Slicer/teams",
    "hooks_url": "https://api.github.com/repos/Slicer/Slicer/hooks",
    "issue_events_url": "https://api.github.com/repos/Slicer/Slicer/issues/events{/number}",
    "events_url": "https://api.github.com/repos/Slicer/Slicer/events",
    "assignees_url": "https://api.github.com/repos/Slicer/Slicer/assignees{/user}",
    "branches_url": "https://api.github.com/repos/Slicer/Slicer/branches{/branch}",
    "tags_url": "https://api.github.com/repos/Slicer/Slicer/tags",
    "blobs_url": "https://api.github.com/repos/Slicer/Slicer/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/Slicer/Slicer/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/Slicer/Slicer/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/Slicer/Slicer/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/Slicer/Slicer/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/Slicer/Slicer/languages",
    "stargazers_url": "https://api.github.com/repos/Slicer/Slicer/stargazers",
    "contributors_url": "https://api.github.com/repos/Slicer/Slicer/contributors",
    "subscribers_url": "https://api.github.com/repos/Slicer/Slicer/subscribers",
    "subscription_url": "https://api.github.com/repos/Slicer/Slicer/subscription",
    "commits_url": "https://api.github.com/repos/Slicer/Slicer/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/Slicer/Slicer/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/Slicer/Slicer/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/Slicer/Slicer/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/Slicer/Slicer/contents/{+path}",
    "compare_url": "https://api.github.com/repos/Slicer/Slicer/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/Slicer/Slicer/merges",
    "archive_url": "https://api.github.com/repos/Slicer/Slicer/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/Slicer/Slicer/downloads",
    "issues_url": "https://api.github.com/repos/Slicer/Slicer/issues{/number}",
    "pulls_url": "https://api.github.com/repos/Slicer/Slicer/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/Slicer/Slicer/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/Slicer/Slicer/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/Slicer/Slicer/labels{/name}",
    "releases_url": "https://api.github.com/repos/Slicer/Slicer/releases{/id}",
    "deployments_url": "https://api.github.com/repos/Slicer/Slicer/deployments",
    "created_at": 1309955238,
    "updated_at": "2017-10-09T08:32:35Z",
    "pushed_at": 1508321300,
    "git_url": "git://github.com/Slicer/Slicer.git",
    "ssh_url": "[email protected]:Slicer/Slicer.git",
    "clone_url": "https://github.com/Slicer/Slicer.git",
    "svn_url": "https://github.com/Slicer/Slicer",
    "homepage": "http://www.slicer.org",
    "size": 436855,
    [...]
    "master_branch": "master",
    "organization": "Slicer"
  },
  "pusher": {
    "name": "jcfr",
    "email": "[email protected]"
  },
  "organization": {
    [...]
  },
  "sender": {
    [...]
  }
}

Fix KeyError: 'hooks'

2017-10-18T23:01:07.829717+00:00 app[web.1]: Traceback (most recent call last):
2017-10-18T23:01:07.829721+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
2017-10-18T23:01:07.829722+00:00 app[web.1]:     response = self.full_dispatch_request()
2017-10-18T23:01:07.829722+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
2017-10-18T23:01:07.829723+00:00 app[web.1]:     rv = self.handle_user_exception(e)
2017-10-18T23:01:07.829724+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
2017-10-18T23:01:07.829724+00:00 app[web.1]:     reraise(exc_type, exc_value, tb)
2017-10-18T23:01:07.829725+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
2017-10-18T23:01:07.829726+00:00 app[web.1]:     rv = self.dispatch_request()
2017-10-18T23:01:07.829726+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
2017-10-18T23:01:07.829727+00:00 app[web.1]:     return self.view_functions[rule.endpoint](**req.view_args)
2017-10-18T23:01:07.829728+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/github_webhook/webhook.py", line 73, in _postreceive
2017-10-18T23:01:07.829729+00:00 app[web.1]:     hook(data)
2017-10-18T23:01:07.829729+00:00 app[web.1]:   File "/app/github-circleci-trigger.py", line 47, in with_ip_check
2017-10-18T23:01:07.829730+00:00 app[web.1]:     hook_blocks = requests.get('https://api.github.com/meta').json()['hooks']
2017-10-18T23:01:07.829731+00:00 app[web.1]: KeyError: 'hooks'

module 'flask.logging' has no attribute 'PROD_LOG_FORMAT'

Following transition to Python 3.10, the following is reported:

2022-08-14T22:39:24.090636+00:00 heroku[web.1]: State changed from starting to up
2022-08-14T22:45:06.735106+00:00 app[web.1]: [2022-08-14 22:45:06,734] ERROR in app: Exception on /postreceive [POST]
2022-08-14T22:45:06.735114+00:00 app[web.1]: Traceback (most recent call last):
2022-08-14T22:45:06.735115+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
2022-08-14T22:45:06.735115+00:00 app[web.1]: response = self.full_dispatch_request()
2022-08-14T22:45:06.735116+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/flask/app.py", line 1812, in full_dispatch_request
2022-08-14T22:45:06.735117+00:00 app[web.1]: self.ensure_sync(func)()
2022-08-14T22:45:06.735117+00:00 app[web.1]: File "/app/github-circleci-trigger.py", line 25, in setup_logging
2022-08-14T22:45:06.735117+00:00 app[web.1]: handler.setFormatter(logging.Formatter(flask_logging.PROD_LOG_FORMAT))
2022-08-14T22:45:06.735118+00:00 app[web.1]: AttributeError: module 'flask.logging' has no attribute 'PROD_LOG_FORMAT'

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.