Skip to content

[STAL-2465] Switch to ddsa runtime #446

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

Merged
merged 5 commits into from
Jul 16, 2024
Merged

[STAL-2465] Switch to ddsa runtime #446

merged 5 commits into from
Jul 16, 2024

Conversation

jasonforal
Copy link
Collaborator

@jasonforal jasonforal commented Jul 15, 2024

What problem are you trying to solve?

The ddsa runtime solves numerous performance issues, as well as enabling functionality that will allow more powerful and accurate rules to be written.

This was a complete re-write of our existing JavaScript runtime, and so for caution, we implemented it as a feature flag so that we could test it internally to ensure parity across a larger sample size of files and usage (#428).

Running for two weeks confirmed parity (and where not 100%, it is due to false positives/negatives that this PR fixes)

What is your solution?

  • Remove the existing stella runtime (but preserve the compatibility layer so existing rules that haven't been re-written don't break).
  • Preserve --ddsa-runtime as a CLI flag for both the analyzer and the server. Our binaries throw an error upon receiving an unexpected CLI flag, and so to give time for users to change existing usage, we "deprecate" the flag now via a printed warning. We will remove this flag in a future release. (we already clarified the flag was for "internal" use, so this method of deprecating is appropriate)

Alternatives considered

What the reviewer should know

@jasonforal jasonforal requested a review from a team as a code owner July 15, 2024 17:10
@jasonforal jasonforal requested review from iniyarajamani and juli1 and removed request for iniyarajamani July 15, 2024 17:10
@jasonforal
Copy link
Collaborator Author

Rebasing on main to get #448

@jasonforal jasonforal merged commit 7ab807d into main Jul 16, 2024
60 checks passed
@jasonforal jasonforal deleted the jf/STAL-2465 branch July 16, 2024 17:49
@jasonforal jasonforal mentioned this pull request Jul 16, 2024
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