-
Notifications
You must be signed in to change notification settings - Fork 20
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
Test TravisCI #95
base: upstream
Are you sure you want to change the base?
Test TravisCI #95
Conversation
7f0b1c1
to
bbd5b45
Compare
a554e71
to
6968a67
Compare
Ok it works well enough to prove the point, I'm expecting a student to be working on this from 18th June. |
2aaf2e7
to
8e951bc
Compare
* Copy HOME from standard environment * Add dependency on protobuf 3.6.0 * Install knc * Install protocols to /usr/local/lib/... * Use locally installed knc * Force service name to be aquilon * Set keytab location Change-Id: I3dabb9e17d9ad4686a19336e121b1aceb925cf0d
Let's see how far we get
It turned out to be easier to get kerberos installed and running on Travis than to fake it. We built and tested that as a separate repository https://github.com/jrha/krb5-travis and this makes use of those scripts. There are a few places where we played around with modifying
Getting the DSDB related tests to run feels like fighting multiple Catch 22s, particularly due to this block of code, I think we've got as we can without input from experts... @urbonegi? |
Change-Id: I9c010847d3b14e10d8c2f7946a3164f44011c9d0
Ok, I've added that and tried with DSDB enabled, but all the tests now fail at a lower level because they cannot import |
@jrha strange... The import should work cause it will import from the 'fakemodules' in case the unittest run. This is achieved with a help of this config option: Maybe old version of the aquilon code does not have the newest unittest conf with fakemodule path. Or the fakemodele itself: I will try setup this myself, in case none of the above helps :) |
except ImportError: | ||
pass | ||
else: | ||
ms.version.addpkg('setuptools', '0.6c11') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this one is added? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, I copied and pasted it from you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i might have copied if from somewhere else. My bad. Actually we might release this fix ourselves next week and push to github. Will let you know then we can rebase this one :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool
This is still not ready for review, I'm working on debugging the python environment still. |
.travis.yml
Outdated
@@ -6,7 +6,7 @@ before_script: | |||
- curl https://raw.githubusercontent.com/jrha/krb5-travis/master/install_knc | bash | |||
- wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip -O /tmp/protoc.zip && cd /tmp && unzip /tmp/protoc.zip && sudo cp bin/protoc /usr/bin/ && sudo chmod ugo+x /usr/bin/protoc | |||
- cd /tmp && git clone https://github.com/quattor/aquilon-protocols.git && cd aquilon-protocols && git checkout upstream && ./setup.py build && sudo ./setup.py install --install-lib /usr/local/lib/aquilon/protocols/lib/python | |||
- cd $TRAVIS_BUILD_DIR/tools/bootstrap_ms && python setup.py install | |||
- cd $TRAVIS_BUILD_DIR/tools/bootstrap_ms && python setup.py install && ls /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way to check this would be to try to run the Aquilon dev server outside MS with the updated config to include [unittest] section and fake_module_location = %(srcdir)s/tests/fakemodules/
It is not easy to recreate this in MS cause we have modified python which does mess with sys path and import itself. I do not have Aquilon dev environment outside MS, if the import ms.dsdb.client
keeps failing i might create one and help out with this. I have an idea that we might need to add import ms
for the outside MS...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The kludge I've got now seems to be working, but yes it would be better to find a cleaner way to get it working.
3182b17
to
6585a70
Compare
Change-Id: I193a4a302c71195ef4b53c060e3ef782beacfe5f
Phew! At least the tests seem to be failing for more reasonable reasons now. |
Awesome! You made me nervous of my python skills :) so the current failures are also about DSDB, however, these are different DSDB integration which is even more interesting. Idea is that we call dsdb_fakebin instead of real one: |
Change-Id: I05db6b3f2ea1743d68753ef4d8b4a743588d77a6
Looks like the answer to that is no! |
Change-Id: I7b1e4f2d9c747f4560745a1d1cad65317182a63b
At least the git based checks are working now. |
c5e9611
to
643da45
Compare
Change-Id: I6f7ba5a9da3c1341bfa56788ee48510853ce0b61
Just a comment to mention I'm happy that we're moving on having tests done directly in here too! |
Hi @jrha, I’m looking for something to contribute, can I try to continue this, as you proposed in PR 102? |
Yes please, feel free to fork my branch. |
DO NOT MERGE!
Proof of concept, modifies code all over the place to get tests running.