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

Make input manifest ci checks accept commit id as refs #2856

Merged

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented Nov 6, 2022

Signed-off-by: Peter Zhu [email protected]

Description

Make input manifest ci checks accept commit id as refs

Issues Resolved

#2855
#2649

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.

@peterzhuamazon peterzhuamazon added bug Something isn't working release v2.4.0 'Issues and PRs related to version v2.4.0' labels Nov 6, 2022
@peterzhuamazon peterzhuamazon requested a review from a team as a code owner November 6, 2022 22:28
@peterzhuamazon peterzhuamazon self-assigned this Nov 6, 2022
Signed-off-by: Peter Zhu <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2022

Codecov Report

Merging #2856 (764fc9b) into main (b4e98c7) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2856      +/-   ##
==========================================
+ Coverage   93.66%   93.71%   +0.04%     
==========================================
  Files         158      158              
  Lines        4373     4391      +18     
==========================================
+ Hits         4096     4115      +19     
+ Misses        277      276       -1     
Impacted Files Coverage Δ
src/ci_workflow/ci_check_list.py 94.73% <100.00%> (+2.42%) ⬆️
src/ci_workflow/ci_check_list_source_ref.py 100.00% <100.00%> (+6.66%) ⬆️

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

Copy link
Member

@zelinh zelinh left a comment

Choose a reason for hiding this comment

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

LGTM. Had offline discussion with @peterzhuamazon. This would be performed when checks in input manifest are absent.

@zelinh zelinh merged commit da623ed into opensearch-project:main Nov 7, 2022
@peterzhuamazon peterzhuamazon deleted the opensearch-ref-checks branch November 7, 2022 22:07
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

This should have been implemented differently by adding two subclasses of CiCheckListSourceRef, one that has a ref as SHA1 and another that doesn't, instead of all these ifs and creating the right instance thereof accordingly. Care to refactor this @zelinh?

@peterzhuamazon
Copy link
Member Author

This should have been implemented differently by adding two subclasses of CiCheckListSourceRef, one that has a ref as SHA1 and another that doesn't, instead of all these ifs and creating the right instance thereof accordingly. Care to refactor this @zelinh?

This is a temp measure to unblock 2.4.0.
We will refactor it later on.

Thanks.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

@peterzhuamazon Later on is fine by me. Please note that a cleaner object model would have been less code and much more readable. Whether the measure is temporary is irrelevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants