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

Skip testMergeWithMatrixBuild if gpgsign enabled #1564

Conversation

MarkEWaite
Copy link
Contributor

Skip testMergeWithMatrixBuild if gpgsign enabled

The testMergeWithMatrixBuild test fails randomly on several machines when commit.gpgsign and tag.gpgsign are not enabled if the TestPreBuildMerge implementation is used. It passes consistently when PreBuildMerge is used.

Rather than spend the time trying to diagnose the intermittent failures, this configuration allows the test to be skipped if either of those configuration settings are enabled.

Other tests in this class are able to use TestPreBuildMerge without issue.

Would like a review from @olamy, if possible.

Testing done

Tested by enabling commit.gpgsign in ~/.gitconfig and by enabling commit.gpgsign in a $XDG_CONFIG_HOME/.gitconfig file. Test was skipped when gpgsign was enabled in either of those files.

Checklist

  • I have read the CONTRIBUTING doc
  • I have referenced the Jira issue related to my changes in one or more commit messages
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No Javadoc warnings were introduced with my changes
  • No spotbugs warnings were introduced with my changes
  • Documentation in README has been updated as necessary
  • Online help has been added and reviewed for any new or modified fields
  • I have interactively tested my changes
  • Any dependent changes have been merged and published in upstream modules (like git-client-plugin)

Types of changes

  • Tests

The testMergeWithMatrixBuild test fails randomly on several machines when
commit.gpgsign and tag.gpgsign are not enabled if the TestPreBuildMerge
implementation is used. It passes consistently when PreBuildMerge is
used.

Rather than spend the time trying to diagnose the intermittent failures,
this configuration allows the test to be skipped if either of those
configuration settings are enabled.

Other tests in this class are able to use TestPreBuildMerge without issue.

Tested by enabling commit.gpgsign in ~/.gitconfig and by enabling
commit.gpgsign in a $XDG_CONFIG_HOME/.gitconfig file.  Test was skipped
when gpgsign was enabled in either of those files.
@MarkEWaite MarkEWaite requested a review from a team as a code owner March 18, 2024 02:00
@MarkEWaite MarkEWaite added the tests Automated test addition or improvement label Mar 18, 2024
/* The testMergeWithMatrixBuild test fails randomly on several
* machines when commit.gpgsign and tag.gpgsign are not
* enabled if the TestPreBuildMerge implementation is used. It
* passes consistently when PreBuildMerge is used. Rather than
Copy link
Member

@olamy olamy Mar 18, 2024

Choose a reason for hiding this comment

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

interesting. what sort of error did you get? Did it happen on https://ci.jenkins.io/?
but this doesn't mean I really want to spend time on that :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran more tests to check failure rates on various machines in my home lab. Failure rate seemed to decrease as machine performance decreased.

  • RHEL 8 with Ryzen 5 - 16/16 failed
  • Ubuntu 22.04 with Xeon(R) X5660 - 14/16 failed
  • Ubuntu 22.04 with Xeon(R) X3450 - 13/16 failed
  • Ubuntu 22.04 with i5-6400 - 12/16 failed
  • Debian testing with i5-2400 - 7/16 failed

@MarkEWaite
Copy link
Contributor Author

MarkEWaite commented Mar 18, 2024 via email

@MarkEWaite MarkEWaite merged commit 4275207 into jenkinsci:master Mar 18, 2024
15 checks passed
@MarkEWaite MarkEWaite deleted the do-not-useTestPreBuildMerge-in-matrix-job branch March 18, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants