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 future-proofing UnknownStep type #2254

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Add future-proofing UnknownStep type #2254

merged 1 commit into from
Jul 31, 2023

Conversation

DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Jul 31, 2023

It occurred to me that the new parser has no way of representing steps that we haven't invented yet.

Copy link
Contributor

@triarius triarius left a comment

Choose a reason for hiding this comment

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

LGTM, but I also think we should backtrack errors from unmarshalling known step types and fall back to presenting the step as an UnknownStep then as well. It will mean we can't sign the step, though, so maybe we should refuse to sign pipelines with unknown steps and display an error message to contact support.

@DrJosh9000
Copy link
Contributor Author

LGTM, but I also think we should backtrack errors from unmarshalling known step types and fall back to presenting the step as an UnknownStep then as well.

Something like this?

It will mean we can't sign the step, though, so maybe we should refuse to sign pipelines with unknown steps and display an error message to contact support.

Definitely!

@DrJosh9000 DrJosh9000 merged commit 6557a32 into main Jul 31, 2023
1 check passed
@DrJosh9000 DrJosh9000 deleted the futureproof-steps branch July 31, 2023 07:38
@DrJosh9000 DrJosh9000 added the yaml label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants