Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build history destroyed with 7.0.0 upgrade: builds marked "1 Jan. 1970" and stuck #423

Closed
dduportal opened this issue May 3, 2024 · 9 comments
Assignees
Labels
kind/bug Bug related issue

Comments

@dduportal
Copy link
Contributor

Describe the bug

The 2 May 2024, the Jenkins infrastructure team upgraded the plugin datadog from 6.0.3 to 7.0.0 on ci.jenkins.io, the public controller used for the CI of Jenkins plugins.

This plugin upgrade resulted in all build history being partially destroyed: see jenkins-infra/helpdesk#4080

The top-level symptoms are:

Capture d’écran 2024-05-03 à 11 52 26
CannotResolveClassException: org.datadog.jenkins.plugins.datadog.traces.StepDataAction, CannotResolveClassException: org.datadog.jenkins.plugins.datadog.traces.StepTraceDataAction, CannotResolveClassException: org.datadog.jenkins.plugins.datadog.model.StageBreakdownAction, CannotResolveClassException: org.datadog.jenkins.plugins.datadog.model.CIGlobalTagsAction, CannotResolveClassException: org.datadog.jenkins.plugins.datadog.traces.IsPipelineAction

The problem is reported by other users in https://issues.jenkins.io/browse/JENKINS-66328?focusedId=446989&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-446989

To Reproduce

  • Start a controller with LTS (2.440.3) and install datadog version 6.0.3
  • Run a set of builds to generate an history
  • Upgrade the plugin to 7.0.0
  • Almost everytime (was able to reproduce 2 times on 3 retries) the symptoms appears again

Expected behavior

I would like the datadog plugin to either upgrade without any problem OR to not destroy my entire build history.

Screenshots

Capture d’écran 2024-05-03 à 11 33 48

Environment and Versions (please complete the following information):

A clear and precise description of your setup:

Additional context

Same issue as #393.

We are considering to stop using datadog plugin on the official Jenkins infrastructure because our build history is destroyed on almost each plugin upgrade.

The reason is that the build.xml files are modified by the plugin which makes them unparseable if there are any error or if we remove the plugin.
There might be reasons to do the implementation that way but it start to really be a problem for administrators.

@legoGoat
Copy link

legoGoat commented May 3, 2024

I was literally about to submit a post on this exact issue, too. 🙈

@dduportal Do you know more or less from what the date/time your oldest affected builds are? I'm trying to judge whether it is since a particular timestamp or over a particular period of time since now().

Because, honestly, it clears out the entire execution of the build, all its run data. This is horrible.
Screenshot 2024-05-03 at 11 18 09
Screenshot 2024-05-03 at 11 21 09

@nikita-tkachenko-datadog
Copy link
Collaborator

nikita-tkachenko-datadog commented May 3, 2024

Hi @dduportal, I am very sorry this happened again.
We are still looking into the root cause of this.
In the meantime, would it be possible for you to provide the logs of your Jenkins' controller node?
Thanks!

@nikita-tkachenko-datadog
Copy link
Collaborator

The 7.0.0 release of the plugin has been removed from the Update Center

@mjuszczak
Copy link

Also experienced this issue when updating Jenkins core + all plugins on Tues Apr 30th.

@nikita-tkachenko-datadog
Copy link
Collaborator

The issue has been fixed in #425 released in v7.0.1

@dduportal
Copy link
Contributor Author

Hi @dduportal, I am very sorry this happened again. We are still looking into the root cause of this. In the meantime, would it be possible for you to provide the logs of your Jenkins' controller node? Thanks!

Sorry I missed your comment. We don't have more than 2 days of retention today but I can check the backups if you are still interested (asking given #425).

@dduportal
Copy link
Contributor Author

The issue has been fixed in #425 released in v7.0.1

Thanks for the fix!

@nikita-tkachenko-datadog
Copy link
Collaborator

nikita-tkachenko-datadog commented May 6, 2024

I can check the backups if you are still interested

Thank you, I've managed to reproduce the issue locally so I don't need the logs anymore

@dduportal
Copy link
Contributor Author

Closing the issue as fixed by 7.0.1, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue
Projects
None yet
Development

No branches or pull requests

4 participants