🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

[Bug][Jenkins] _raw_jenkins_api_builds table becomes bloated with faulty records #8430

Closed

Description

@KyriosGN0

Search before asking

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

What happened

overtime the _raw_jenkins_api_builds table becomes full of records which are faulty, the params and input for a row are not in sync with the url of the jobs, i.e when params is connectionId:"2", FullName:"FE/frontend" the url points to a backend job in a different jenkins folder

What do you expect to happen

records should be created correctly

How to reproduce

configure projects with different multi-branch-pipelines and then after sometime those kinds of records will appear

Anything else

No response

Version

v1.0.2-beta7

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    type/bug
    on May 7, 2025
  2. dosubot commented on May 7, 2025

    @dosubot

    To address the issue of the _raw_jenkins_api_builds table becoming bloated with faulty records, you can ensure that the job name and path are correctly extracted from the input when dealing with multi-branch workflows. The existing code snippet already includes a mechanism to handle this:

    input := &SimpleJob{}
    err1 := json.Unmarshal(row.Input, input)
    if err1 == nil && input.Class == WORKFLOW_JOB {
        // For jobs from multi-branch workflow, the job name and path must come from the input,
        // otherwise it will be set to the multi-branch workflow name and path
        jobName = input.Name
        jobPath = input.Path
        fullName = fmt.Sprintf(`%s#%d`, input.FullName, body.Number)
    }

    This code checks if the input can be unmarshaled into a SimpleJob and if the class is WORKFLOW_JOB. If so, it uses the job name and path from the input, ensuring they are in sync with the URL of the jobs in Jenkins. This approach helps maintain consistency and prevents the table from being populated with incorrect records [1].

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about incubator-devlake Share Dosu with your team

  3. added
    devops
    severity/p2
    on May 7, 2025
  4. github-actions commented on Jul 7, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  5. KyriosGN0 commented on Jul 7, 2025

    @KyriosGN0
    ContributorAuthor

    Not stale
    Still needs a solution

  6. github-actions commented on Sep 7, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  7. KyriosGN0 commented on Sep 7, 2025

    @KyriosGN0
    ContributorAuthor

    Not stale

  8. github-actions commented on Nov 7, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  9. KyriosGN0 commented on Nov 7, 2025

    @KyriosGN0
    ContributorAuthor

    Not stale

  10. 3 remaining items

  11. KyriosGN0 commented on Jan 7, 2026

    @KyriosGN0
    ContributorAuthor

    Not stale

  12. github-actions commented on Mar 9, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  13. KyriosGN0 commented on Mar 9, 2026

    @KyriosGN0
    ContributorAuthor

    not stale

  14. self-assigned this
    on Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

devopsseverity/p2type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions