GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove the lua tracer feature flag check from the codeql-action. by criemen · Pull Request #1244 · github/codeql-action

Conversation

@criemen

@criemen criemen commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

Always defer to the CLI on the Lua tracer state from now on.

This will turn off Lua tracing when combined with a CLI that has Lua tracing disabled by default, but as Lua tracing and legacy tracing on these CLIs are 100% compatible, that does not pose a problem.
Furthermore, the reduction of complexity in our code is worth turning off Lua tracing for those few users.

Querying the feature flag is becoming soon pointless, as dotcom will always return true anyways.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@criemen
Remove the lua tracer feature flag check from the codeql-action.
3038e97
Always defer to the CLI on the Lua tracer state from now on.
@criemen
criemen requested a review from a team as a code owner September 13, 2022 11:25
cklin
cklin reviewed Sep 13, 2022
View reviewed changes
Comment thread src/codeql.ts
CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED
)))
) {
extraArgs.push("--internal-use-lua-tracing");

@cklin cklin Sep 13, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Since we are no longer explicitly setting --internal-use-lua-tracing, does it mean that the modified action would work only with CLI versions that defaults to Lua tracing?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@criemen criemen Sep 13, 2022

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

No, the action works with all CLI versions, but on some CLI versions the action will now use the legacy tracer instead.
As both tracers are 100% compatible, this is not an issue.
On later CLI versions, where the Lua tracer has gained additional capabilities, we also use it by default.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@criemen
Fix runner integration test.
c256033
This test is broken, as it first sets environment variables, and then
immediately unsets it again.
This only worked by chance with the legacy tracer, and breaks the Lua
tracer.
@henrymercer

henrymercer commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

I suggest we defer merging this to after we've cut the release of the CodeQL Action that'll go into GHES 3.7.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@criemen

criemen commented Sep 13, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Now that you mention it, I think we need to do the opposite and ensure this PR makes it into GHES, otherwise C# tracing will be broken on GHES:

Without the PR, our logic will detect that we're running on GHES, which disables all feature flags.
Therefore, we will pass in --no-internal-use-lua-tracing.
On rc/3.7, unlike main, that flag still has an effect, and disable Lua tracing.
However, we have already deleted the CLR tracer, so the legacy tracer for C# is in a bad shape. Furthermore, we really want to ship the C# improvements also to our GHES customers.

(I had not thought that through before you mentioned GHES here 😬 )

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer

henrymercer commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

Ah, I wasn't aware we'd deleted the CLR tracer in rc/3.7. In that case, it sounds like we need to get this in. AIUI 2.10.5 enables the Lua tracer by default, so the behaviour here of dropping the --internal-use-lua-tracing flag will be to use Lua tracing.

criemen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

henrymercer
henrymercer approved these changes Sep 13, 2022
View reviewed changes
@criemen
criemen merged commit fd4dc5b into main Sep 13, 2022
@criemen
criemen deleted the criemen/remove-lua-tracer-ff branch September 13, 2022 15:49
This was referenced Sep 14, 2022
Merge main into releases/v2 #1246
Merged
Merge releases/v2 into releases/v1 #1248
Merged
This was referenced Jun 22, 2023
[Snyk] Fix for 1 vulnerabilities aliscco/codeql-action#598
Open
[Snyk] Fix for 1 vulnerabilities aliscco/codeql-action#613
Open
This was referenced Nov 30, 2023
[Snyk] Fix for 7 vulnerabilities aliscco/codeql-action#998
Open
[Snyk] Fix for 4 vulnerabilities aliscco/codeql-action#1004
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cklin cklin cklin left review comments
@henrymercer henrymercer henrymercer approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@criemen @henrymercer @cklin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.