Skip to content

Instantly share code, notes, and snippets.

View terriyu's full-sized avatar

Terri Yu terriyu

View GitHub Profile

15 Aug 2013

Ubuntu Code of Conduct

I noticed that in Launchpad, it said I hadn't signed the "Ubuntu Code of Conduct" and asked jpich if I need to worry about that. She said:

Nope, that's nothing to worry about, it only matters if you plan on contributing to Ubuntu itself, or participate in its community.

14 Aug 2013

Ceilometer meeting

We discussed the blueprints for the upcoming Havana-3 deadline.

bash warning in Ceilometer test results

thomasm asked me about this warning when he runs the Ceilometer test suite:

13 Aug 2013

Stuff to learn

  • Todo: Learn more about unit testing
  • Todo: Learn more about mocking and how it works in Ceilometer
  • Todo: Learn more about coverage testing and how it works in Ceilometer

Other people patching the bugs I reported

@terriyu
terriyu / ceilometer-test-results-mongodb-username-warnings.txt
Last active December 21, 2015 02:49
I ran the Ceilometer test suite after cherry-picking sileht's patch https://review.openstack.org/#/c/41719/ My goal was to check if the patch eliminates all the annoying MongoDB username/password warnings. Seems like all the warnings were eliminated except for 3.
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a380.gaf61876.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / tox-output-groupby-tests.txt
Last active December 21, 2015 01:48
These are the Ceilometer test results for my 2nd patchset containing storage tests for a group by feature. [Reference: Patch Set 2 of https://review.openstack.org/#/c/41597/]
$ cd /opt/stack/ceilometer
$ tox -e py27 -- storage
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a380.g83df81b.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh storage
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / ceilometer-alarm-test-failures.txt
Last active December 21, 2015 01:48
When I run the ceilometer test suite, I get many failures in the alarm threshold evaluation tests. The error message is: NameError: global name '_' is not defined [Reference: bug report https://bugs.launchpad.net/ceilometer/+bug/1211975]
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a379.g486f723.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / diary-12aug2013.md
Last active December 21, 2015 01:48
Journal for OpenStack Ceilometer work -- 12 Aug 2013

12 Aug 2013

Questions

Beyond unit testing

I wanted to know more about other kinds of testing besides unit testing, for example, coverage testing. Unit testing is the lowest level type of test, but there are higher level tests like integration or validation/verification

@terriyu
terriyu / ceilometer-tests-nova-notifier-failures.txt
Last active December 21, 2015 01:39
When I run the Ceilometer unit tests, the tests for Nova notifier fail. The relevant traceback from running the Ceilometer unit tests: Traceback (most recent call last): File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched return func(*args, **keywargs) File "/opt/stack/ceilometer/nova_tests/tes…
$ cd /opt/stack/ceilometer
$ tox -e py27
GLOB sdist-make: /opt/stack/ceilometer/setup.py
py27 inst-nodeps: /opt/stack/ceilometer/.tox/dist/ceilometer-2013.2.a378.g90ad86c.zip
py27 runtests: commands[0] | bash -x /opt/stack/ceilometer/run-tests.sh
WARNING:test command found but not installed in testenv
cmd: /bin/bash
env: /opt/stack/ceilometer/.tox/py27
Maybe forgot to specify a dependency?
+ set -e
@terriyu
terriyu / stack-sh-log-mongodb-failure.txt
Last active December 21, 2015 01:39
When I run ./stack.sh to install Devstack and it tries to start a MongoDB database connection for Ceilometer, I get the following error: JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
$ ./stack.sh
2013-08-12 19:51:23 stack.sh log /opt/stack/logs/stack.sh.log.2013-08-12-195123
2013-08-12 19:51:23 + echo_summary 'Installing package prerequisites'
2013-08-12 19:51:23 + [[ -t 3 ]]
2013-08-12 19:51:23 + [[ True != \T\r\u\e ]]
2013-08-12 19:51:23 + echo -e Installing package prerequisites
2013-08-12 19:51:23 Installing package prerequisites
2013-08-12 19:51:23 + source /home/vagrant/devstack/tools/install_prereqs.sh
2013-08-12 19:51:23 ++ [[ -n '' ]]
2013-08-12 19:51:23 ++ [[ -z /home/vagrant/devstack ]]