-
Notifications
You must be signed in to change notification settings - Fork 339
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
C++: Add feature flag for TRAP caching. #2087
Conversation
5b305cc
to
983b5fc
Compare
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.
Thanks, two further comments:
- TRAP caching enablement should probably depend on a few other things. We have an explicit input for disabling TRAP caching, which we should respect. This is used in
getTrapCachingEnabled()
. This function also disables TRAP caching if we're running on a self-hosted runner where the connection to the artifact store might be slow. The only complication with reusing this function is that we probably want to let thetrap-caching
input override the value of the feature flag. - We may want to set
minimumVersion
on the feature flag to avoid printing a log message like "Enabling CodeQL C++ TRAP caching support" when running against an old CLI that doesn't support TRAP caching.
I don't think we do: the feature flag is intended for a gradual rollout rather than long-lived, so I think we do want the feature flag to override it. (And if I understand correctly,
We're not using the environment variable in production yet (or turning the feature flag on). What's the right way to go about |
aad9182
to
c86df54
Compare
That's fair — the expectation for
I think we should probably hold off on merging this PR until we know what the minimum CLI version is that we'd want to enable this for. The alternative is to add an entry to the |
Agreed. My last commit should do that.
👍 |
85ff45a
to
4433a33
Compare
4433a33
to
d0c5ea0
Compare
Pull Request is not mergeable
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.
Closes https://github.com/github/codeql-c-team/issues/2146