{"id":22574893,"url":"https://github.com/thoth-station/buildlog-parser","last_synced_at":"2025-04-10T16:11:22.626Z","repository":{"id":43099686,"uuid":"259258668","full_name":"thoth-station/buildlog-parser","owner":"thoth-station","description":"Parse OpenShift's s2i build log into its structured representation with all the metadata available","archived":false,"fork":false,"pushed_at":"2023-05-29T21:34:07.000Z","size":248,"stargazers_count":1,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T13:51:24.863Z","etag":null,"topics":["hacktoberfest","openshift","parsers","python","python3","s2i","s2i-python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoth-station.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-04-27T08:55:10.000Z","updated_at":"2024-01-12T18:12:59.000Z","dependencies_parsed_at":"2023-01-28T23:00:33.546Z","dependency_job_id":null,"html_url":"https://github.com/thoth-station/buildlog-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"thoth-station/template-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fbuildlog-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fbuildlog-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fbuildlog-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fbuildlog-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoth-station","download_url":"https://codeload.github.com/thoth-station/buildlog-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248251020,"owners_count":21072685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","openshift","parsers","python","python3","s2i","s2i-python"],"created_at":"2024-12-08T03:08:21.535Z","updated_at":"2025-04-10T16:11:22.607Z","avatar_url":"https://github.com/thoth-station.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Thoth's build log parser\n------------------------\n\nParse build logs out of OpenShift's Python Source-To-Image (s2i) builds that use\n`Thoth s2i container images \u003chttps://github.com/thoth-station/s2i-thoth\u003e`_.\n\nThis tool finds structure in an unstructured build logs of `OpenShift's s2i\n\u003chttps://docs.openshift.com/container-platform/3.6/creating_images/s2i.html\u003e`_\nand produces a JSON document describing all the actions taken during an\nOpenShift s2i build process together with additional metadata that can be\nobtained purely from OpenShift's build logs.\n\nThe prerequisite for using this tool is to use `Thoth's Python s2i container\nimages \u003chttps://github.com/thoth-station/micropipenv\u003e`_ that use Thoth as a\nrecommendation engine for Python software stacks and `micropipenv\n\u003chttps://github.com/thoth-station/micropipenv\u003e`_ for installing dependencies.\nThe build logs produced during s2i builds are still user friendly when directly\nbrowsing them in an OpenShift cluster, but can be used for data mining and\nadditional analysis (e.g. build breaking package).\n\nUsage\n=====\n\nPoint this tool to a log obtained from the cluster:\n\n.. code-block:: console\n\n  # Obtain logs using:\n  #   oc logs user-api-469-build -n thoth-test-core \u003e log.txt\n  # or for the most recent build:\n  #   oc logs -f bc/user-api -n thoth-test-core \u003e log.txt\n  thoth-buildlog-parser parse --input log.txt\n\nAnd that's it. The tool will produce a JSON document describing the build process\nwith all the metadata.\n\n\nExample input \u0026 output\n======================\n\nYou can find some example inputs and example outputs in ``tests/data/`` directory.\n\n\nInstallation\n============\n\nThis tool is packages and published on PyPI so you can issue one of the following commands to install it:\n\n.. code-block:: console\n\n  pip install thoth-buildlog-parser\n  pipenv install thoth-buildlog-parser\n\nAfter installing this tool, a new command should be available:\n\n.. code-block:: console\n\n  thoth-buildlog-parser --help\n\n\nRunning from Git\n================\n\nTo run this tool directly from the Git repo:\n\n.. code-block::\n\n  git clone git@github.com:thoth-station/buildlog-parser.git  # or use https\n  cd buildlog-parser\n  pipenv install --dev\n  PYTHONPATH=. pipenv run python3 ./thoth-buildlog-parser parse --help\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-station%2Fbuildlog-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoth-station%2Fbuildlog-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-station%2Fbuildlog-parser/lists"}