-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Have you checked for existing feature requests?
- Completed
Summary
I found a few issues with the publish task, mainly around the part where we check GitHub to see whether it knows about the new tag:
- The
waitForTagToBeAvailablemethod assumes that the tag will eventually show up. It doesn't try to handle situations where the API returns errors — for example, because of an exceeded rate limit. - It doesn't try to handle situations where we check the API 5 times and give up. We just resolve as though the tag is ready, even though it's clearly not ready yet. We should probably fail here with a helpful error message like “make sure the tag is present.”
- The exceeded rate limit is somewhat easy to trigger locally because it's 60 requests per hour for unauthenticated users. If
waitForTagToBeAvailableused the same token that PPM uses in calls to the PPM API, that limit could be raised at least tenfold. It's worth doing. - The code that calls
waitForTagToBeAvailabledoesn't have any error processing of its own. It doesn't envision thatwaitForTagToBeAvailablecan fail in any way. If we can't be sure the tag is present, we shouldn't proceed with publishing.
What benefits does this feature provide?
Better error handling for ppm publish.
Any alternatives?
Probably.
Other examples:
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request