Skip to content

[Bug][github_graphql] Extract Jobs task fails to extract any collected jobs #8383

@benduncan-tote

Description

@benduncan-tote

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

github_graphql Extract Jobs task fails to create records based on jobs collected in the Collect Job Runs task.

What do you expect to happen

Extract Jobs should correctly marshal the raw data and map it to the the _tool_github_jobs table

How to reproduce

For the Collect Job Runs task, the raw data is a check run.
https://github.com/apache/incubator-devlake/blob/0ecfbb0304fba4ac3084eaced883592760c64cd1/backend/plugins/github_graphql/tasks/job_collector.go#L186-L200

However, the Extract Jobs task expects the raw data to be a check suite.
https://github.com/apache/incubator-devlake/blob/0ecfbb0304fba4ac3084eaced883592760c64cd1/backend/plugins/github_graphql/tasks/job_extractor.go#L54-L91

This results in checkSuite.CheckSuite.CheckRuns.Nodes always being nil, causing no jobs to be extracted.

Anything else

No response

Version

v1.0.2-beta6

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/pluginsThis issue or PR relates to pluginsseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions