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

action: remove "latest" fallback to "stable" version #12

Conversation

jpluscplusm
Copy link
Collaborator

When the consumer specifies that they want the "latest" CUE version, we must consult the Github API to find out what that version is. The API sometimes (but rarely) fails to give us a list of CUE's releases. This may be rate-limit related; it may be internal GitHub service errors - we're not sure.

When experiencing that intermittent failure, the Action currently falls back on a known-good CUE version (0.4.0) and installs it.

This is undesireable for a number of reasons, not least because it requires us to keep the fallback version updated, here in code.

This commit changes that behaviour, and exposes the consumer of this Action to these intermittent failures. This strategy was proposed and agreed in cue-lang/cue#2271.

When the consumer specifies that they want the "latest" CUE version, we
must consult the Github API to find out what that version is. The API
sometimes (but rarely) fails to give us a list of CUE's releases. This
may be rate-limit related; it may be internal GitHub service errors -
we're not sure.

When experiencing that intermittent failure, the Action currently falls
back on a known-good CUE version (0.4.0) and installs it.

This is undesireable for a number of reasons, not least because it
requires us to keep the fallback version updated, here in code.

This commit changes that behaviour, and exposes the consumer of this
Action to these intermittent failures. This strategy was proposed and
agreed in cue-lang/cue#2271.

Signed-off-by: Jonathan Matthews <github@hello.jonathanmatthews.com>
@jpluscplusm jpluscplusm force-pushed the remove_stable_version_fallback_on_api_failure branch from 3431a93 to 34995cd Compare August 2, 2023 11:37
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

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

"I don't do JavaScript/TypeScript" - but otherwise this LGTM.

@myitcv myitcv merged commit 77366d1 into cue-lang:main Aug 2, 2023
2 checks passed
@jpluscplusm jpluscplusm deleted the remove_stable_version_fallback_on_api_failure branch August 2, 2023 21:57
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