Skip to content
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.

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

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

Merged
merged 10 commits into from
Sep 2, 2022

Conversation

henrymercer
Copy link
Contributor

@henrymercer henrymercer commented Sep 1, 2022

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 henrymercer marked this pull request as ready for review September 1, 2022 17:21
@henrymercer henrymercer requested a review from a team as a code owner September 1, 2022 17:21
src/analyze.test.ts Show resolved Hide resolved
src/autobuild-action.ts Outdated Show resolved Hide resolved
src/languages.test.ts Outdated Show resolved Hide resolved
src/languages.ts Show resolved Hide resolved
Base automatically changed from angelapwen/autobuild-in-analyze to main September 2, 2022 16:36
Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: export getApiDetails() in apiDetails.ts.

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