{"id":21919792,"url":"https://github.com/kernelci/logspec","last_synced_at":"2025-10-09T15:30:51.015Z","repository":{"id":262789862,"uuid":"888352063","full_name":"kernelci/logspec","owner":"kernelci","description":"The log spectrometer","archived":false,"fork":false,"pushed_at":"2025-06-05T11:58:57.000Z","size":2073,"stargazers_count":2,"open_issues_count":6,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-05T12:37:15.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernelci.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-14T08:52:10.000Z","updated_at":"2025-06-05T11:58:59.000Z","dependencies_parsed_at":"2025-01-16T15:31:58.625Z","dependency_job_id":"12983406-fb3a-4771-b6e5-bdfd7b9365cf","html_url":"https://github.com/kernelci/logspec","commit_stats":null,"previous_names":["kernelci/logspec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kernelci/logspec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Flogspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Flogspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Flogspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Flogspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelci","download_url":"https://codeload.github.com/kernelci/logspec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Flogspec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001649,"owners_count":26083147,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-28T20:10:58.661Z","updated_at":"2025-10-09T15:30:46.009Z","avatar_url":"https://github.com/kernelci.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logspec: the test log spectrometer\n\n\u003e **_Last modified:_** Jun 13, 2024\n\n\u003e **_NOTE:_** Work in progress. The interface and the output are still\n\u003e expected to change.\n\nlogspec is a context-sensitive parser for output logs, specifically\ntargeted at test output logs but usable on any kind of log.\n\nThe purpose of this tool is to extract structured data from a log to\nhighlight the interesting parts of it[^1] and to make that information\neasy to post-process and store in a database for future reference.\n\n## Usage\n\nlogspec expects a log file to parse and a suitable parsing model to use\nfor the file. These models are defined as finite state machines in\n[parser_defs.yaml](parser_defs.yaml) by default:\n\n    ./logspec.py tests/logs/kbuild/kbuild_001.log kbuild\n\nwhere `tests/logs/kbuild/kbuild_001.log` is the file to parse and\n`kbuild` is the parser to use for this type of log.\n\nBy default, it'll print the extracted data as JSON:\n\n    {\n        \"errors\": [\n            {\n                \"error_type\": \"Compiler error\",\n                \"location\": \"1266:3\",\n                \"script\": \"scripts/Makefile.build:244\",\n                \"src_file\": \"drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c\",\n                \"target\": \"drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.o\"\n            }\n        ]\n    }\n\n\"Hidden\" fields aren't printed unless the `--json-full` flag is\nused. This same example looks like this with `--json-full` enabled:\n\n    {\n        \"_match_end\": 693999,\n        \"errors\": [\n            {\n                \"_report\": \"drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:1266:3: error: label at end of compound statement\\n 1266 |   default:\\n      |   ^~~~~~~\\n  CC [M]  drivers/net/wireless/marvell/mwifiex/ie.o\\n\",\n                \"error_type\": \"Compiler error\",\n                \"location\": \"1266:3\",\n                \"script\": \"scripts/Makefile.build:244\",\n                \"src_file\": \"drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c\",\n                \"target\": \"drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.o\"\n            }\n        ]\n    }\n\nTo use a different yaml file for parser specifications, use the `-d\n(--parser-defs)` argument.\n\n## Installation\n\nTo install logspec as a library, run:\n\n    pip install .\n\n## Tests\n\nTo run the sanity and coverage tests, run:\n\n    ./run_tests.sh\n\nTo get the output in TAP format, append the `--tap` option.\n\n## Coverage\n\nSupport for different types of logs will be added incrementally. You can\ncheck the current coverage support and the types of logs currently\nsupported in [tests/logs/index.txt](tests/logs/index.txt).\n\n---\n\n[^1]: according to the specified parsing model\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Flogspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelci%2Flogspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Flogspec/lists"}