This project is mirrored from https://gitee.com/cowcomic/pixie.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 14 Apr, 2022 17 commits
-
-
Michelle Nguyen authored
Summary: We had an issue where cronscripts weren't properly respecting the "enabled" field. When Viziers request the latest cronscripts, this should not include disabled scripts. When a script is disabled, we should not send it to Viziers. Test Plan: unit tests Reviewers: vihang, nserrino Reviewed By: vihang Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11232 GitOrigin-RevId: ae657e3eed1ae90a2b8ff3916ce5bf5ce0484ebe
-
yzhao1012 authored
Summary: Also added a matchers.h to collect different matchers. Test Plan: This changes tests, so will be verified accordingly. Reviewers: #stirling, oazizi Reviewed By: #stirling, oazizi Subscribers: oazizi Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11172 GitOrigin-RevId: 02421a65c28d7134855a6ee3b0968924f6035773
-
Nick Lanam authored
Summary: Adds a checkbox for enabling/disabling TLS security on plugins that permit changing that setting. Includes a tooltip on the checkbox that warns the user that disabling TLS is usually a Bad Idea™. {F184190} Test Plan: - Enable/disable/configure a plugin that does not have `allowInsecureTLS` in its schema. Should work normally. - Try doing the same for a plugin that does have this in its schema. Should see a new checkbox, toggling it should save the setting just like the others. - Disabling this plugin and re-enabling it should reset the checkbox to ENABLE TLS (the default) alongside resetting all of the other values to their blank defaults as usual. Reviewers: michelle, vihang Reviewed By: michelle JIRA Issues: PC-1500 Signed-off-by:
Nick Lanam <nlanam@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11230 GitOrigin-RevId: a94249c67ab9650bad4160425dcafd84d7120853
-
Phillip Kuznetsov authored
Summary: tsia, broke with plugin in pixie module diff. Test Plan: test passes Reviewers: michelle Reviewed By: michelle Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11229 GitOrigin-RevId: a8ebee0f28af00e77199a5edb52d29d749d9ad63
-
Phillip Kuznetsov authored
Summary: Last part of adding support for plugin in pxl, adding Plugin module to the pixie module. Test Plan: Added a test to make sure the plugin was in the module, but doesn't test functionality. That's left in the plugin_test. Reviewers: michelle Reviewed By: michelle Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11228 GitOrigin-RevId: 7e878b64740dbee62b75c18f7e0f055ffd0be2b4
-
Michelle Nguyen authored
Summary: Plugin providers can now specify whether they allow users to enable insecure TLS mode during data export. This updates the script to read it from the YAML and add it to the db. Test Plan: It builds Reviewers: vihang Reviewed By: vihang Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11227 GitOrigin-RevId: aaacb2826e19822a0591edce1fb891362ebb5f8e
-
Michelle Nguyen authored
Summary: If the user has specified that they want to allow insecure mode, we should send that in the OTel config in the executeScriptRequest. Downstream, this tells the otel client to connect to the otel server/collector in insecure mode. Test Plan: existing tests pass Reviewers: vihang, philkuz, nserrino Reviewed By: vihang JIRA Issues: PC-1499 Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11225 GitOrigin-RevId: 5b7f6a2e8c4d6fb96cc7f245974d7786f6d63852
-
Michelle Nguyen authored
Summary: Previous diffs set up the APIs/protos for adding insecure mode configurations to plugins. This diff actually handles updating/getting the flag in the plugin service. Test Plan: unit tests Reviewers: vihang, philkuz, nserrino Reviewed By: vihang JIRA Issues: PC-1499 Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11223 GitOrigin-RevId: 572cc1fd7b8e964fd05891e96286641da96d3d82
-
Michelle Nguyen authored
Summary: Previous diffs updated the APIs to include a new flag for whether the OTel client should accept insecure server connections. This diff actually uses those added fields in the API service. Test Plan: unit tests Reviewers: vihang, philkuz, nserrino Reviewed By: vihang JIRA Issues: PC-1499 Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11224 GitOrigin-RevId: 0bcd82e7324f2e14e2b3897a32bc3a06aa7ab94e
-
Phillip Kuznetsov authored
Summary: Implement the Exec side. Forward the insecure parameter. Test Plan: skaffold test was able to message insecure endpoint. Reviewers: michelle, jamesbartlett Reviewed By: jamesbartlett Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11222 GitOrigin-RevId: f4f44c230c0a8d2456173752e82768dc91d29c29
-
Phillip Kuznetsov authored
Summary: This part does the PxL side. Doesn't wire it up to the execution side yet. Allow users to specify an insecure endpoint. Useful if the OTel collector is in the cluster. Test Plan: Added a test in the pxl side. Will do an integration when everything is in place. Reviewers: michelle, jamesbartlett Reviewed By: jamesbartlett JIRA Issues: PC-1501 Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11218 GitOrigin-RevId: 0a24d74781cb3498a09b99354a2933a97d9da536
-
Phillip Kuznetsov authored
Summary: Supporting remaining overlapping Otel types in Pxl. Now you can specify INT, FLOAT, and BOOLEAN columns in the PxL and it should work end to end. Test Plan: Added a test in otel objects for all the attribute types. Then also udpated the tests in the ir Node to make sure they error out only in missing type cases. Reviewers: michelle, jamesbartlett Reviewed By: jamesbartlett JIRA Issues: PP-3361 Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11216 GitOrigin-RevId: c258ff325b117e6539034bcda159606466f7f052
-
Phillip Kuznetsov authored
Summary: Customer requested these values to be set. For simplicity we've set these as defaults for now. We can modify them in the future. Test Plan: modified tests with changed values Reviewers: michelle, jamesbartlett Reviewed By: michelle JIRA Issues: PP-3362 Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11215 GitOrigin-RevId: d0fbde6693da049845a4b4ad186a0afbe1d9494e
-
Phillip Kuznetsov authored
Summary: Some users wanted support for INT64 types, decided to just add support for all otel types that we overlap with. Test Plan: Added tests with each type and for metrics/spans. Both work. Reviewers: jamesbartlett, michelle Reviewed By: jamesbartlett JIRA Issues: PP-3361 Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11214 GitOrigin-RevId: 7c4cdd7ad64f1de26249268d841b48784cf8c39f
-
Michelle Nguyen authored
Summary: This updates the gql resolver to allow users to fetch whether insecure TLS is allowed for a plugin, and allows user to configure whether insecure TLS should be used or not. This usecase will be common for users who stand up an OTel collector (or other OSS tool) in their cluster but don't want to deal with SSL certs/productionizing their workload yet. Test Plan: Resolver tests succeed Reviewers: nlanam, vihang, philkuz, nserrino Reviewed By: nlanam Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11221 GitOrigin-RevId: 0b6a4c9b27de10d8cd6e7cfb253fddfd4f80ce1a
-
Michelle Nguyen authored
Summary: This diff updates the plugin protos to include whether insecure TLS should be allowed, and whether the user wants to toggle it or not. This usecase will be common for users who stand up an OTel collector (or other OSS tool) in their cluster but don't want to deal with SSL certs/productionizing their workload yet. Test Plan: These are new proto fields that are unused, so no need for testing yet. Reviewers: vihang, philkuz, nserrino Reviewed By: philkuz Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11220 GitOrigin-RevId: 4167dd86d45531ce3621f7df037e70ae7c454622
-
Michelle Nguyen authored
Summary: This diff updates the db to add a column to track whether a plugin provider allows insecure TLS connections between the otel client + receiver. This usecase will be common for users who stand up an OTel collector (or other OSS tool) in their cluster but don't want to deal with SSL certs/productionizing their workload yet. Test Plan: Ran tests which tests the migrations run properly Reviewers: vihang, philkuz, nserrino Reviewed By: philkuz Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11219 GitOrigin-RevId: 6166d75fbca99acf8079baf470e7e568a23b9097
-
- 13 Apr, 2022 5 commits
-
-
yzhao1012 authored
Test Plan: Existing tests Reviewers: #stirling, rcheng Reviewed By: #stirling, rcheng Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11213 GitOrigin-RevId: 7caef5c849dfdbe5d0a5d41c780e50d8f36e3ae4
-
Natalie Serrino authored
Summary: Users want to be able to specify both the memory request and the memory limit for PEMs. Perhaps they only have 2Gi of memory available at deploy time per PEM, but they want to allow for a limit of up to 3Gi before OOMkilling the PEM. This diff updates the CLI, cloud, and operator in order to support that. Additionally, the table store was previously sized at 60% of the total memory limit. Now, the table store will be sized at 60% of the total memory request, to prevent OOMKills that could arise when the two values are different. By default the request will be the same as the limit. These aren't breaking changes, but the request will be the same as the limit in all cases until the user is running the latest release of the CLI, operator, and cloud. Test Plan: ran skaffold versions Reviewers: michelle, oazizi, vihang Reviewed By: michelle JIRA Issues: PP-3356 Signed-off-by:
Natalie Serrino <nserrino@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11198 GitOrigin-RevId: 763248a88d824fa6fd53db8e5cb8bb342f793697
-
yzhao1012 authored
Summary: Testing code for Status should belong to status.h Test Plan: Changing include header, existing tests should cover any problem Reviewers: #stirling, oazizi Reviewed By: #stirling, oazizi Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11173 GitOrigin-RevId: 1b7be8fd5e7926d1653aaf9548bcbb2eadd5dd77
-
yzhao1012 authored
Summary: Flaky tests usually claim that docker run failed, but still shows the correct stdout. Confirmed offline by running the docker run command. And checking the IsRunning(), it actually will correctly returns false if the container already exited by the time the checking is being performed. So add this check. Test Plan: Existing tests Reviewers: #stirling, rcheng Reviewed By: #stirling, rcheng Subscribers: oazizi Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11200 GitOrigin-RevId: 59d5517eb57d1071ca1c2055d0cde8386b7b8f5e
-
James Bartlett authored
Summary: Adds a wrapper around a std::deque that keeps track of time and unique row ID's for each batch in the store. Templated by `StoreType` which allows the very similar logic between hot/cold stores to be deduplicated, and only the batch access logic to be duplicated. Test Plan: No changes to production code in this diff. But this new wrapper has a new test added, and it was tested integrated as part of a future diff. Reviewers: nserrino, philkuz, vihang, zasgar Reviewed By: nserrino Signed-off-by:
James Bartlett <jamesbartlett@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11195 GitOrigin-RevId: a758b3b75cca510c1f7c0ef09228d3eedd9f8850
-
- 12 Apr, 2022 11 commits
-
-
Hannah Troisi authored
Summary: This code generates our datatable docstrings using the pxapi. Test Plan: bazel run //src/carnot/docstring/tables:datatables -- --cluster_id <CLUSTER_ID> --api_key <API_KEY> --output_json $(pwd)/datatable_documentation.json Reviewers: philkuz Reviewed By: philkuz Signed-off-by:
Hannah Troisi <htroisi@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11194 GitOrigin-RevId: a43ef870e29028ed07962e803ea977dc1050c278
-
Vihang Mehta authored
Summary: The run currently runs pre-build but it doesn't need to. This addresses the same. Test Plan: To be tested on Jenkins Reviewers: michelle, zasgar Reviewed By: michelle Signed-off-by:
Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11212 GitOrigin-RevId: 18bfae43f4730e50bd15d97ec3d8e56580170416
-
Phillip Kuznetsov authored
Summary: docstring generator was super messy and not necessary. This changes it to collapse the shell script into the golang file. I kept the shell test around because it's an easy way to verify the docstrings are formatted correctly. Test Plan: Tests pass, made sure that hte output documentation is identical from before the change. Reviewers: vihang, htroisi, michelle Reviewed By: vihang, htroisi Signed-off-by:
Phillip Kuznetsov <pkuznetsov@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11196 GitOrigin-RevId: d6501e8c8cb798b4d85d81190a1e228b9e9a3935
-
Nick Lanam authored
Summary: Adds a tooltip to the switch in `/admin/plugins` when it will disable a plugin. It links to the retention script list so the user can see details about the possible effects. Test Plan: - Enable a plugin in `/admin/plugins` - Hover the disable switch - it should mention preset scripts and the config, and link to them - Go add a couple of custom scripts that use that plugin - Check `/admin/plugins` again, now the custom scripts are mentioned too - Disable the plugin and enable it again. The tooltip should now reflect that the custom scripts were indeed deleted Reviewers: michelle, vihang Reviewed By: michelle JIRA Issues: PC-1493 Signed-off-by:
Nick Lanam <nlanam@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11209 GitOrigin-RevId: f46bee912141393fadc26bed90fb48c8a7a77826
-
Michelle Nguyen authored
Summary: We recently released these with some important changes/updates that would be useful for the plugin. Test Plan: These versions have all been tested and have been rolled out Reviewers: vihang, nserrino Reviewed By: vihang Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11210 GitOrigin-RevId: 426904604bb38588f2672a836cad1cb2d67ea6f4
-
Michelle Nguyen authored
Summary: There's an extra period which causes the build to fail Test Plan: run staging cloud build Reviewers: vihang Reviewed By: vihang Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11208 GitOrigin-RevId: fe1e92342a26c2aa270c2ce05c954183a955b7c3
-
Vihang Mehta authored
Summary: As direct mode is now being removed vizier no longer need a certmgr service. Remove certmgr. Test Plan: Test vizier RC with an operator RC Reviewers: michelle, philkuz Reviewed By: michelle JIRA Issues: PP-3334 Signed-off-by:
Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11204 GitOrigin-RevId: 90b0053e0ee6cedbdb619a5d3b5fb2e88ff1d958
-
Hannah Troisi authored
Summary: Test PxL script: ``` import px df = px.DataFrame(table='process_stats', start_time='-5m') df.pod = df.ctx['pod_name'] df.namespace = df.ctx['namespace'] df = df.groupby(['namespace']).agg( pod_count=('pod', px.count) ) df.pod_count_string = px.itoa(df.pod_count) px.display(df) ``` Test Plan: Added test, deployed vizier and tested with PxL script in summary. Reviewers: nserrino, vihang Reviewed By: vihang Signed-off-by:
Hannah Troisi <htroisi@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11203 GitOrigin-RevId: ecc84501280eaea6be89948e0189e76761940a90
-
Vihang Mehta authored
Summary: If a future version of vizier no longer includes proxy related resources, the operator should now detect and delete those resources. Test Plan: skaffold an operator and make sure it detects the resources properly. Also tested with an operator RC and a vizier RC. Reviewers: michelle, philkuz Reviewed By: michelle JIRA Issues: PP-3354 Signed-off-by:
Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11207 GitOrigin-RevId: 6ae5153f81d067529e439b0d5315f56e9a0ada89
-
Nick Lanam authored
Summary: Due to a bug in Apollo, `useLazyQuery` wasn't calling `onCompleted` in this situation after the first time a lazy query executed, even though it was still invoking the network request again. The bug seems to only trigger when the fetch policy skips cache (like this case does - to avoid ever caching secrets). Setting `notifyOnNetworkStatusChange` makes Apollo check again on refetches and call `onCompleted` correctly. This diff also shows a snackbar on copy like we already do elsewhere. Test Plan: Try to copy the same API or Deployment key twice in `/admin/api-keys` and `/admin/deployment-keys`. It should show a snackbar now, and it should copy the key on every attempt instead of just the first. Reviewers: michelle, vihang Reviewed By: michelle JIRA Issues: PC-1471 Signed-off-by:
Nick Lanam <nlanam@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11205 GitOrigin-RevId: 03081a61d7fcc18e553e4c91e2d906214e72a498
-
Vihang Mehta authored
Summary: If a future version of vizier no longer includes certmgr related resources, the operator should now detect and delete those resources. Test Plan: skaffold an operator and make sure it detects the resources properly. Also needs to be testing with an operator RC and a vizier RC. Reviewers: michelle, philkuz Reviewed By: michelle JIRA Issues: PP-3354 Signed-off-by:
Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11202 GitOrigin-RevId: 9f5d781094b242422dfb08608908f60651e8e482
-
- 11 Apr, 2022 7 commits
-
-
Natalie Serrino authored
Summary: Creating a PxL script to help users understand the retention of their Vizier deployments. Wanted to filter out times of 0 (aka no data reported for that table), but noticed that couldn't compare between time and int. Added conversion func and some missing UDFs. Test Plan: added unit tests Reviewers: zasgar, vihang, jamesbartlett Reviewed By: vihang Signed-off-by:
Natalie Serrino <nserrino@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11201 GitOrigin-RevId: 764fd91f7e1a01400a0e67a2153a552eb754fc9f
-
James Bartlett authored
Summary: Adds another table utility. to keep track of batch sizes (in bytes) for each batch (hot or cold). This information is then used at compaction time to determine what slices of the current hot batches to compact into a compacted cold batch. Test Plan: Added test for this component. Component currently unused in production code. Tested in future diff that integrates it with the table. Reviewers: nserrino, philkuz, vihang, zasgar Reviewed By: nserrino Signed-off-by:
James Bartlett <jamesbartlett@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11176 GitOrigin-RevId: 53dfa77e69ec02f61ea5cf92a3eb560dbb7357c4
-
yzhao1012 authored
Summary: So that container can be removed after exiting. Although there is no sign that this is a real problem. This is potentially helpful to reduce chance of zombie containers in the host system. Test Plan: Existing tests Reviewers: #stirling, rcheng Reviewed By: #stirling, rcheng Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11197 GitOrigin-RevId: e8dcee2b4288a5911e7ada72e69eccfa05fc6b65
-
Michelle Nguyen authored
Summary: This diff updates the script runner to pass a plugin config to the logicalplan state to specify starttime Test Plan: unit test Reviewers: philkuz, vihang Reviewed By: vihang JIRA Issues: PC-1488 Signed-off-by:
Michelle Nguyen <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11185 GitOrigin-RevId: d391f77036634c5b231822da8446178edb83eb60
-
James Bartlett authored
Summary: Another utility that will be used in the coming refactor. This class allows building a compacted arrow Array for each column, from a set of slices of RecordOrRowBatch's. Test Plan: Currently unused by production code, but added a test for this component, and also tested it integrated with other components in later diffs. Reviewers: nserrino, philkuz, vihang, zasgar Reviewed By: zasgar Signed-off-by:
James Bartlett <jamesbartlett@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11144 GitOrigin-RevId: cd9e482a56cb556bf34bf391debfa884c8b9af70
-
James Bartlett authored
Summary: In preparation for a non-trivial refactor of the table store, I am breaking out some of the functionality into helpful utilites in an `internal` directory. This diff adds one of those utilities which is a wrapper around `std::variant<RecordBatchWithCache, schema::RowBatch>` which allows uniform access to both those types without having to worry about the details of `std::visit`, etc. In addition, this wrapper keeps track of a `row_offset_` into the given batch, such that rows can be "removed" from the start of the batch without actually copying/reallocating the underlying data. Instead, removing rows amounts to incrementing `row_offset_` and then each of the access methods respects `row_offset_` and acts as if the `row_offset_` row is the first row in the batch. Test Plan: This component is not yet used in production code. But I added a test for the functionality of this component, and it is tested further on integration with other components in future diffs. Reviewers: nserrino, philkuz, vihang, zasgar Reviewed By: nserrino Signed-off-by:
James Bartlett <jamesbartlett@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11142 GitOrigin-RevId: 2990429dec02ef4dbf71bbfff403eb02c7854901
-
yzhao1012 authored
Test Plan: Existing tests Reviewers: #stirling, oazizi Reviewed By: #stirling, oazizi Signed-off-by:
yzhao1012 <yzhao@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11188 GitOrigin-RevId: 0d8fd57bf46dd016806e164157b9b3cd1c7d4364
-