improve: reduce calls to check for update, do local jwt refresh check#154
improve: reduce calls to check for update, do local jwt refresh check#154PrestigePvP wants to merge 4 commits intomainfrom
Conversation
Greptile SummaryThis PR reduces CLI latency by (1) replacing the blocking per-command GitHub update check with an async background goroutine writing to a 24-hour disk cache, and (2) replacing the blocking server-side Key concerns found during review:
Confidence Score: 2/5
Important Files Changed
|
| inputs: | ||
| is_urgent: | ||
| description: "Mark this release as urgent (bypasses 48h grace period for update notifications)" | ||
| type: boolean | ||
| default: false |
There was a problem hiding this comment.
The problem is how we use the dispatch here. This workflow is actually not made to be used with dispatch because we need the tag; we use it in the workflow to create the image names and all that.
If we dispatch with is_urgent here, we need to select a new tag, but we can't create a new tag when we run a workflow manually (only when creating a release), which means that we would need to create the tag first, but if we create the tag first, this workflow would run without the is_urgent and that's our lock here.
For this case, I think a new workflow just to mark a release as urgent would make more sense. We can follow the same release process we have now, and after it, we can run another workflow against the tag, like in the image below, to mark it as urgent (which would basically update the description of the release)
There was a problem hiding this comment.
Makes sense, yeah, I've never used that in github before so I thought it might just work but I see the issue.
Description 📣
Aims to fix issues (Infisical/infisical#1001) that several users pointed out regarding high latency CLI calls, especially for geographically distributed people using the CLI.
Type ✨
Tests 🛠️
Two new unit tests were added.