Skip to content
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

WIP: APISnoop Spyglass Lens #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

WIP: APISnoop Spyglass Lens #1

wants to merge 8 commits into from

Conversation

hh
Copy link
Member

@hh hh commented Apr 11, 2019

This is an attempt at developing an APISnoop plugin to display coverage data within prow.k8s.io.
It's not yet ready for a full PR review against kubernetes/test-infra.

@hh
Copy link
Member Author

hh commented Apr 11, 2019

I'm having a bit of trouble getting a our plugin to load:

~/test-infra/prow/cmd/deck$ ./runlocal 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14.4M    0 14.4M    0     0  4887k      0 --:--:--  0:00:03 --:--:-- 4887k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 23209    0 23209    0     0  68869      0 --:--:-- --:--:-- --:--:-- 68869
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2512k    0 2512k    0     0  1795k      0 --:--:--  0:00:01 --:--:-- 1795k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  178k    0  178k    0     0   101k      0 --:--:--  0:00:01 --:--:--  101k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    47  100    47    0     0    141      0 --:--:-- --:--:-- --:--:--   141
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1551387314 -0800"
INFO: Analysed target //prow/cmd/deck:deck (2 packages loaded, 1561 targets configured).
INFO: Found 1 target...
Target //prow/cmd/deck:deck up-to-date:
  bazel-bin/prow/cmd/deck/linux_amd64_pure_stripped/deck
INFO: Elapsed time: 4.276s, Critical Path: 2.18s
INFO: 1 process: 1 linux-sandbox.
INFO: Build completed successfully, 2 total actions
INFO: Running command line: bazel-bin/prow/cmd/deck/linux_amd64_pure_stripped/deck '--pregenerated-data=/home/hippie/test-infra/prow/cmd/deck/localdata' '--static-files-location=./prow/cmd/deck/static' '--template-files-location=./prow/cmd/deck/template' '--spyglass-files-location=./prow/spyglass/lenses' --config-path /home/hippie/test-infra/prow/cmd/deck/../../config.yaml --INFO: Build completed successfully, 2 total actions
INFO[0000] Spyglass registered viewer buildlog with title Build Log. 
INFO[0000] Spyglass registered viewer junit with title JUnit. 
INFO[0000] Spyglass registered viewer metadata with title Metadata. 

Config updated here: 64df654#diff-406185368ba7839d1459d3d51424f104R39

deck:
  spyglass:
    size_limit: 500000000 # 500MB
    gcs_browser_prefix: https://gcsweb.k8s.io/gcs/
    testgrid_config: gs://k8s-testgrid/config
    testgrid_root: https://testgrid.k8s.io/
    viewers:
      "started.json|finished.json":
      - "metadata"
      "build-log.txt":
      - "buildlog"
      "artifacts/junit.*\\.xml":
      - "junit"
      "apisnoop.json":
      - "apisnoop"

@hh
Copy link
Member Author

hh commented Apr 11, 2019

It's just a simple copy of metadata, but now we can explore loading directly directly from prow jobs. @devaii @zachmandeville @heyste

hh pushed a commit that referenced this pull request Apr 17, 2019
* Adding instruction to give user pod access.

* Add instruction to give user cluster-pod-admin access

* make --verb=* instead of specifying one by one.
hh pushed a commit that referenced this pull request Feb 7, 2020
hh pushed a commit that referenced this pull request Feb 7, 2020
Kops - Make periodic e2e more stable #1
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