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 — Improve reliability and performance when using the `autobuild` build mode by henrymercer · Pull Request #2235 · github/codeql-action Conversation
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| We recommend removing any references to these from your workflows. For more information, see the release notes for CodeQL Action v3.23.0 and v2.23.0. | ||
| - Automatically overwrite an existing database if found on the filesystem. [#2229](https://github.com/github/codeql-action/pull/2229) | ||
| - Bump the minimum CodeQL bundle version to 2.12.6. [#2232](https://github.com/github/codeql-action/pull/2232) | ||
| - We are rolling out a feature in April 2024 that improves the reliability and performance of analyzing code when using the `autobuild` build mode. This feature uses direct tracing to trace the build when the `autobuild` build mode is specified using the `build-mode` input to the `init` Action. [#2335](https://github.com/github/codeql-action/pull/2335) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There's a lot going on in this changelog. Can you add some links to external docs around direct tracing. Also, is there a github changelog post for the build-mode changes you can link to?
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.
Fair point — I'll leave the details out of the changelog note, and link some docs about build modes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,30 @@ | |||
| name: "Autobuild direct tracing" | |||
| description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild', with direct tracing enabled" | |||
| operatingSystems: ["ubuntu"] | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we be testing on windows, too?
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.
Yes, I think this makes sense. It doesn't really give us any additional confidence that the code changes are correct, but it does give us better confidence that direct tracing is working as expected.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| name: "Autobuild direct tracing" | ||
| description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild', with direct tracing enabled" | ||
| operatingSystems: ["ubuntu"] | ||
| versions: ["latest", "nightly-latest"] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not something to fix in this PR, but how can we ensure that as we release new versions of the CLI, we add them to the matrix? There are other integration tests that only run on "latest", "nightly-latest" because when we wrote them, those were the only versions that supported the feature being tested.
Could we add a minimum-version property so that tests that specify it run on all CLI versions >= the minimum version?
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.
I like this idea, but I think it's beyond the scope of this PR. I'll file an issue.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (config.buildMode === BuildMode.Autobuild) { | ||
| applyAutobuildAzurePipelinesTimeoutFix(); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand why're now applying this fix only if we're using autobuild/direct tracing 🤔 it looks like we set those options unconditionally in the past.
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.
I think this PR should be additive when it comes to applying this fix — previously we applied it to the autobuild Action only, now we also apply it to database trace-command calls.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - Automatically overwrite an existing database if found on the filesystem. [#2229](https://github.com/github/codeql-action/pull/2229) | ||
| - Bump the minimum CodeQL bundle version to 2.12.6. [#2232](https://github.com/github/codeql-action/pull/2232) | ||
| - We are rolling out a feature in April 2024 that improves the reliability and performance of analyzing code when using the `autobuild` build mode. This feature uses direct tracing to trace the build when the `autobuild` build mode is specified using the `build-mode` input to the `init` Action. [#2335](https://github.com/github/codeql-action/pull/2335) | ||
| - We are rolling out a feature in April/May 2024 that improves the reliability and performance of analyzing code when analyzing a compiled language with the `autobuild` [build mode](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#codeql-build-modes). [#2335](https://github.com/github/codeql-action/pull/2335) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Just noticed PR number should be 2235 instead of 2335 😸
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.