{"id":26163847,"url":"https://github.com/xarray-contrib/issue-from-pytest-log","last_synced_at":"2025-04-14T14:41:31.852Z","repository":{"id":62173744,"uuid":"555368081","full_name":"xarray-contrib/issue-from-pytest-log","owner":"xarray-contrib","description":"create issues from pytest-reportlog files","archived":false,"fork":false,"pushed_at":"2024-04-19T12:28:28.000Z","size":30,"stargazers_count":10,"open_issues_count":3,"forks_count":3,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-04-24T16:23:56.275Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xarray-contrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-10-21T12:49:20.000Z","updated_at":"2024-07-10T06:03:32.130Z","dependencies_parsed_at":"2023-02-12T11:15:54.329Z","dependency_job_id":"ad200ed1-8d9a-4aae-bac8-aa15e2c05279","html_url":"https://github.com/xarray-contrib/issue-from-pytest-log","commit_stats":{"total_commits":39,"total_committers":4,"mean_commits":9.75,"dds":0.641025641025641,"last_synced_commit":"831733a1bb898c50fcb5b5d2ab483a13df4e09fd"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fissue-from-pytest-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fissue-from-pytest-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fissue-from-pytest-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fissue-from-pytest-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xarray-contrib","download_url":"https://codeload.github.com/xarray-contrib/issue-from-pytest-log/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898475,"owners_count":21179783,"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":[],"created_at":"2025-03-11T14:53:18.317Z","updated_at":"2025-04-14T14:41:31.819Z","avatar_url":"https://github.com/xarray-contrib.png","language":"Python","readme":"# issue-from-pytest-log\n\nCreate an issue for failed tests from a [pytest-reportlog](https://github.com/pytest-dev/pytest-reportlog) file or update an existing one if it already exists.\n\nHow this works:\n\n1. `pytest-reportlog` writes a complete and machine-readable log of failed tests.\n2. The action extracts the failed tests and creates a report while making sure that it fits into the character limits of github issue forms.\n3. The action looks for existing open issues with the configured title and label\n   a. if one exists: replace the old description with the report\n   b. if there is none: open a new issue and insert the report\n\n## Usage\n\nTo use the `issue-from-pytest-log` action in workflows, simply add a new step:\n\n```yaml\njobs:\n  my-job:\n    ...\n    strategy:\n      fail-fast: false\n      ...\n\n    ...\n\n    - uses: actions/setup-python@v4\n      with:\n        python-version: \"3.11\"\n        cache: pip\n\n    ...\n\n    - run: \u003c\n        pip install --upgrade pytest-reportlog\n\n    ...\n\n    - run: \u003c\n        pytest --report-log pytest-log.jsonl\n\n    ...\n\n    - uses: xarray-contrib/issue-from-pytest-log@main\n      if: |\n        failure()\n        \u0026\u0026 ...\n      with:\n        log-path: pytest-log.jsonl\n```\n\nSee [this repository](https://github.com/keewis/reportlog-test/issues) for example issues. For more realistic examples, see\n\n- `xarray` ([workflow](https://github.com/pydata/xarray/blob/main/.github/workflows/upstream-dev-ci.yaml), [example issue](https://github.com/pydata/xarray/issues/6197))\n- `dask` ([workflow](https://github.com/dask/dask/blob/main/.github/workflows/upstream.yml), [example issue](https://github.com/dask/dask/issues/10089))\n\n## Options\n\n### log path\n\nrequired.\n\nUse `log-path` to specify where the output of `pytest-reportlog` is.\n\n### issue title\n\noptional. Default: `⚠️ Nightly upstream-dev CI failed ⚠️`\n\nIn case you don't like the default title for new issues, this setting can be used to set a different one:\n\n```yaml\n- uses: xarray-contrib/issue-from-pytest-log@v1\n  with:\n    log-path: pytest-log.jsonl\n    issue-title: \"Nightly CI failed\"\n```\n\nThe title can also be parametrized, in which case a separate issue will be opened for each variation of the title.\n\n### issue label\n\noptional. Default: `CI`\n\nThe label to set on the new issue.\n\n```yaml\n- uses: xarray-contrib/issue-from-pytest-log@v1\n  with:\n    log-path: pytest-log.jsonl\n    issue-label: \"CI\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarray-contrib%2Fissue-from-pytest-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxarray-contrib%2Fissue-from-pytest-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarray-contrib%2Fissue-from-pytest-log/lists"}