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. 01 Feb, 2022 3 commits
  2. 31 Jan, 2022 4 commits
    • Nick Lanam's avatar
      [PC-1405]: Put monospace font in theme · 257399aa
      Nick Lanam authored
      
      Summary: Part of removing hardcoded values all over.
      
      Test Plan:
      Visually compare to main wherever monospace text appears.
      It should look the same as before if fonts load.
      If fonts load slowly or fail, we should now always see the same fallback.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1405
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10625
      
      GitOrigin-RevId: aa12af3676adda75bf343c813629ea1560746eb5
      257399aa
    • yzhao1012's avatar
      Move HTTP2 ProcessToRecords() to header and add CONN_TRACE · 8b2b5883
      yzhao1012 authored
      
      Summary:
      Make the HTTP2 specialization close to the original template for easier contrasting.
      For example, the missed CONN_TRACE could be discovered easier.
      
      Test Plan: Jenkins
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avataryzhao1012 <yzhao@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10617
      
      GitOrigin-RevId: a73e00c1f6c3cdb5fd182601e446e7a2bdff1424
      8b2b5883
    • Phillip Kuznetsov's avatar
      Cleanup cloudconn/bridge.StartStream() · c2085bfa
      Phillip Kuznetsov authored
      
      Summary:
      We had an unnecessary argument in StartStream() and we were being too defensive about the
      nats channel. This diff removes those two things.
      Functionality should remain the same.
      
      Test Plan: Tested on skaffold. Received/sent messages. Recovered during cloud outages.
      
      Reviewers: michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10609
      
      GitOrigin-RevId: 7a9f7f0dcb1d968785dabb0439def928c079f2c3
      c2085bfa
    • James Bartlett's avatar
      Enable easier local development of external dependencies. · b709f1c9
      James Bartlett authored
      
      Summary:
      There was a lot of pain making changes to bcc, because bazel would rebuild all of bcc and all of bpftrace everytime you made a change.
      This diff allows people to locally develop external dependencies and build their artifacts themselves. This way people can take advantage of make/cmake incremental builds while developing locally.
      By default, this diff doesn't change the build process at all. But if lines in `repository_locations.bzl` are uncommented, then people can use the new local behaviour for bcc and bpftrace (also if desired other repos, but they aren't setup in this diff).
      
      To achieve this, I add a bazel rule called `local_cc` that mimicks a foreign_cc rule, but instead of running make or cmake, it just copies the artifacts/includes from the specified directories.
      
      This does mean people have to setup the build environment for the external dependencies themselves (when running with the new local repositories, obviously default builds don't have this requirement), but I think people will be happy to do that in exchange for not waiting 3-5 minutes for bcc and bpftrace to rebuild.
      
      Test Plan: Skaffolded with local changes to bcc and bpftrace, and saw that the changes were in effect on the cluster. Skaffolded with the local_repositories commented out, and saw a normal build without the changes to bcc, as expected.
      
      Reviewers: #stirling, vihang, zasgar, #third_party_approvers, yzhao
      
      Reviewed By: #stirling, zasgar, #third_party_approvers, yzhao
      
      Subscribers: yzhao
      Signed-off-by: default avatarJames Bartlett <jamesbartlett@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10583
      
      GitOrigin-RevId: 6b033ef752b879511de258b51cae34a4fa546a26
      b709f1c9
  3. 28 Jan, 2022 10 commits
    • Nick Lanam's avatar
      [PC-1411] Initialize Cypress · e51dbdb2
      Nick Lanam authored
      
      Summary:
      Laying a framework for UI integration testing.
      Actions taken:
      - `yarn add --dev cypress`
      - Added a script shortcut in `package.json`
      - Ran `yarn cypress:open`
      - After that worked, cleared out the example files
      - Added a single test suite for auth
      - With env file config and sample
      - Tweaked eslint config for Cypress globals
      
      Here's what the GUI looks like with the sample test showing successful access to the Live UI:
      {F176859}
      
      Test Plan:
      - `yarn install`
      - Prepare environment variables following the instructions in `cypress/README.md`:
        - Find your base URL - it's where you go when you run `yarn dev` to test your local UI.
        - Get your Google session cookie for that environment (it's the value of the cookie `default-session5`).
        - If you don't want to put the cookie on the command line later, you can copy `cypress.template.env.json` to `cypress.env.json` and put the cookie's value there. If you specify the env var on the command line AND in this file, the command line value takes priority.
      - `yarn dev` to start the UI. Where you access this is the `CYPRESS_BASE_URL`, port included!
      - `CYPRESS_BASE_URL='...' CYPRESS_GOOGLE_COOKIE='...' yarn cypress:open` to play around with the GUI. It does quite a lot of stuff!
      - `CYPRESS_... yarn cypress:run` to run the tests headlessly, entirely in your CLI.
      
      Reviewers: michelle, vihang, #third_party_approvers, zasgar
      
      Reviewed By: michelle, #third_party_approvers
      
      JIRA Issues: PC-1411
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10556
      
      GitOrigin-RevId: 125affefff1277daace04de46cf107b57cf1a2cf
      e51dbdb2
    • Omid Azizi's avatar
      Stirling Socket Tracer: Flags to control perf buffer sizes. · 643632f9
      Omid Azizi authored
      
      Summary:
      Expose some flags so users can reduce the perf buffer sizes.
      
      This may be useful for a future low-memory mode.
      
      Test Plan: Rely on existing tests to validate the default values for now.
      
      Reviewers: #stirling, jamesbartlett, yzhao
      
      Reviewed By: #stirling, yzhao
      
      Subscribers: yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10599
      
      GitOrigin-RevId: 9653025b05223b8f89eac03f0edf05d809f7ca1d
      643632f9
    • Omid Azizi's avatar
      Clean-up go_grpc_client/server build rules · 629f3682
      Omid Azizi authored
      
      Summary: Use the new pl_aux_go_binary() rule to simplify the build of the go binaries in go_grpc_client/server.
      
      Test Plan: Existing tests.
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10618
      
      GitOrigin-RevId: ca5e4597baeb38d466974a7b4a8ba51a9ba6c7cc
      629f3682
    • Omid Azizi's avatar
      [Cleanup] Bazel macro for building go test images · 9c098317
      Omid Azizi authored
      
      Summary:
      The pattern of building Go binaries in containers as Stirling test binaries is a common one.
      
      This introduces a macro to simplify the process of creating such binaries.
      
      Follow-ups will apply this pattern to some of the other Stirling test go binaries we have in our repo.
      
      Test Plan: Existing tests
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      
      Subscribers: yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10606
      
      GitOrigin-RevId: ba26c275a009973d9449c1549090321464fb147b
      9c098317
    • Nick Lanam's avatar
      [PC-1409]: Remove unused styles, part 2 · 5499e800
      Nick Lanam authored
      
      Summary:
      Lots of classes/styles that weren't used; just removing them.
      
      A couple of specific rules were also no-ops (due to being invalid), so they were removed too after checking that they looked correct as-is.
      
      Test Plan: Smoke test. No visible change; this was dead code.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1409
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10622
      
      GitOrigin-RevId: 21cd2142139d6033e66c39a734c0a6edfe01cfa2
      5499e800
    • Nick Lanam's avatar
      [PC-1412]: Always use name with `makeStyles` · 7fd26392
      Nick Lanam authored
      
      Summary: TSIA. For easier troubleshooting and consistency.
      
      Test Plan: N/A; only changes CSS class names.
      
      Reviewers: michelle, vihang
      
      Reviewed By: michelle
      
      JIRA Issues: PC-1412
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10621
      
      GitOrigin-RevId: 087bc09d3d0b1587e3a1db3ea0f5db69e7911498
      7fd26392
    • Pete Stevenson's avatar
      Add Java agent libs (.so files) into pem image, needed for Java symbolization. · 0d107f94
      Pete Stevenson authored
      
      Summary: For Java symbolization, we will use a JVMTI agent. This diff adds the .so lib files, for this agent, into the PEM (Pixie Edge Module) image. At this time, there are two agent libs: one to link vs. glibc, and one to link vs. musl.
      
      Test Plan: None at this time. A later diff that completes the Java symbolization effort will include a test.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      
      JIRA Issues: PP-2982
      Signed-off-by: default avatarPete Stevenson <jps@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10616
      
      GitOrigin-RevId: 3f56d28b4409e9f2821b764b244f007b88534d7d
      0d107f94
    • Michelle Nguyen's avatar
      Write to dev helm charts for operator RCs · 7b78a2b7
      Michelle Nguyen authored
      
      Summary:
      We currently only build helm charts for official operator release versions. However, this makes testing the helm chart for RCs difficult (currently manually update the operator_build_release to deploy to the test charts bucket).
      We should just update our release build to always write rcs to our test charts.
      Also added a step in our operator testing checklist for testing the dev helm chart.
      
      Test Plan: Deploy an RC, check GCS to confirm the charts from been pushed to dev
      
      Reviewers: vihang, zasgar
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10614
      
      GitOrigin-RevId: 7f2b19c633139484d1649fcca258e6465bd4c288
      7b78a2b7
    • Nick Lanam's avatar
      [PP-3213] Check sessionStorage availability before use · 324ace61
      Nick Lanam authored
      
      Summary: TSIA.
      
      Test Plan: Load Pixie (and sign in) in an incognito tab in a Chrome browser. Or any other security context where a browser blocks `sessionStorage`.
      
      Reviewers: michelle, vihang
      
      Reviewed By: vihang
      
      JIRA Issues: PP-3213
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10615
      
      GitOrigin-RevId: e566cc191003e4f3e3d5ba48fbe0252a48ed69a8
      324ace61
    • Pete Stevenson's avatar
      PerfProfiler: copy up & rename agent.so libs (will want this later when we... · f8bc0767
      Pete Stevenson authored
      PerfProfiler: copy up & rename agent.so libs (will want this later when we copy them into the pem image).
      
      Summary: We need unique basenames for agent.so files, based on their libc linkage. We plan to put them into the pem image under /pl, and later copy them into /tmp in the target container mount namespace.
      
      Test Plan: Existing.
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      
      JIRA Issues: PP-2982
      Signed-off-by: default avatarPete Stevenson <jps@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10613
      
      GitOrigin-RevId: b1e67fb49e869fc4f5121a15e06443ddaf165002
      f8bc0767
  4. 27 Jan, 2022 13 commits
  5. 26 Jan, 2022 8 commits
    • Vihang Mehta's avatar
      Move Jenkins jobs to new cluster · 93848497
      Vihang Mehta authored
      
      Summary: Use new cluster for jobs
      
      Test Plan: Jenkins should work
      
      Reviewers: zasgar, michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10595
      
      GitOrigin-RevId: 7510e197a44fc27ceea9d696aa522d9f0943c19b
      93848497
    • Omid Azizi's avatar
      PerfProfiler: Knobs to control eBPF structure sizes. · 3287b941
      Omid Azizi authored
      
      Summary:
      Add knobs to control the overprovision factors of eBPF data structure sizes.
      
      Also reduce the default values a bit to reduce memory requirements.
      
      Test Plan: These knobs are for back-up controllability. Rely on existing tests to cover the default values.
      
      Reviewers: #stirling, jps
      
      Reviewed By: #stirling, jps
      
      Subscribers: jps
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10596
      
      GitOrigin-RevId: 9fae477a985cae9c798f5e7ac426b7501191a4d5
      3287b941
    • Pete Stevenson's avatar
      Add 'dbg' profile to skaffold_vizier.yaml. · 8e156552
      Pete Stevenson authored
      
      Summary: Allows us to run skaffold and explicitly selcect a 'dbg' compile.
      
      Test Plan: None, this is a dev. tool.
      
      Reviewers: #stirling, michelle
      
      Reviewed By: michelle
      Signed-off-by: default avatarPete Stevenson <jps@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10594
      
      GitOrigin-RevId: 837925b4e04c4a9944800a5dbcd9925f5d25d893
      8e156552
    • Nick Lanam's avatar
      [PC-1406] Stop using withStyles · b6e66544
      Nick Lanam authored
      
      Summary:
      Material deprecated it in v5.
      Technically all of `@mui/styles` was deprecated in favor of `@mui/system`, but we make an exception for `makeStyles` and `createStyles` due to speed and cleanliness.
      - Drops all uses of `withStyles` and `WithStyles`
      - Uses `makeStyles`, `createStyles`, and `styled` instead as appropriate
      - Removes components that were unused that happened to use `withStyles`
      
      Test Plan:
      Smoke test affected components:
      - Auth messages (any, such as signup completion or the callback page)
      - Tab headers in PxL/Vis editor
      - Marketing blurb in `/auth/signup`
      - Profile menu (dropdown in top right)
      - Admin cluster list
      - Admin cluster details (expand a row!)
      - Admin API/Deployment key pages. Click the icons too.
      - Live view data drawer
      - Deep links in script result tables
      Swapping between a tab from `main` and a tab from this branch should make differences obvious. There should be no style differences.
      
      Reviewers: michelle, vihang
      
      Reviewed By: vihang
      
      JIRA Issues: PC-1406
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10593
      
      GitOrigin-RevId: ba6cfb2db4f21ac3b36f654d18cc8e6c89ed5e7c
      b6e66544
    • Omid Azizi's avatar
      PerfProfiler: Move map size computation to user-space · 83044301
      Omid Azizi authored
      
      Summary: Move map size computations to user-space. This will help as we try to add knobs for controlling data structure sizes with flags.
      
      Test Plan: No functional changes, so existing tests.
      
      Reviewers: #stirling, yzhao, jps
      
      Reviewed By: #stirling, yzhao, jps
      
      Subscribers: jps, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10580
      
      GitOrigin-RevId: 69ee31d41082c535ff3d1feebce8305cb9320394
      83044301
    • Vihang Mehta's avatar
      Add k0s to cluster checker and to list of valid cluster types · 5208423c
      Vihang Mehta authored
      
      Summary:
      After some testing, it appears that pixie works on k0s. Allow k0s
      users to deploy.
      
      Test Plan:
      bazel built the cli and used it to deploy on a k0s cluster. Added
      temporary logging to validate the checker matched.
      
      Reviewers: michelle, nserrino, htroisi
      
      Reviewed By: michelle
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10590
      
      GitOrigin-RevId: 4ec6d18f1dcd9555ced0b4edef066799ba7514bc
      5208423c
    • Vihang Mehta's avatar
      Add PodMonitoring configs · 38cdf2e9
      Vihang Mehta authored
      
      Summary: Add configs to add GKE Workload Metrics scraping to our clusters.
      
      Test Plan: Applied the yamls to staging and testing.
      
      Reviewers: michelle, zasgar
      
      Reviewed By: michelle
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10592
      
      GitOrigin-RevId: 2de27e399b0ad2db4cc2dd75fb02303017431ec7
      38cdf2e9
    • Michelle Nguyen's avatar
      Update helm charts to include deleter role/bindings for deleter job · 57516703
      Michelle Nguyen authored
      
      Summary: We have a deleter job which runs as a pre-delete hook in Helm. This job is tied to a service account that is deployed by the operator. If the user uninstalls the helm chart before the operator is done deploying, the job will fail. Instead, we should deploy a role/binding for the deleter job at the time of the helm deploy.
      
      Test Plan: Build an rc helm chart for operator, deploy the helm chart. Verify that the clusterrole and service account exists. Uninstall the helm chart and ensure that deleter job runs successfully.
      
      Reviewers: vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10589
      
      GitOrigin-RevId: 6d9c1bc7a1b02b232ea69a26c71c14f991cd146b
      57516703
  6. 25 Jan, 2022 2 commits