-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Using re2 for Timelion regular expressions #55208
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
This might be the reason why using native modules becomes a non-starter... Compiling portable binaries sucks...
|
@kobelb 👀 , ready for review? |
@jbudz not yet... working on getting the actually portable binaries ready, and automating their creation using Travis |
@elasticmachine merge upstream |
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.
LGTM besides the failing type check, regexes are still applied correctly.
@sulemanof Could you check whether this works on Windows due to the native extension?
This theoretically breaks existing timelion visualizations because backtracking doesn't work anymore, right? I don't think it's a big deal because it's just an edge case in a small feature, but it's worth a release note IMHO
* Using re2 for Timelion's regexs * Patching native modules * Restructuring to be more generic * Fixing download_node_builds_task tests * Updating linux sha after properly gzipping the archive * Using a Centos7 machine with devtoolset-6. That's what node does * Using new archives which Travis built for us * Not using a standard import to prevent Kibana from not starting up If the "portable" version of RE2 for some reason isn't truly portable and can't load, we don't want to prevent the rest of Kibana from working properly. This will only prevent Timelion from working, which isn't great, but is less worse * Isolating the require even further * Detecting the package version mismatches, thanks Larry! Co-authored-by: Elastic Machine <[email protected]>
* Using re2 for Timelion's regexs * Patching native modules * Restructuring to be more generic * Fixing download_node_builds_task tests * Updating linux sha after properly gzipping the archive * Using a Centos7 machine with devtoolset-6. That's what node does * Using new archives which Travis built for us * Not using a standard import to prevent Kibana from not starting up If the "portable" version of RE2 for some reason isn't truly portable and can't load, we don't want to prevent the rest of Kibana from working properly. This will only prevent Timelion from working, which isn't great, but is less worse * Isolating the require even further * Detecting the package version mismatches, thanks Larry! Co-authored-by: Elastic Machine <[email protected]>
* master: Endpoint: Change the input type for @kbn/config-schema to work with more schemas (elastic#60007) Using re2 for Timelion regular expressions (elastic#55208) [Monitoring] Re-enable logstash tests (elastic#59815) fix karma debug typo (elastic#60029) Adds telemetry support to alerting and actions plugins (elastic#58081)
* Using re2 for Timelion's regexs * Patching native modules * Restructuring to be more generic * Fixing download_node_builds_task tests * Updating linux sha after properly gzipping the archive * Using a Centos7 machine with devtoolset-6. That's what node does * Using new archives which Travis built for us * Not using a standard import to prevent Kibana from not starting up If the "portable" version of RE2 for some reason isn't truly portable and can't load, we don't want to prevent the rest of Kibana from working properly. This will only prevent Timelion from working, which isn't great, but is less worse * Isolating the require even further * Detecting the package version mismatches, thanks Larry! Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* Using re2 for Timelion's regexs * Patching native modules * Restructuring to be more generic * Fixing download_node_builds_task tests * Updating linux sha after properly gzipping the archive * Using a Centos7 machine with devtoolset-6. That's what node does * Using new archives which Travis built for us * Not using a standard import to prevent Kibana from not starting up If the "portable" version of RE2 for some reason isn't truly portable and can't load, we don't want to prevent the rest of Kibana from working properly. This will only prevent Timelion from working, which isn't great, but is less worse * Isolating the require even further * Detecting the package version mismatches, thanks Larry! Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* Using re2 for Timelion's regexs * Patching native modules * Restructuring to be more generic * Fixing download_node_builds_task tests * Updating linux sha after properly gzipping the archive * Using a Centos7 machine with devtoolset-6. That's what node does * Using new archives which Travis built for us * Not using a standard import to prevent Kibana from not starting up If the "portable" version of RE2 for some reason isn't truly portable and can't load, we don't want to prevent the rest of Kibana from working properly. This will only prevent Timelion from working, which isn't great, but is less worse * Isolating the require even further * Detecting the package version mismatches, thanks Larry! Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Reverted as this causes compilation errors locally in certain python environments, which aren't documented or validated and don't have any suggested way methods for being fixed. It seems like we should be using the prebuilt versions of re2 unless otherwise instructed from an environment variable or something. Macos Version: 10.15.3 The errors I'm getting locally when I try to bootstrap:
|
…5208) (elastic#60055)"" This reverts commit 7fd86d6.
* Revert "Revert "Using re2 for Timelion regular expressions (#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]>
* Revert "Revert "Using re2 for Timelion regular expressions (elastic#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]>
* Revert "Revert "Using re2 for Timelion regular expressions (elastic#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]>
* Revert "Revert "Using re2 for Timelion regular expressions (#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* Revert "Revert "Using re2 for Timelion regular expressions (#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* Revert "Revert "Using re2 for Timelion regular expressions (#55208)"" This reverts commit c90293d. * Updating re2 to 1.14.0. Still need to update build patching * Extract the gzip to the destination, supporting multiple extract methods * Adding 'node' to jest's moduleFileExtensions 'node' is in the defaults, not sure why we aren't using the defaults... https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
No description provided.