Skip to content

Docs: Add CodeQL system requirements page#10612

Merged
adityasharad merged 2 commits into
github:mainfrom
adityasharad:docs/system-requirements
Oct 3, 2022
Merged

Docs: Add CodeQL system requirements page#10612
adityasharad merged 2 commits into
github:mainfrom
adityasharad:docs/system-requirements

Conversation

@adityasharad

@adityasharad adityasharad commented Sep 28, 2022

Copy link
Copy Markdown
Collaborator

Add a table of platform requirements (OS, OS version, CPU architecture).
Add a list of additional language-specific software requirements.

Preview:
Screen Shot 2022-09-28 at 11 58 24 AM

Add a table of platform requirements (OS, OS version, CPU architecture).
Add a list of additional language-specific software requirements.
@adityasharad adityasharad requested review from a team, felicitymay and turbo September 28, 2022 18:57
@adityasharad adityasharad added the ready-for-doc-review This PR requires and is ready for review from the GitHub docs team. label Sep 28, 2022
tausbn
tausbn previously approved these changes Sep 28, 2022

@tausbn tausbn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Python 👍

@adityasharad adityasharad requested a review from a team September 28, 2022 19:34
felicitymay
felicitymay previously approved these changes Sep 30, 2022

@felicitymay felicitymay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@adityasharad - thank you so much for rounding up this missing information 💖

I've made a couple of formatting suggestions, but generally this looks good 👍🏻

Comment on lines +23 to +29
x86-64, arm64 (Apple Silicon) [1]_

x86-64, arm64 (Apple Silicon) [1]_"

.. container:: footnote-group

.. [1] Support for Apple Silicon is currently in beta.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can see that this data correctly conveys the information, but sadly the interpretation from Sphinx is a little confusing.

image

I think that the best way around this might be to delete the footnote marker from lines 23 and 25, and instead attach it to the Operating system in line 17.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Or just put it on 25, so it appears below both mentions of Apple Silicon?

Comment on lines +18 to +24
- For extraction of compiled languages on all platforms, the system must be configured so that it can successfully build and compile your code, independently of CodeQL.
- On Linux, extraction of compiled languages (C/C++, C#, Go, Java) and Ruby requires ``glibc`` version 2.17 or greater.
- Extraction of these languages on ``musl-c``-based Linux distributions, such as Alpine Linux, is not supported.
- TypeScript extraction on all platforms requires Node.js to be installed and available on the ``PATH`` as ``node``.
- On Linux and macOS, extraction of Python 2 or Python 3 requires Python 3 to be installed and available on the ``PATH`` as ``python3`` or ``python``.
- For Python 2 extraction, we also recommend having Python 2 installed and available on the ``PATH`` as ``python2``.
- On Windows, extraction of Python 2 or Python 3 requires the Python launcher to be installed and available on the ``PATH`` as ``py.exe``.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggest we might reformat something like this:

Suggested change
- For extraction of compiled languages on all platforms, the system must be configured so that it can successfully build and compile your code, independently of CodeQL.
- On Linux, extraction of compiled languages (C/C++, C#, Go, Java) and Ruby requires ``glibc`` version 2.17 or greater.
- Extraction of these languages on ``musl-c``-based Linux distributions, such as Alpine Linux, is not supported.
- TypeScript extraction on all platforms requires Node.js to be installed and available on the ``PATH`` as ``node``.
- On Linux and macOS, extraction of Python 2 or Python 3 requires Python 3 to be installed and available on the ``PATH`` as ``python3`` or ``python``.
- For Python 2 extraction, we also recommend having Python 2 installed and available on the ``PATH`` as ``python2``.
- On Windows, extraction of Python 2 or Python 3 requires the Python launcher to be installed and available on the ``PATH`` as ``py.exe``.
To generate a CodeQL database for a compiled language, you must ensure that the system can successfully build and compile your code, independently of CodeQL.
CodeQL tools have the following requirements.
For compiled languages (C/C++, C#, Go, Java) and Ruby on Linux:
- ``glibc`` version 2.17 or greater must be installed.
- ``musl-c``-based Linux distributions, such as Alpine Linux, are not supported.
For Typescript on all platforms:
- Node.js must be installed and available on the ``PATH`` as ``node``.
For Python:
- On Linux and macOS, Python 3 must be installed and available on the ``PATH`` as ``python3`` or ``python``.
- For Python 2 extraction on Linux and macOS, we also recommend having Python 2 installed and available on the ``PATH`` as ``python2``.
- On Windows, the Python launcher must be installed and available on the ``PATH`` as ``py.exe``.

@adityasharad adityasharad dismissed stale reviews from felicitymay and tausbn via fdd71d4 September 30, 2022 21:11
@adityasharad

Copy link
Copy Markdown
Collaborator Author

Thanks! I have addressed all comments (with minor tweaks). This will need a fresh approval, sorry.

@tausbn tausbn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Python still 👍

@adityasharad adityasharad merged commit f7d455e into github:main Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation ready-for-doc-review This PR requires and is ready for review from the GitHub docs team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants