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

Fix tests with Jenkins 2.395 #431

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Mar 15, 2023

Fix assertions for configure system page on 2.395

Jenkins 2.395 includes jenkinsci/jenkins#7661 that simplifies the names of the settings on the "Configure System" page.

That simplification breaks email-ext tests in the Jenkins plugin bill of materials and any time they are run with Jenkins 2.395 or later. We can temporarily exclude the tests from the plugin bill of materials, but it is much better to have the tests pass.

This pull request adapts the tests to the change so that they pass with the current weekly and past LTS releases.

jenkinsci/bom#1857 shows the failing tests with Jenkins 2.395.

The failures can also be seen with the command:

$ mvn clean -Djenkins.verison=2.395 -Dtest=ExtendedEmailPublisherDescriptorTest verify
  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Jenkins 2.395 includes jenkinsci/jenkins#7661
that simplifies the names of the settings on the "Configure System" page.

That simplification breaks email-ext tests in the Jenkins plugin bill
of materials and any time they are run with Jenkins 2.395 or later.
We can temporarily exclude the tests from the plugin bill of materials,
but it is much better to have the tests pass.

This pull request adapts the tests to the change so that they pass with
the current weekly and past LTS releases.

jenkinsci/bom#1857 shows the failing tests with
Jenkins 2.395.

The failures can also be seen with the command:

```
$ mvn clean -Dtest=ExtendedEmailPublisherDescriptorTest verify
```
@MarkEWaite MarkEWaite requested a review from a team as a code owner March 15, 2023 02:18
MarkEWaite added a commit to jenkinsci/bom that referenced this pull request Mar 15, 2023
Jenkins 2.395 simplified the page title but the plugin needs to be
updated to test for the correct page title.

jenkinsci/jenkins#7661 is the change in Jenkins
core.

jenkinsci/email-ext-plugin#431 provides more
details on the issue
@MarkEWaite
Copy link
Contributor Author

@slide could you review and merge this change when convenient for you? The test failure has been excluded from the plugin bill of materials pull request, but I'd much rather have the test updated than need to exclude the failure in the plugin BOM.

Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@basil basil merged commit 1e05405 into jenkinsci:master Mar 15, 2023
github-actions bot added a commit to jenkinsci/bom that referenced this pull request Mar 15, 2023
* chore: ran shell command "pwsh -NoProfile -File /home/runner/work/bom...

... /bom/updatecli/update-jenkins.ps1 weekly 2.395"

Made with ❤️️ by updatecli

* Exclude an email-ext test dependent on system config page title

Jenkins 2.395 simplified the page title but the plugin needs to be
updated to test for the correct page title.

jenkinsci/jenkins#7661 is the change in Jenkins
core.

jenkinsci/email-ext-plugin#431 provides more
details on the issue

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
@basil basil added tests test and removed tests labels Mar 15, 2023
@basil
Copy link
Member

basil commented Mar 15, 2023

Released in 2.95.

@MarkEWaite MarkEWaite deleted the fix-configure-system-page-test branch March 15, 2023 12:18
lemeurherve pushed a commit to lemeurherve/bom that referenced this pull request Mar 31, 2023
* chore: ran shell command "pwsh -NoProfile -File /home/runner/work/bom...

... /bom/updatecli/update-jenkins.ps1 weekly 2.395"

Made with ❤️️ by updatecli

* Exclude an email-ext test dependent on system config page title

Jenkins 2.395 simplified the page title but the plugin needs to be
updated to test for the correct page title.

jenkinsci/jenkins#7661 is the change in Jenkins
core.

jenkinsci/email-ext-plugin#431 provides more
details on the issue

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants