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

This tests are failing when running on the PCT #149

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

amuniz
Copy link
Member

@amuniz amuniz commented Jun 4, 2020

  1. FolderTest.shouldHaveHealthMetricConfiguredGloballyOnCreation: is checking something which is not necessarily true (it depends on this condition). So I suspect there is a FolderHealthMetricDescriptor in the classpath (from some other plugin) which is returning null on FolderHealthMetricDescriptor#createDefault (which is fine).

  2. AbstractFolderConfigurationTest#shouldBeAbleToRemoveHealthMetricConfiguredGlobally: same reason.

Proposed changelog entries

  • Entry 1: Issue, Human-readable Text
  • ...

Submitter checklist

  • JIRA issue is well described
  • Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change).
    * Use the Internal: prefix if the change has no user-visible impact (API, test frameworks, etc.)
  • Appropriate autotests or explanation to why this change has no tests

@fcojfernandez

1. `FolderTest.shouldHaveHealthMetricConfiguredGloballyOnCreation`: is checking [something](https://github.com/jenkinsci/cloudbees-folder-plugin/blob/2b9443b5c5d72030a92f59e8843c8948022830b5/src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java#L420) which is not necessarily true (it depends on [this condition](https://github.com/jenkinsci/cloudbees-folder-plugin/blob/ae00f49fc0c6183983d67c799772fd8b9adc0840/src/main/java/com/cloudbees/hudson/plugins/folder/config/AbstractFolderConfiguration.java#L50)). So I suspect there is a `FolderHealthMetricDescriptor` in the classpath (from some other plugin) which is returning `null` on `FolderHealthMetricDescriptor#createDefault` (which is fine).

2. `AbstractFolderConfigurationTest#shouldBeAbleToRemoveHealthMetricConfiguredGlobally`: same reason.
@amuniz
Copy link
Member Author

amuniz commented Jun 4, 2020

The actual failure is happening on PCT runs (jenkinsci/bom#225 for example)

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@amuniz amuniz changed the title This tests are filing when running on the PCT This tests are failing when running on the PCT Jun 4, 2020
@fcojfernandez fcojfernandez merged commit b6443bb into jenkinsci:master Jun 4, 2020
@timja
Copy link
Member

timja commented Jun 4, 2020

@fcojfernandez would you be able to release these changes? or should we ignore the tests in bom for now?

@fcojfernandez
Copy link
Member

I plan to do it tomorrow or next Monday morning (CET) at the latest.

@fcojfernandez
Copy link
Member

@jetersen
Copy link
Member

jetersen commented Jun 5, 2020

Thanks 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants