Skip to content

Commit

Permalink
Add Gubernator, a GAE proxy for displaying test results stored on GCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hitchman committed May 5, 2016
1 parent 6d5acc6 commit c7db964
Show file tree
Hide file tree
Showing 40 changed files with 5,090 additions and 0 deletions.
1 change: 1 addition & 0 deletions gubernator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
16 changes: 16 additions & 0 deletions gubernator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Gubernator is a frontend for displaying Kubernetes test results stored in GCS.

It runs on Google App Engine, and parses JSON and junit.xml results for display.

An example URL is:

http://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/5043

For development:

- Install the Google App Engine Python SDK
- Run locally using dev_appserver.py
- Visit the example URL at localhost:8080

The tests are run using nose-gae. See the comments in main_test.py for more
information.
19 changes: 19 additions & 0 deletions gubernator/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
application: k8s-gubernator
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico

- url: .*
script: main.app

libraries:
- name: webapp2
version: "2.5.2"
- name: jinja2
version: "2.6"
Binary file added gubernator/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions gubernator/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
indexes:

# AUTOGENERATED

# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run. If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying "# AUTOGENERATED"). If you want to manage some indexes
# manually, move them above the marker line. The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.
Binary file added gubernator/kube_results.tar.gz
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Metadata-Version: 1.0
Name: GoogleAppEngineCloudStorageClient
Version: 1.9.22.1
Summary: This library is the preferred way of accessing Google Cloud Storage from App Engine. It was designed to replace the Files API. As a result it contains much of the same functionality (streaming reads and writes but not the complete set of GCS APIs). It also provides key stability improvements and a better overall developer experience.
Home-page: https://code.google.com/p/appengine-gcs-client/
Author: Google App Engine
Author-email: [email protected]
License: Apache License 2.0
Description: UNKNOWN
Keywords: google app engine cloud storage
Platform: UNKNOWN
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MANIFEST.in
README
distribute_setup.py
setup.cfg
setup.py
GoogleAppEngineCloudStorageClient.egg-info/PKG-INFO
GoogleAppEngineCloudStorageClient.egg-info/SOURCES.txt
GoogleAppEngineCloudStorageClient.egg-info/dependency_links.txt
GoogleAppEngineCloudStorageClient.egg-info/top_level.txt
GoogleAppEngineCloudStorageClient.egg-info/zip-safe
cloudstorage/__init__.py
cloudstorage/api_utils.py
cloudstorage/cloudstorage_api.py
cloudstorage/common.py
cloudstorage/errors.py
cloudstorage/rest_api.py
cloudstorage/storage_api.py
cloudstorage/test_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
../cloudstorage/__init__.py
../cloudstorage/api_utils.py
../cloudstorage/cloudstorage_api.py
../cloudstorage/common.py
../cloudstorage/errors.py
../cloudstorage/rest_api.py
../cloudstorage/storage_api.py
../cloudstorage/test_utils.py
../cloudstorage/__init__.pyc
../cloudstorage/api_utils.pyc
../cloudstorage/cloudstorage_api.pyc
../cloudstorage/common.pyc
../cloudstorage/errors.pyc
../cloudstorage/rest_api.pyc
../cloudstorage/storage_api.pyc
../cloudstorage/test_utils.pyc
.
dependency_links.txt
PKG-INFO
SOURCES.txt
top_level.txt
zip-safe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cloudstorage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file added gubernator/lib/__init__.py
Empty file.
29 changes: 29 additions & 0 deletions gubernator/lib/cloudstorage/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

"""Client Library for Google Cloud Storage."""




from .api_utils import RetryParams
from .api_utils import set_default_retry_params
from cloudstorage_api import *
from .common import CSFileStat
from .common import GCSFileStat
from .common import validate_bucket_name
from .common import validate_bucket_path
from .common import validate_file_path
from errors import *
from storage_api import *
Loading

0 comments on commit c7db964

Please sign in to comment.