GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add RAM and threads options to init action · github/codeql-action@82fa535

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • __extractor-ram-threads.yml
    • pr-checks.yml
  • init
    • action.yml
  • lib
    • init-action.js.map
    • init-action.js
    • runner.js.map
    • runner.js
    • util.js.map
    • util.js
  • pr-checks/checks
    • extractor-ram-threads.yml
  • src
    • init-action.ts
    • runner.ts
    • util.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/__extractor-ram-threads.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/__extractor-ram-threads.yml
+61Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎.github/workflows/pr-checks.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/pr-checks.yml
+39Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,42 @@ jobs:
388388
# Deliberately don't use TEST_MODE here. This is specifically testing
389389
# the compatibility with the API.
390390
runner/dist/codeql-runner-linux upload --sarif-file src/testdata/empty-sarif.sarif --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
391+
392+
runner-extractor-ram-threads-options:
393+
name: Runner ubuntu extractor RAM and threads options
394+
needs: [check-js, check-node-modules]
395+
runs-on: ubuntu-latest
396+
397+
steps:
398+
- uses: actions/checkout@v2
399+
400+
- name: Build runner
401+
run: |
402+
cd runner
403+
npm install
404+
npm run build-runner
405+
406+
- name: Run init
407+
run: |
408+
runner/dist/codeql-runner-linux init --ram=230 --threads=1 --repository $GITHUB_REPOSITORY --languages java --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
409+
410+
- name: Assert Results
411+
shell: bash
412+
run: |
413+
. ./codeql-runner/codeql-env.sh
414+
if [ "${CODEQL_RAM}" != "230" ]; then
415+
echo "CODEQL_RAM is '${CODEQL_RAM}' instead of 230"
416+
exit 1
417+
fi
418+
if [ "${CODEQL_EXTRACTOR_JAVA_RAM}" != "230" ]; then
419+
echo "CODEQL_EXTRACTOR_JAVA_RAM is '${CODEQL_EXTRACTOR_JAVA_RAM}' instead of 230"
420+
exit 1
421+
fi
422+
if [ "${CODEQL_THREADS}" != "1" ]; then
423+
echo "CODEQL_THREADS is '${CODEQL_THREADS}' instead of 1"
424+
exit 1
425+
fi
426+
if [ "${CODEQL_EXTRACTOR_JAVA_THREADS}" != "1" ]; then
427+
echo "CODEQL_EXTRACTOR_JAVA_THREADS is '${CODEQL_EXTRACTOR_JAVA_THREADS}' instead of 1"
428+
exit 1
429+
fi
Collapse file

‎init/action.yml‎

Copy file name to clipboardExpand all lines: init/action.yml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ inputs:
4141
source-root:
4242
description: Path of the root source code directory, relative to $GITHUB_WORKSPACE.
4343
required: false
44+
ram:
45+
description: Override the amount of memory in MB to be used by CodeQL extractors. By default, almost all the memory of the machine is used.
46+
required: false
47+
threads:
48+
description: The number of threads to be used by CodeQL extractors.
49+
required: false
4450
outputs:
4551
codeql-path:
4652
description: The path of the CodeQL binary used for analysis
Collapse file

‎lib/init-action.js‎

Copy file name to clipboardExpand all lines: lib/init-action.js
+8-3Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎lib/init-action.js.map‎

Copy file name to clipboardExpand all lines: lib/init-action.js.map
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎lib/runner.js‎

Copy file name to clipboardExpand all lines: lib/runner.js
+8Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.