Skip to content

Conversation

@chrisgavin
Copy link
Contributor

Description

This installs the CodeQL CLI bundle that is used by the CodeQL Action to the toolcache.

The bundle takes about 90 seconds to download on Linux, closer to double that on Windows and it takes up 1.8GB when unzipped. (I appreciate this is pretty big, but it should save a significant amount of runner minutes for Code Scanning workflows.)

I've unfortunately not managed to get the tooling for building images set up locally so apologies in advance if there are any errors. I've done my best to test the setup scripts manually.

Related issue:

Closes #1544.

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable) (I've assumed this is not applicable as the only change to the user experience is that Code Scanning workflows will be faster.)
  • Changes are tested and related VM images are successfully generated

@miketimofeev miketimofeev requested a review from a team September 8, 2020 12:02
@chrisgavin chrisgavin force-pushed the install-codeql-bundle branch from 185541b to c72e08b Compare September 17, 2020 11:15
@chrisgavin chrisgavin force-pushed the install-codeql-bundle branch from 0286556 to 60d40e5 Compare September 18, 2020 07:32
@chrisgavin chrisgavin force-pushed the install-codeql-bundle branch 2 times, most recently from 267653f to 4ad8e86 Compare September 20, 2020 12:39
@chrisgavin chrisgavin force-pushed the install-codeql-bundle branch from 4ad8e86 to 49dc2ce Compare September 20, 2020 12:40
@chrisgavin
Copy link
Contributor Author

Thank you so much for your feedback @al-cheb and @maxim-lobanov. Apologies for how long it's taken to get this in shape. I think it's now working so whenever you get a chance a re-review would be fantastic!

Unfortunately I've not been able to fully test it as the Linux image builds are currently failing to download Cabal and the Windows image builds are failing to download the Edge Driver but I'm hoping everything is now right.

@maxim-lobanov
Copy link
Contributor

/azp run windows2016, windows2019, ubuntu1604, ubuntu1804, ubuntu2004

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@maxim-lobanov maxim-lobanov merged commit 7e813d2 into actions:main Sep 25, 2020
@chrisgavin chrisgavin deleted the install-codeql-bundle branch September 25, 2020 15:16
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.

Add CodeQL bundle

4 participants