gitlab_issue_generator#

create_issues_from_failed_tests(*, access_token: str | None = None, cdash_url: str | None = None, cdash_project: str | None = None, gitlab_url: str | None = None, gitlab_api_url: str | None = None, gitlab_project_id: int | str | None = None, date: str | None = None, filtergroups: list[str] | None = None, skip_sites: list[str] | None = None, dont_close_missing: bool = False) None#

Create issues on GitLab from failing tests on CDash

Parameters:
  • cdash_url – The base CDash url, do not include project

  • cdash_project – The CDash project

  • gitlab_url – The GitLab project url

  • gitlab_project_id – The GitLab project’s integer ID

  • access_token – The GitLab access token. Must have API read/write priveleges

  • date – Date to retrieve from CDash

  • filtergroups – Groups to pull down from CDash. Defaults to “Nightly”

  • skip_sites – Sites (systems) on which to ignore issues. Accepts Python regular expressions

  • dont_close_missing – Don’t close GitLab issues that are missing from CDash

groupby_status_and_testname(tests)#

Group CDash tests by status and then name

Notes#

Groups tests as:

generate_test_issue(name, realizations)#
create_or_update_test_issues(repo, issue_data)#
close_test_issues_missing_from_cdash(repo, current_issue_data)#
is_test_issue(issue, include_blacklisted=False)#
find_existing_issue(new_issue, existing_issues)#
update_existing_issue(repo, existing, updated_issue_data)#
create_new_issue(repo, new_issue_data)#
test_status_label(status)#
site_label(site)#
exception MissingCIVariable#

Bases: Exception