FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make Go a traced language when Go extraction reconciliation is enabled by henrymercer · Pull Request #1228 · github/codeql-action · GitHub

Make Go a traced language when Go extraction reconciliation is enabled - #1228

Merged
henrymercer merged 10 commits into
mainfrom
henrymercer/start-go-tracing-in-init
Sep 2, 2022
Merged

henrymercer merged 10 commits into
mainfrom
henrymercer/start-go-tracing-in-init

Conversation

henrymercer commented Sep 1, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

Based on #1219.

This PR treats Go as a traced language when the beta support for Go extraction reconciliation is enabled (either via an environment variable, for use in testing, or via the feature flag). This has the effect of enabling tracing in init (and disabling it in analyze) when Go extraction reconciliation is enabled.

We add two PR checks to ensure that Go extraction works as expected for workflows with an autobuild step and workflows with custom build steps, in addition to the existing PR check from #1219 relating to (to be) legacy workflows with neither an autobuild step nor custom build steps.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Previously the test depended on `createdDBForScannedLanguages` making no
async calls prior to `codeql resolve extractor`.
Now the test is fixed, we can simplify by introducing an async call.
We now trace in init when using reconciled tracing, so we no longer need
to set the `CODEQL_EXTRACTOR_GO_BUILD_TRACING` environment variable.
henrymercer marked this pull request as ready for review September 1, 2022 17:21
henrymercer requested a review from a team as a code owner September 1, 2022 17:21
Comment thread src/analyze.test.ts
Comment thread src/autobuild-action.ts Outdated
Comment thread src/languages.test.ts Outdated
Comment thread src/languages.ts
Base automatically changed from angelapwen/autobuild-in-analyze to main September 2, 2022 16:36

aeisenberg 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Optional: export getApiDetails() in apiDetails.ts.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL