Giter Site home page Giter Site logo

greentea's People

Contributors

adelton avatar alda519 avatar jhutar avatar kamikazecz avatar omaciel avatar pajinek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

greentea's Issues

ISE 500 - tests.html?search=...

Traceback (most recent call last):
  File "/data/greentea/web/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/data/greentea/web/env/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/data/greentea/web/env/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "./apps/core/views/tests.py", line 97, in dispatch
    return super(TestsListView, self).dispatch(request, *args, **kwargs)
  File "/data/greentea/web/env/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "./apps/core/views/tests.py", line 134, in get
    return super(self.__class__, self).get(request, *args, **kwargs)
  File "/data/greentea/web/env/lib/python2.7/site-packages/django/views/generic/base.py", line 158, in get
    context = self.get_context_data(**kwargs)
  File "./apps/core/views/tests.py", line 238, in get_context_data
    test_ids=test_ids, periodschedules=periodschedules)
  File "./apps/core/views/tests.py", line 290, in prepare_matrix
    'owner__name': i.test.owner.name,
AttributeError: 'NoneType' object has no attribute 'name'

local variable 'distro_name' referenced before assignment

After freshly building docker image and starting the container with my beaker credentials, I've tried to schedule my first job. The documentation is sketchy about the initial setup steps so I just went to http://localhost/import/ and copied in my beaker job XML. I've hit Queue and got error page

local variable 'distro_name' referenced before assignment

Request Method:     POST
Request URL:    http://localhost/import/
Django Version:     1.8.6
Exception Type:     UnboundLocalError
Exception Value:    

local variable 'distro_name' referenced before assignment

Exception Location:     /data/GreenTea/apps/core/utils/beaker_import.py in recipe, line 103
Python Executable:  /data/GreenTea/env/bin/python
Python Version:     2.7.10
Python Path:    

['/data/GreenTea/env/lib/python2.7/site-packages/git/ext/gitdb',
 '/data/GreenTea',
 '/data/GreenTea/env/lib64/python27.zip',
 '/data/GreenTea/env/lib64/python2.7',
 '/data/GreenTea/env/lib64/python2.7/plat-linux2',
 '/data/GreenTea/env/lib64/python2.7/lib-tk',
 '/data/GreenTea/env/lib64/python2.7/lib-old',
 '/data/GreenTea/env/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7',
 '/usr/lib/python2.7',
 '/data/GreenTea/env/lib/python2.7/site-packages',
 '/data/GreenTea/env/lib/python2.7/site-packages/gitdb/ext/smmap']

Server time:    Sun, 8 Nov 2015 13:16:00 +0100

Comment for test

When a test fail with a lot of running task then it is rather lengthy select all run on test page. I would like to select one test and comment that.

'ks_appends' subtree is being stripped from job template XML

When we import a job template whih contain <ks_appends> section to do some custom Kickstart setup, e.g.:

<ks_appends>
        <ks_append><![CDATA[
%post
dnf config-manager -y --set-enabled updates-testing
dnf update -y --best
%end
         ]]></ks_append>
      </ks_appends>

the whole section gets stripped from the job template upon import. This prevents us to run jobs which use custom host configuration, e.g enabling updates-testing on Fedora as can be seen from example.

Functionality to diff phases or testouts of two test runs

It would be nice to have a possibility to diff two (or to display side by side multiple):

  • test journal (phases, asserts, times, results)
  • TESTOUT.log
  • sanitized TESTOUT.log (might be configurable, e.g. timestamps, hostnames, ... sanitized)

history of changes in tests

The test's changes was shown on page of tests. But currently It looks that this feature doesn't work. The commits are shown on dashboard, probably the problem is only on test page.

sql injection in searching by jobs

go to link: /jobs.html?search=Customer's database... and then you received ISE

syntax error at or near "s"
LINE 6: ...) LIKE lower('%Customer's database...

missing template id in url for chart

/jobs.html?tag=proxy?back=10&format_output=txt

ProgrammingError at /jobs.html

syntax error at or near ")"
LINE 6: AND "core_job"."template_id" IN ( )

ISE /accounts/login - kerberos is not set

Show page with information about setup kerberos when kerberos is not set.

Build passed, starting it passed, I get to the main dashboard but on
http://localhost/accounts/login I get

AttributeError at /accounts/login

'NoneType' object has no attribute 'split'

Request Method:     GET
Request URL:    http://ibm-dx360m4-01.rhts.eng.bos.redhat.com/accounts/login
Django Version:     1.5.12
Exception Type:     AttributeError
Exception Value:    

'NoneType' object has no attribute 'split'

Exception Location:     /data/GreenTea/apps/kerberos/views.py in dispatch, line 15
Python Executable:  /data/GreenTea/env/bin/python
Python Version:     2.7.10
Python Path:    

['/data/GreenTea/env/lib/python2.7/site-packages/git/ext/gitdb',
 '/data/GreenTea',
 '/data/GreenTea/env/lib64/python27.zip',
 '/data/GreenTea/env/lib64/python2.7',
 '/data/GreenTea/env/lib64/python2.7/plat-linux2',
 '/data/GreenTea/env/lib64/python2.7/lib-tk',
 '/data/GreenTea/env/lib64/python2.7/lib-old',
 '/data/GreenTea/env/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7',
 '/usr/lib/python2.7',
 '/data/GreenTea/env/lib/python2.7/site-packages',
 '/data/GreenTea/env/lib/python2.7/site-packages/gitdb/ext/smmap']

and

Traceback (most recent call last):
  File "/data/GreenTea/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 113, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/data/GreenTea/env/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/data/GreenTea/apps/kerberos/views.py", line 15, in dispatch
    username, real = self.remote_user.split("@")
AttributeError: 'NoneType' object has no attribute 'split'

on container's output.

Searching in output beaker logs

We save all logs file (testout.log, ..) to local storage and it will be great if we can search in this logs.

  • configure elastic search and indexing files
  • implemented webui page for calling elastic search

lots of errors in info.log

[root@tttt ~]# grep ^Traceback /data/greentea/log/info.log | wc -l
1080
[root@tttt ~]# grep ^ProtocolError /data/greentea/log/info.log | wc -l
1080
[root@tttt ~]# grep "codec can't decode bytes in position" /data/greentea/log/info.log | wc -l
270
PUT http://0.0.0.0:9200/testout.log/log/576513 [status:N/A request:12.865s]
Traceback (most recent call last):
  File "/data/greentea/web/env/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 94, in perform_request
    response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  File "/data/greentea/web/env/lib/python2.7/site-packages/urllib3/connectionpool.py", line 623, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/data/greentea/web/env/lib/python2.7/site-packages/urllib3/util/retry.py", line 232, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/data/greentea/web/env/lib/python2.7/site-packages/urllib3/connectionpool.py", line 578, in urlopen
    chunked=chunked)
  File "/data/greentea/web/env/lib/python2.7/site-packages/urllib3/connectionpool.py", line 362, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib64/python2.7/httplib.py", line 979, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.7/httplib.py", line 1013, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 835, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 811, in send
    self.sock.sendall(data)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
ProtocolError: ('Connection aborted.', error(104, 'Connection reset by peer'))
indexing /.../TESTOUT.log: 'utf8' codec can't decode byte 0xe2 in position 37930: invalid continuation byte

Is that OK? Was investigating this because of higher load on the machine, not sure if that is related.

traceback when test is remove from git

GitCommandError: 'git log --decorate=full --since=7.days --simplify-by-decoration --pretty=%H|%aN|%ae|%ai|%d --follow HEAD /data/tttt/git/yum/Regression/test-installation' returned with exit code 128
stderr: 'fatal: ambiguous argument /data/tttt/git/yum/Regression/test-installation': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions'

Command for scheduling doesn't work

python manage.py beaker schedule --schedule_id=291

Traceback (most recent call last):
File "manage.py", line 16, in
execute_from_command_line(sys.argv)
File "/home/pstudeni/RedHat/git/GreenTea/env/lib/python2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/home/pstudeni/RedHat/git/GreenTea/env/lib/python2.7/site-packages/django/core/management/init.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/pstudeni/RedHat/git/GreenTea/env/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv
handle_default_options(options)
File "/home/pstudeni/RedHat/git/GreenTea/env/lib/python2.7/site-packages/django/core/management/base.py", line 81, in handle_default_options
if options.settings:
AttributeError: Values instance has no attribute 'settings'

Show external links in detail of run

it should be possible add external link to some test for url with documentation or result of performance test. Tests can contains from 0-n external links.

No graphs is shown

on the page jobs I don't see any graphs. The AJAX received empty data from ?tag=&format_output=txt

universal schedule beaker's jobs

Add new model to taskomatic that it descends all jobs of schedule run. For example I want schedule jobs for plan "daily" with schedule run ID 1.

`python manage.py beaker schedule --schedule-daily --label=(daily, nightly,...)

All jobs will contain link to schedule run. On webui data will descend by this ID. currently it uses date for group of recipes and tasks.

Diff page doen't compare correct test

Page /diffs.html should compare two jobs and shows different tests that are included in it. But it doesn't compare tests in group. we need implemented it.

`python manage.py migrate` failing

On a clean installation this is failing:

:: [  BEGIN   ] :: Running 'python manage.py migrate'
SystemCheckError: System check identified some issues:

ERRORS:
?: debug_toolbar.middleware.DebugToolbarMiddleware is missing from MIDDLEWARE_CLASSES.
    HINT: Add debug_toolbar.middleware.DebugToolbarMiddleware to MIDDLEWARE_CLASSES.
:: [   FAIL   ] :: Command 'python manage.py migrate' (Expected 0, got 1)

In default (developer) install there shouldn't be cache enabled

This should not be enabled by default:

CACHES = {
    'default': {
        #'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'gt_cache_table',
        #'LOCATION': 'unique-snowflake'
    }
}

otherwise I was getting:

Internal Server Error: /__debug__/render_panel/
Traceback (most recent call last):
  File ".../GreenTea/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 87, in get_response
    response = middleware_method(request)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/middleware/cache.py", line 148, in process_request
    cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/utils/cache.py", line 223, in get_cache_key
    headerlist = cache.get(cache_key, None)
  File ".../GreenTea/env/lib/python2.7/site-packages/debug_toolbar/panels/cache.py", line 33, in wrapped
    value = method(self, *args, **kwargs)
  File ".../GreenTea/env/lib/python2.7/site-packages/debug_toolbar/panels/cache.py", line 75, in get
    return self.cache.get(*args, **kwargs)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/core/cache/backends/db.py", line 65, in get
    "WHERE cache_key = %%s" % table, [key])
  File ".../GreenTea/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 81, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File ".../GreenTea/env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 485, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: gt_cache_table

and fixed it after Pavel's advice by:

$ ./manage.py createcachetable gt_cache_table
load plugins... ['./manage.py', 'createcachetable', 'gt_cache_table'] (temporary debug)
Cache table 'gt_cache_table' already exists.

Missing systemd script

Write systemd script for restarting service (start/stop). When system is restarting, this service Green Tea is needed run manually

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.