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.
  1. 28 Jun, 2022 8 commits
  2. 27 Jun, 2022 9 commits
    • Vikranth Srivatsa's avatar
      Extend AMQP type gen template to support Frame and Record · b2c3ef3c
      Vikranth Srivatsa authored
      
      Summary: Adds extra types in type gen template. This can be used to try fully generating the constants/types file
      
      Test Plan: This will be tested in a later pr by checking if actual packets decoded correctly.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarVikranth Srivatsa <vsrivatsa@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11669
      
      GitOrigin-RevId: 84d0770209ccd0d2ae49b213252740de74c67031
      b2c3ef3c
    • Michelle Nguyen's avatar
      Remove podSecurityPolicy · 938bfce9
      Michelle Nguyen authored
      
      Summary:
      PodSecurityPolicies have been deprecated as of k8s 1.21, and will be removed in K8s 1.25.
      We currently include the podSecurityPolicy by default. Most of the time it is ignored, as people need to enable the admission controller. When the admission controller is enabled, the current podSecurityPolicy isn't correct anyway, as we would also need podSecurityPolicies for the operator. In most cases, users have needed some customization around the podSecurityPolicy to best fit their configurations anyway.
      
      Fixes #371
      
      Test Plan: built Vizier YAMLs
      
      Reviewers: philkuz, vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11680
      
      GitOrigin-RevId: 17a279c94575bf83e403ee0383db9e6314b8dcff
      938bfce9
    • Omid Azizi's avatar
      Reduce flakiness in pgsql_trace_bpf_test · 1699420b
      Omid Azizi authored
      
      Summary:
      Remove flakiness in pgsql_trace_bpf_test by removing a dependence on an external docker image.
      
      Instead use the existing postgres container for the client that we need for the tes.
      
      Test Plan: This is a test update.
      
      Reviewers: #stirling, zasgar
      
      Reviewed By: zasgar
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11675
      
      GitOrigin-RevId: ec560ecfbcb2fe0d944939d119fc7c95b0d40a75
      1699420b
    • Phillip Kuznetsov's avatar
      PXC-221: Update pxapi pypi page · c3027daa
      Phillip Kuznetsov authored
      
      Summary:
      Updated the pxapi pypi page with more links, removing old links, and changing
      Authors -> Maintainers.
      
      Test Plan: uploaded to test pypi
      
      Reviewers: vihang, htroisi
      
      Reviewed By: htroisi
      
      JIRA Issues: PXC-221
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11673
      
      GitOrigin-RevId: 697d2758987ff31fedba2ee4e21326c92a0ea393
      c3027daa
    • Nick Lanam's avatar
      Simpler, more robust embed detection · 30c7f4fb
      Nick Lanam authored
      
      Summary:
      We were detecting embed state by checking the URL. This is clumsy, and breaks when one embedded view links to another without remembering to check that first.
      
      Sorry for the semantic satiation in the following text...
      
      With this change:
      - Embed state is checked by testing if Pixie appears to be in an iframe
      - Most links and buttons that accounted for embed state don't bother anymore, because...
      - A top-level conditional redirect now automatically fixes the URL if it doesn't line up (puts `/embed` at the front of the path if embedded, and removes it otherwise)
      - Routes for embeddable views still need to exist, so those stay.
      - Trying to reach a route that doesn't have an embedded variant defined while embedded will now go to the 404 page instead of breaking out of embedded mode
      - If Pixie is incorrectly embedded or if an embed link is accessed directly, it will fix itself before continuing
      
      Test Plan:
      Try a wide variety of links throughout the app:
      - Access live views normally. Click entity links. Visit credits. Visit admin. Visit `/configure-data-export`.
      - Try bouncing between plugin page and data export overview and data export details and data export history.
      - Do the same when Pixie is embedded.
      - Try embedding without `/embed` in the URL, or going to a `/embed` link in a new tab. Both should correct themselves.
      - It should no longer be possible to, while embedded, "break out" of this mode
      - Trying to embed a path that doesn't have a `/embed` version should now 404 instead of loading like it wasn't embedded. For example, try to embed `/credits`. It should try to change that to `/embed/credits`, which will 404.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11650
      
      GitOrigin-RevId: c9033f4e4f8b5b6d9188acbb0a05af16db72b28c
      30c7f4fb
    • Nick Lanam's avatar
      [PC-1542]: Prevent unintended horizontal scrollbars · 8bf18010
      Nick Lanam authored
      
      Summary:
      Scrollbars are not consistent between browsers, operating systems, and settings for either.
      
      Customizing scrollbars I even more complex, and makes detection of their dimensions somehow even less consistent.
      
      This diff guarantees that `useScrollbarSize` will detect the actual dimensions of the scrollbar (and if it's overlay vs inlay) in Safari, Chrome, and Firefox on macOS, Linux, and Windows, and especially for macOS users who change their system settings for scrollbars (General -> Show scroll bars -> defaults to "When scrolling").
      
      Result is that data tables should no longer fail to reserve space for scrollbars when they should.
      
      This diff also deletes a long-unused file that was still laying around.
      
      Test Plan:
      Run any PxL script with tables in Chrome on macOS with system preference of "When scrolling".
      Do the same in Firefox and also try changing the system setting (reload between changes).
      Try Firefox and Chrome on Ubuntu as well.
      
      In all cases, there should not be any _unexpected_ horizontal scrollbars (tables with too many columns for the space available will still show one).
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1542
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11657
      
      GitOrigin-RevId: cd96499fcd87f1e99b1f9189aeb51be31ab9c2d4
      8bf18010
    • Nick Lanam's avatar
      [PP-3426]: Show status icon of cron history in details · d1b31e76
      Nick Lanam authored
      
      Summary:
      The error column already has this information, but now there's an icon on the left to make it easier to notice.
      
      This involved adding a new feature to the data tables.
      
      {F188519}
      {F188520}
      
      Test Plan:
      Visit cron history for any given script.
      
      Try those with successful runs and those with unsuccessful runs to see both versions.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PP-3426
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11667
      
      GitOrigin-RevId: 42ee20e58cdeea3e41b1f3e1dd5fec49a7d35da6
      d1b31e76
    • Phillip Kuznetsov's avatar
      PXC-205: Add missing styleguide files · 44dccbe4
      Phillip Kuznetsov authored
      
      Summary:
      The styleguide was missing some linked files. We had an internal document with some styles
      so I figured I would just publish that as the cc and go style guides.
      
      I did a brief run through to make sure everything makes sense.
      
      Test Plan: Made sure links work and the guide renders correctly.
      
      Reviewers: michelle, vihang, zasgar, nserrino, oazizi, yzhao
      
      Reviewed By: zasgar
      
      Subscribers: htroisi
      
      JIRA Issues: PXC-205
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11672
      
      GitOrigin-RevId: 6aee975c7405a48599559be2b72de0c1cb1e0d36
      44dccbe4
    • Tharindu Wijewardane's avatar
      Add capability to get pod labels · c3d610b4
      Tharindu Wijewardane authored
      
      Summary:
      Track pod labels and adds a UDF to get pod labels given IDs.
      
      Fixes #449
      Closes #468
      
      Test Plan: Added unit tests
      
      Reviewers: zasgar, michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarTharindu Wijewardane <tharindu.moratuwa@gmail.com>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11678
      
      GitOrigin-RevId: fd84b4dfbe9bfce8da853232cee604417bdf07a7
      c3d610b4
  3. 25 Jun, 2022 2 commits
  4. 24 Jun, 2022 3 commits
  5. 23 Jun, 2022 5 commits
  6. 22 Jun, 2022 5 commits
  7. 21 Jun, 2022 8 commits
    • Nick Lanam's avatar
      [PC-1545]: Allow configuration hiding specific plugin presets · c5f35e93
      Nick Lanam authored
      
      Summary: For a peculiar use case.
      
      Test Plan: Try overriding `hidePresetsForPlugin` in the `data-export` configurable. Whatever logic you put there should be reflected by hiding preset scripts from `/configure-data-export` based on your conditions.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1545
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11651
      
      GitOrigin-RevId: 49543c8b7d86212d410e5215dbe1d899b0f740e4
      c5f35e93
    • Nick Lanam's avatar
      [PC-1544]: Configurable error message on data export with no plugins · 97029511
      Nick Lanam authored
      
      Summary: When Pixie is embedded and there are no enabled plugins while on `/configure-data-export`, the reason may vary. This lets the embedder provide a more specific error message.
      
      Test Plan: Embed Pixie at `/embed/configure-data-export` like usual. Have no plugins enabled. Error message should be the same for a build without private configuration, but private configuration can now override it.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1544
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11645
      
      GitOrigin-RevId: 81f8243693c08a4782bb76e7071a3adaf9a28bc1
      97029511
    • Nick Lanam's avatar
      Fix link that breaks out of embed · 13d4fac8
      Nick Lanam authored
      
      Summary: Viewing cron history and then trying the back link was escaping the embed. Now it's a relative link.
      
      Test Plan:
      Visit `/configure-data-export`. View a script's history, then click the icon in the top left to go back. It should still do so.
      Embed the same view (`/embed/configure-data-export`). Do the same thing. It should work and not break out of the embedded mode.
      
      Reviewers: michelle, vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11646
      
      GitOrigin-RevId: 3b76b2b1dcb27aa9041bfdf80014e2d45480b0e7
      13d4fac8
    • Phillip Kuznetsov's avatar
      Improve px/cluster functions based on process_stats · 75c8222b
      Phillip Kuznetsov authored
      
      Summary:
      This diff improves the px/cluster process_stats scripts to reduce computation and re-use
      a table value.
      
      I discovered these opportunities writing the export script for px/cluster.
      The difference is large, from exectime running against staging.
      *Before:*
      ```
      +------------+-------------------+----------------------+----------------------+---------------------+------------+
      |    NAME    | COMPILATION TIME  | EXEC TIME: EXTERNAL  | EXEC TIME: INTERNAL  |      NUM BYTES      | NUM ERRORS |
      +------------+-------------------+----------------------+----------------------+---------------------+------------+
      | px/cluster | 37.55ms +/- 2.9ms | 899.09ms +/- 24.11ms | 801.11ms +/- 24.15ms | 77654.80 +/- 435.48 |          0 |
      +------------+-------------------+----------------------+----------------------+---------------------+------------+
      ```
      *After:*
      ```
      +------------+--------------------+----------------------+---------------------+---------------------+------------+
      |    NAME    |  COMPILATION TIME  | EXEC TIME: EXTERNAL  | EXEC TIME: INTERNAL |      NUM BYTES      | NUM ERRORS |
      +------------+--------------------+----------------------+---------------------+---------------------+------------+
      | px/cluster | 51.12ms +/- 3.32ms | 395.75ms +/- 10.26ms | 284.5ms +/- 8.52ms  | 78756.50 +/- 325.19 |          0 |
      +------------+--------------------+----------------------+---------------------+---------------------+------------+
      ```
      
      Test Plan:
      Ran the changed functions and compared them to the old results to confirm
      they lined up results
      
      Reviewers: vihang, michelle, jamesbartlett
      
      Reviewed By: jamesbartlett
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11633
      
      GitOrigin-RevId: 01e031aef4d8752b27643b30d41f00f4fb122ec1
      75c8222b
    • Nick Lanam's avatar
      [PC-1543]: Always show tooltips on data table headers · ebc2d4bc
      Nick Lanam authored
      
      Summary: They were previously only showing if the text wasn't already fully visible. This was slightly more confusing than showing them anyway.
      
      Test Plan:
      Run any script or look at data export history or the script drawer (anywhere with a `<DataTable>`).
      Tooltips should appear on hover of any header cell, even if it's wide enough to already show the full text.
      Previously, it would only appear if the text wasn't already fully visible.
      
      Reviewers: michelle, vihang, zasgar
      
      Reviewed By: vihang
      
      JIRA Issues: PC-1543
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11643
      
      GitOrigin-RevId: 5aea3a74effdb7401b82f3010fe768998df4e074
      ebc2d4bc
    • Ryan Cheng's avatar
      Add PL_COVERAGE to failing tests compiled with gcc · 422637e6
      Ryan Cheng authored
      
      Summary: We moved to a deterministic containerized build previously and `PL_COVERAGE` ifdefs were removed in D10602. In D11586, container build was removed. This diff adds back some of the `PL_COVERAGE` to make sure the tests still pass when built with gcc.
      
      Test Plan: Updated tests
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarRyan Cheng <rcheng@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11632
      
      GitOrigin-RevId: dc15bac3013c57e9e07f882a332636c48870ed66
      422637e6
    • Nick Lanam's avatar
      [PP-3380]: Show cron history for export scripts · 9ac7d7ca
      Nick Lanam authored
      
      Summary:
      Adds a new view for export scripts to show their recent run history.
      
      {F188001}
      
      Test Plan:
      Visit `/configure-data-export`. For various scripts:
      - Click the new history icon next to the edit icon to veiw logs
      - Try clicking several clusters in the dropdown to see their history
      - Loading state should be visible
      - Error states should present clearly
      - If a cluster has never run the selected script, a message explaining
        such appears
      - If a cluster HAS run the selected script, you get a full data table
        with the details
      - The top left corner of the page has a back button to return to the
        script list
      - The center of the top of the page shows the plugin name and icon as
        weell as the script that you're viewing
      
      Reviewers: michelle, vihang, philkuz
      
      Reviewed By: philkuz
      
      Subscribers: philkuz
      
      JIRA Issues: PP-3380
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11610
      
      GitOrigin-RevId: 1a93fb1ce79c26ef1645684b8dd75c62f28b1cce
      9ac7d7ca
    • Pete Stevenson's avatar
      PerfProfiler: enable Java symbolization by default. · fad24f10
      Pete Stevenson authored
      
      Summary: We enable Java symbolization by default, and switch the skaffold profile from 'jsyms' to 'no-jsyms'.
      
      Test Plan: Tested one-off on dev. cluster.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      Signed-off-by: default avatarPete Stevenson <jps@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D11597
      
      GitOrigin-RevId: 774da6909507cd3e7a73e4159d9b170d07511824
      fad24f10