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

Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds #1322

Merged
merged 36 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8b8dc7d
Remove `CODEQL_EXTRACTOR_GO_BUILD_TRACING` logic
angelapwen Oct 25, 2022
5503535
Remove `CODEQL_EXTRACTOR_GO_BUILD_TRACING` from test
angelapwen Oct 25, 2022
5864470
Remove unused `CODEQL_ACTION_RECONCILE_GO_EXTRACTION` from tests
angelapwen Oct 25, 2022
74baea2
Remove unused imports
angelapwen Oct 25, 2022
c7793db
Remove Go extraction reconciliation feature flag
angelapwen Nov 4, 2022
3becc76
Update src/languages.ts
angelapwen Nov 4, 2022
7df2d6d
Auto-generated files
angelapwen Nov 4, 2022
16cf4ce
Remove reconciliation from PR checks
angelapwen Nov 4, 2022
c209bf4
Remove redundant PR checks
angelapwen Nov 4, 2022
7dad98d
Add CHANGELOG entry
angelapwen Nov 4, 2022
ac4d339
PR check fixups
angelapwen Nov 4, 2022
949e561
Set `CODEQL_EXTRACTOR_GO_BUILD_TRACING` on again
angelapwen Nov 7, 2022
71369ba
Update CHANGELOG.md
angelapwen Nov 7, 2022
e6882da
Set `CODEQL_EXTRACTOR_GO_BUILD_TRACING` in `init`
angelapwen Nov 7, 2022
a08403b
Reconcile ubuntu version on PR checks
angelapwen Nov 7, 2022
5f635b1
Log Go env variable warning in `init`
angelapwen Nov 7, 2022
8ff4cc6
Test not setting `CODEQL_EXTRACTOR_GO_BUILD_TRACING`
angelapwen Nov 7, 2022
3dad0df
Add go setup action to debug artifact checks
angelapwen Nov 7, 2022
330c7a5
Update CHANGELOG.md
angelapwen Nov 8, 2022
b9539b0
Update user-facing warning log
angelapwen Nov 8, 2022
f16a98a
Apply suggestions from code review
angelapwen Nov 9, 2022
e85af3a
Add `GO111MODULE` to relevant PR checks
angelapwen Nov 10, 2022
d2f02e1
Add Go to multilanguage custom build test
angelapwen Nov 10, 2022
032b9ae
Stop setting `CODEQL_EXTRACTOR_GO_BUILD_TRACING` by default
angelapwen Nov 11, 2022
a1eaa44
Only display message in analyze
angelapwen Nov 11, 2022
1fa94b4
Remove mention of env variable in CHANGELOG
angelapwen Nov 11, 2022
f822e95
Fix linter issue
angelapwen Nov 14, 2022
10ffbfa
Merge branch 'main' into angelapwen/deprecate-go-env-var
angelapwen Nov 14, 2022
2c86f42
Merge remote-tracking branch 'origin/main' into angelapwen/deprecate-…
angelapwen Nov 14, 2022
a16ddd6
Merge remote-tracking branch 'origin/main' into angelapwen/deprecate-…
angelapwen Nov 14, 2022
b298af0
Merge branch 'angelapwen/deprecate-go-env-var' of github.com:github/c…
angelapwen Nov 14, 2022
dd2fdf4
Add setup Go step to unset env var check
angelapwen Nov 14, 2022
16597c3
Update CHANGELOG.md
angelapwen Nov 14, 2022
0d9e1b6
Change log levels to debug
angelapwen Nov 14, 2022
455bbb1
Merge branch 'angelapwen/deprecate-go-env-var' of github.com:github/c…
angelapwen Nov 14, 2022
5ee9bf8
Add PR link to CHANGELOG
angelapwen Nov 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change log levels to debug
  • Loading branch information
angelapwen committed Nov 14, 2022
commit 0d9e1b6581d380ea21d54b93088524f2ab40e0c5
8 changes: 2 additions & 6 deletions lib/analyze-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions src/analyze-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,12 @@ async function runAutobuildIfLegacyGoWorkflow(config: Config, logger: Logger) {
return;
}
if (process.env[util.DID_AUTOBUILD_GO_ENV_VAR_NAME] === "true") {
// This log line is info level while Go extraction reconciliation is in beta.
// We will make it debug level once Go extraction reconciliation is GA.
logger.info("Won't run Go autobuild since it has already been run.");
logger.debug("Won't run Go autobuild since it has already been run.");
return;
}
// This captures whether a user has added manual build steps for Go
if (doesGoExtractionOutputExist(config)) {
// This log line is info level while Go extraction reconciliation is in beta.
// We will make it debug level once Go extraction reconciliation is GA.
logger.info(
logger.debug(
"Won't run Go autobuild since at least one file of Go code has already been extracted."
);
// If the user has run the manual build step, and has set the `CODEQL_EXTRACTOR_GO_BUILD_TRACING`
Expand Down