Skip to content

Don't rate limit if no CLI is installed#2294

Merged
robertbrignull merged 1 commit intomainfrom
robertbrignull/no_distribution_install
Apr 11, 2023
Merged

Don't rate limit if no CLI is installed#2294
robertbrignull merged 1 commit intomainfrom
robertbrignull/no_distribution_install

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

This PR helps to avoid a specific case where your managed CodeQL CLI gets uninstalled (not sure how, but it can happen during extension upgrades) and then the extension refuses to install a new one because it tried that within the last 24 hours. This PR makes it so that if no CLI is installed then it'll always try installing one.

I'm able to reproduce the bug easily by adding a simple "removeDatabase" command. I didn't include it in this screenshot but the extension fails to load and you're totally stuck.
Screenshot 2023-04-11 at 12 41 19

With this PR it always installs the CLI if it couldn't find one.
Screenshot 2023-04-11 at 12 44 15

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@robertbrignull robertbrignull requested a review from a team as a code owner April 11, 2023 11:51
Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

Looks sensible to me!

@robertbrignull robertbrignull merged commit 048428b into main Apr 11, 2023
@robertbrignull robertbrignull deleted the robertbrignull/no_distribution_install branch April 11, 2023 15:18
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.

2 participants