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

Add TestReleaseNotesCheck.groovy #2765

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Add TestReleaseNotesCheck.groovy #2765

merged 2 commits into from
Oct 21, 2022

Conversation

jordarlu
Copy link
Contributor

Signed-off-by: Jeff Lu chunglu@amazon.com

Description

Describe what this change achieves.
As part of the effort on META #1468 , we are adding missing test job for jenkinsfile(s).

Particularly, this PR is created to address missing test job for release-notes-check.jenkinsfile [https://github.com/opensearch-project/opensearch-build/tree/main/jenkins/release-notes-check]

Issues Resolved

#2713 as part of #1468

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Jeff Lu <chunglu@amazon.com>
@jordarlu jordarlu self-assigned this Oct 19, 2022
@jordarlu jordarlu added the technical-debt Additional rework required to improve the existing code label Oct 19, 2022
@jordarlu jordarlu marked this pull request as ready for review October 19, 2022 22:07
@jordarlu jordarlu requested a review from a team as a code owner October 19, 2022 22:07
public void testReleaseNoteCheckPipeline() {
super.testPipeline("jenkins/release-notes-check/release-notes-check.jenkinsfile",
"tests/jenkins/jenkinsjob-regression-files/release-notes-check/release-notes-check.jenkinsfile")
}
Copy link
Member

Choose a reason for hiding this comment

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

I believe we would like to assert few things like if the intended shell script has the expected calls. In future if the library makes some changes, we would like to catch that in our tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gaiksaya , makes sense.. I was thinking that as well, but debating with myself that the regression txt has the shared lib covered as well..
I also think it is better we do that you said .. I will add test to check if certain script/lib is called..
thanks!!

Signed-off-by: Jeff Lu <chunglu@amazon.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2765 (fdb2ee6) into main (9fc1dfd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2765   +/-   ##
=======================================
  Coverage   94.15%   94.15%           
=======================================
  Files         157      157           
  Lines        4242     4242           
=======================================
  Hits         3994     3994           
  Misses        248      248           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jordarlu
Copy link
Contributor Author

Thanks for the approval, @gaiksaya

@jordarlu jordarlu merged commit eb8024d into opensearch-project:main Oct 21, 2022
@jordarlu jordarlu deleted the newTest4 branch October 21, 2022 04:04
@jordarlu jordarlu restored the newTest4 branch October 21, 2022 04:23
jordarlu added a commit that referenced this pull request Oct 21, 2022
monusingh-1 pushed a commit to monusingh-1/os_build that referenced this pull request Nov 2, 2022
* Add TestReleaseNotesCheck.groovy

Signed-off-by: Jeff Lu <chunglu@amazon.com>

* add additional test to verify if the needed sh script in place

Signed-off-by: Jeff Lu <chunglu@amazon.com>

Signed-off-by: Jeff Lu <chunglu@amazon.com>
Signed-off-by: Monu Singh <msnghgw@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical-debt Additional rework required to improve the existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants