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 — Merge main into releases/v4 by github-actions[bot] · Pull Request #3927 · github/codeql-action

Merge main into releases/v4 #3927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
oscarsj merged 73 commits into releases/v4 from update-v4.36.0-ebc2d9e2b
May 22, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Merge main into releases/v4 #3927

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
6a4e35f
Add support for SHA-256 Git object IDs
henrymercer May 12, 2026
de3e561
Improve regex clarity
henrymercer May 12, 2026
d122da3
Bump minimum CodeQL CLI version to 2.19.4
henrymercer May 12, 2026
97fb30d
Remove `ForceOverwrite` tools feature
henrymercer May 12, 2026
a333d64
Remove `DatabaseInterpretResultsSupportsSarifRunProperty` tools feature
henrymercer May 12, 2026
b986640
Add note about `CODEQL_VERSION_ZSTD_BUNDLE`
henrymercer May 12, 2026
a66f7bb
Merge branch 'main' into henrymercer/sha256
henrymercer May 13, 2026
9c3aedb
Update PR check testing matrix
henrymercer May 13, 2026
4235601
Log error for non-default `analysis-kinds` input outside of managed w…
mbg May 13, 2026
93d215d
Merge branch 'main' into henrymercer/sha256
henrymercer May 13, 2026
3c8c0ae
Remove unnecessary sinon `restore` calls
henrymercer May 13, 2026
d4eab00
Bump sinon from 21.1.2 to 22.0.0
dependabot[bot] May 14, 2026
e8d3fa2
Merge branch 'main' into henrymercer/sha256
henrymercer May 14, 2026
fcdf5dd
Add PR checks shortcut to `package.json`
henrymercer May 14, 2026
aa005fa
PR checks: Run slowest macOS checks on larger runners
henrymercer May 14, 2026
a32db48
Move checks back to default runners
henrymercer May 14, 2026
1b65777
Address review comments
henrymercer May 14, 2026
931147e
Improve OS types and docs
henrymercer May 15, 2026
db84cb5
Remove outdated comments for `analyze-action` tests
mbg May 15, 2026
9e1f914
Merge `analyze-action-input` test into `analyze-action-env` file
mbg May 15, 2026
4695921
Rename `analyze-action-env.test.ts` to `analyze-action.test.ts`
mbg May 15, 2026
2320f9d
"action" to "Action" in `build.mjs`
mbg May 15, 2026
ab5047b
Add missing semicolons
mbg May 15, 2026
064674d
Fix typo
mbg May 15, 2026
b43bb7b
Merge branch 'main' into henrymercer/sha256
henrymercer May 15, 2026
06c7e6f
Update changelog and version after v4.35.5
github-actions[bot] May 15, 2026
f1ce9f4
Rebuild
github-actions[bot] May 15, 2026
7187b6e
Merge pull request #3906 from github/mergeback/v4.35.5-to-main-9e0d7b8d
mbg May 15, 2026
bbef5ff
Merge pull request #3904 from github/mbg/esbuild/split-follow-up
mbg May 15, 2026
67f4038
Merge pull request #3903 from github/henrymercer/macos-larger-runners
henrymercer May 15, 2026
2a02de1
Read token from stdin in `sync-checks.ts`
henrymercer May 15, 2026
93c8a9e
Update `update-release-branch.py` to take token from stdin
henrymercer May 15, 2026
5b815f2
Merge branch 'main' into henrymercer/sha256
henrymercer May 15, 2026
b30a935
Merge branch 'main' into dependabot/npm_and_yarn/sinon-22.0.0
mbg May 15, 2026
cf51dca
Merge pull request #3893 from github/henrymercer/sha256
henrymercer May 15, 2026
2365a46
Merge pull request #3908 from github/henrymercer/token-stdin
henrymercer May 15, 2026
b71f5ae
Merge pull request #3898 from github/dependabot/npm_and_yarn/sinon-22…
mbg May 15, 2026
05e8f28
Merge branch 'main' into henrymercer/require-codeql-2.19.4
henrymercer May 15, 2026
e94195c
Move changelog note to right place
henrymercer May 18, 2026
c8a3492
Merge pull request #3894 from github/henrymercer/require-codeql-2.19.4
henrymercer May 18, 2026
4fc0f3e
Add a PR check that comments on significant repo size changes
henrymercer May 18, 2026
6f8805e
Default setup env vars: Restrict results to `src`
henrymercer May 18, 2026
fcc1e31
Action size: Reduce duplication between `upload-lib` and `entry-points`
henrymercer May 18, 2026
bcffb2b
Unify checks into a single job
henrymercer May 18, 2026
5a80681
Address review comments
henrymercer May 18, 2026
9665bc2
Downgrade ava to version 6.4.1
henrymercer May 18, 2026
b5b50d6
Merge branch 'main' into henrymercer/repo-size-diff-check
henrymercer May 18, 2026
9b6438e
Tweak workflow
henrymercer May 18, 2026
26a1e57
Merge pull request #3913 from github/henrymercer/downgrade-ava
henrymercer May 18, 2026
8442bc0
Release process: Automatically rebuild PRs
henrymercer May 18, 2026
5e9ae56
Add specific instruction about "Rebuild" commit
henrymercer May 18, 2026
b8baf41
Remove comments about npm cache
henrymercer May 18, 2026
eb9a790
Apply suggestion from @henrymercer
henrymercer May 18, 2026
15a712b
Address review comments
henrymercer May 18, 2026
2c8faa5
Pass comment body file directly
henrymercer May 18, 2026
b79a976
Merge remote-tracking branch 'origin/main' into mbg/analysis-kinds/wa…
mbg May 19, 2026
0a7280a
Assert that nothing is logged
mbg May 19, 2026
3b0e64c
Merge pull request #3914 from github/henrymercer/auto-rebuild-release…
henrymercer May 19, 2026
2a73406
Address review comments
henrymercer May 19, 2026
f62fbc9
Merge pull request #3895 from github/mbg/analysis-kinds/warn-on-non-c…
henrymercer May 19, 2026
f4d0a7a
Merge pull request #3912 from github/henrymercer/smaller-upload-lib
henrymercer May 19, 2026
a134948
Bump `brace-expansion`
henrymercer May 20, 2026
164c32a
Merge pull request #3918 from github/henrymercer/upgrade-brace-expansion
henrymercer May 20, 2026
a14f75e
Address review comments
henrymercer May 20, 2026
f3f52bf
Revert `getErrorMessage` import
henrymercer May 20, 2026
8ffeae7
CI: Automatically cancel non-generated workflows
henrymercer May 20, 2026
c5297a2
Merge pull request #3919 from github/henrymercer/workflow-concurrency
henrymercer May 20, 2026
72ac23c
Update excluded required check list
henrymercer May 21, 2026
8449852
Merge pull request #3910 from github/henrymercer/repo-size-diff-check
henrymercer May 21, 2026
2dc40ce
Update default bundle to codeql-bundle-v2.25.5
github-actions[bot] May 22, 2026
d1f74b7
Add changelog note
github-actions[bot] May 22, 2026
ebc2d9e
Merge pull request #3926 from github/update-bundle/codeql-bundle-v2.25.5
oscarsj May 22, 2026
7740f2f
Update changelog for v4.36.0
github-actions[bot] May 22, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Merge analyze-action-input test into analyze-action-env file
The tests still can't run in parallel so I had to change `test` to `test.serial`, which caused a bunch of formatting changes.
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@mbg
mbg committed May 15, 2026
commit 9e1f9145605145b546d301106b3e5d8122ce5f56

There are no files selected for viewing

172 changes: 118 additions & 54 deletions 172 src/analyze-action-env.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -17,62 +17,126 @@ import * as util from "./util";

setupTests(test);

test("analyze action with RAM & threads from environment variables", async (t) => {
// This test frequently times out on Windows with the default timeout, so we bump
// it a bit to 20s.
t.timeout(1000 * 20);
await util.withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir);
sinon
.stub(statusReport, "createStatusReportBase")
.resolves({} as statusReport.StatusReportBase);
sinon.stub(statusReport, "sendStatusReport").resolves();
sinon.stub(gitUtils, "isAnalyzingDefaultBranch").resolves(true);
test.serial(
"analyze action with RAM & threads from environment variables",
async (t) => {
// This test frequently times out on Windows with the default timeout, so we bump
// it a bit to 20s.
t.timeout(1000 * 20);
await util.withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir);
sinon
.stub(statusReport, "createStatusReportBase")
.resolves({} as statusReport.StatusReportBase);
sinon.stub(statusReport, "sendStatusReport").resolves();
sinon.stub(gitUtils, "isAnalyzingDefaultBranch").resolves(true);

const gitHubVersion: util.GitHubVersion = {
type: util.GitHubVariant.DOTCOM,
};
sinon.stub(configUtils, "getConfig").resolves({
gitHubVersion,
augmentationProperties: {},
languages: [],
packs: [],
trapCaches: {},
} as unknown as configUtils.Config);
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");
requiredInputStub.withArgs("token").returns("fake-token");
requiredInputStub.withArgs("upload-database").returns("false");
requiredInputStub.withArgs("output").returns("out");
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
optionalInputStub.withArgs("expect-error").returns("false");
sinon.stub(api, "getGitHubVersion").resolves(gitHubVersion);
mockFeatureFlagApiEndpoint(200, {});
const gitHubVersion: util.GitHubVersion = {
type: util.GitHubVariant.DOTCOM,
};
sinon.stub(configUtils, "getConfig").resolves({
gitHubVersion,
augmentationProperties: {},
languages: [],
packs: [],
trapCaches: {},
} as unknown as configUtils.Config);
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");
requiredInputStub.withArgs("token").returns("fake-token");
requiredInputStub.withArgs("upload-database").returns("false");
requiredInputStub.withArgs("output").returns("out");
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
optionalInputStub.withArgs("expect-error").returns("false");
sinon.stub(api, "getGitHubVersion").resolves(gitHubVersion);
mockFeatureFlagApiEndpoint(200, {});

// When there are no action inputs for RAM and threads, the action uses
// environment variables (passed down from the init action) to set RAM and
// threads usage.
process.env["CODEQL_THREADS"] = "-1";
process.env["CODEQL_RAM"] = "4992";
// When there are no action inputs for RAM and threads, the action uses
// environment variables (passed down from the init action) to set RAM and
// threads usage.
process.env["CODEQL_THREADS"] = "-1";
process.env["CODEQL_RAM"] = "4992";

const runFinalizeStub = sinon.stub(analyze, "runFinalize");
const runQueriesStub = sinon.stub(analyze, "runQueries");
const runFinalizeStub = sinon.stub(analyze, "runFinalize");
const runQueriesStub = sinon.stub(analyze, "runQueries");

await runWrapper();
await runWrapper();

t.assert(
runFinalizeStub.calledOnceWith(
sinon.match.any,
sinon.match.any,
"--threads=-1",
"--ram=4992",
),
);
t.assert(
runQueriesStub.calledOnceWith(
sinon.match.any,
"--ram=4992",
"--threads=-1",
),
);
});
});
t.assert(
runFinalizeStub.calledOnceWith(
sinon.match.any,
sinon.match.any,
"--threads=-1",
"--ram=4992",
),
);
t.assert(
runQueriesStub.calledOnceWith(
sinon.match.any,
"--ram=4992",
"--threads=-1",
),
);
});
},
);

test.serial(
"analyze action with RAM & threads from action inputs",
async (t) => {
t.timeout(1000 * 20);
await util.withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir);
sinon
.stub(statusReport, "createStatusReportBase")
.resolves({} as statusReport.StatusReportBase);
sinon.stub(statusReport, "sendStatusReport").resolves();
const gitHubVersion: util.GitHubVersion = {
type: util.GitHubVariant.DOTCOM,
};
sinon.stub(configUtils, "getConfig").resolves({
gitHubVersion,
augmentationProperties: {},
languages: [],
packs: [],
trapCaches: {},
} as unknown as configUtils.Config);
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");
requiredInputStub.withArgs("token").returns("fake-token");
requiredInputStub.withArgs("upload-database").returns("false");
requiredInputStub.withArgs("output").returns("out");
const optionalInputStub = sinon.stub(actionsUtil, "getOptionalInput");
optionalInputStub.withArgs("expect-error").returns("false");
sinon.stub(api, "getGitHubVersion").resolves(gitHubVersion);
sinon.stub(gitUtils, "isAnalyzingDefaultBranch").resolves(true);
mockFeatureFlagApiEndpoint(200, {});

process.env["CODEQL_THREADS"] = "1";
process.env["CODEQL_RAM"] = "4992";

// Action inputs have precedence over environment variables.
optionalInputStub.withArgs("threads").returns("-1");
optionalInputStub.withArgs("ram").returns("3012");

const runFinalizeStub = sinon.stub(analyze, "runFinalize");
const runQueriesStub = sinon.stub(analyze, "runQueries");

await runWrapper();

t.assert(
runFinalizeStub.calledOnceWith(
sinon.match.any,
sinon.match.any,
"--threads=-1",
"--ram=3012",
),
);
t.assert(
runQueriesStub.calledOnceWith(
sinon.match.any,
"--ram=3012",
"--threads=-1",
),
);
});
},
);
76 changes: 0 additions & 76 deletions 76 src/analyze-action-input.test.ts
Show comments
View file
Open in desktop

This file was deleted.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — 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.