GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — Honor the Lua tracer FF for `database trace-command` invocations for scanned languages. by criemen · Pull Request #1120 · github/codeql-action Conversation
|
|
Another thing that I'm seeing is that these |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh...looks like this test is no longer flaky...it's just failing. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good. All tests passed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…scanned languages. In theory, a scanned language will not setup the build tracer, and so shouldn't care about lua versus legacy tracing. However, `go` is a special case where the autobuilder runs under the build tracer, that then gets disabled immediately again, unless a special environment variable is used. Therefore, we need to thread through the feature flag to this `database trace-command` invocation. For other scanned languages, this should be a no-op, as no tracing is ever set up.
11b7154 to
ab7316e
Compare
| export async function getCodeQLForTesting(): Promise<CodeQL> { | ||
| return getCodeQLForCmd("codeql-for-testing", false); | ||
| export async function getCodeQLForTesting( | ||
| cmd = "codeql-for-testing" |
Code scanning / CodeQL
Exec call vulnerable to binary planting
| injectedMlQueries: false, | ||
| }; | ||
|
|
||
| test("createdDBForScannedLanguages() Lua feature flag enabled, but old CLI", async (t) => { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There are 4 tests here that are almost the same, but with different parameters. Can you merge them? The easiest thing to do is something like this:
[{ name: "Lua feature flag enabled, but old CLI", version: "2.9.0", ... }, ...].forEach(options => {
test(`createdDBForScannedLanguages() ${options.name}`, async (t) => {
...
sinon.stub(codeqlObject, "getVersion").resolves(options.version);
...
});
});
This will help emphasize the actual differences between the tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My suggestion is quite minor. Feel free to merge this now to get it into the 2.10.0 release and then tweak it later.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll do so, thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.