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

Remove failure reasons and states from mercury and use encoding #11523

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

shileiwill
Copy link
Contributor

AUTO-8161

Have failure reasons and pipeline states in a centralized place, in encoding package. Remove the states and failure reasons in mercury package.

Change back the Strong type, get rid of uint8.

Test Plan:
No logic change, all unit tests, smoke tests should pass.

I didnt add new tests, let me know if new coverage needed.

@shileiwill shileiwill requested review from infiloop2 and a team December 7, 2023 23:30
Copy link
Contributor

github-actions bot commented Dec 7, 2023

I see that you haven't updated any README files. Would it make sense to do so?

@shileiwill shileiwill force-pushed the AUTO-7928-mercury-refactoring branch 8 times, most recently from cc4947a to f0dc63f Compare December 13, 2023 22:04
Base automatically changed from AUTO-7928-mercury-refactoring to develop December 13, 2023 23:05
@shileiwill shileiwill marked this pull request as draft December 14, 2023 00:00
@shileiwill shileiwill force-pushed the AUTO-8161-remove-duplication branch 2 times, most recently from 14ceb5e to 7b9a760 Compare December 14, 2023 21:47
@shileiwill shileiwill marked this pull request as ready for review December 14, 2023 22:35
@@ -149,7 +149,7 @@ func (p *abiPacker) DecodeStreamsLookupRequest(data []byte) (*StreamsLookupError
}, nil
}

func (p *abiPacker) UnpackCheckCallbackResult(callbackResp []byte) (uint8, bool, []byte, uint8, *big.Int, error) {
func (p *abiPacker) UnpackCheckCallbackResult(callbackResp []byte) (encoding.PipelineExecutionState, bool, []byte, uint8, *big.Int, error) {
Copy link
Contributor

@infiloop2 infiloop2 Dec 15, 2023

Choose a reason for hiding this comment

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

other uint8 can be converted back to failure reason

@@ -1,17 +0,0 @@
package mercury

type MercuryUpkeepFailureReason uint8
Copy link
Contributor

Choose a reason for hiding this comment

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

<3

@@ -1,16 +0,0 @@
package mercury

type MercuryUpkeepState uint8
Copy link
Contributor

Choose a reason for hiding this comment

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

<3

@shileiwill shileiwill force-pushed the AUTO-8161-remove-duplication branch 2 times, most recently from 8f0708e to daed5a1 Compare December 15, 2023 18:32
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 63.5% 63.5% Coverage on New Code (is less than 75%)

See analysis details on SonarQube

@shileiwill shileiwill added this pull request to the merge queue Dec 18, 2023
Merged via the queue into develop with commit f177b32 Dec 18, 2023
83 of 84 checks passed
@shileiwill shileiwill deleted the AUTO-8161-remove-duplication branch December 18, 2023 20:18
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.

2 participants