Giter VIP home page Giter VIP logo

Comments (22)

galbramc avatar galbramc commented on July 21, 2024

your call. should only take a couple of minutes to get things setup with our jenkins, or you can use one that github provides. We have complete control over ours, no idea what they provide.

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Another thing to consider is any dependencies you have. I don't know what machines they are providing for the CI testing, or what means you have to install your dependencies.

Let me know what you want me to do. I just need to know how to run your test (which I assume is the same as gpkit), and what dependencies you have for gpfit.

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

Well, I started looking into TravisCI just so we could check out another CI setup, but quickly learned that "Python builds are not available on the OSX environment." That's enough to make me uncomfortable with Travis as a CI solution for our Python project.

Therefore, @galbramc if you could help us get set up on jenkins we'd really appreciate it. Dependencies for gpfit are:

  • numpy
  • gpkit

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

I presume you want both pull request and push configurations just like you have with gpkit. I also presume you want me to use the master branch of gpkit as the dependency?

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

correct, and correct.

probably don't need to test for multiple solvers -- the part of gpkit that gpfit uses doesn't involve solvers.

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

ok, so do I need to build gpkit, or can I just add the gpkit to the python path?

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

I'm not sure --

We definitely want to be testing gpfit against a current version of gpkit, such as that installed by pip install gpkit. Would the "add the gpkit to the python path" solution automatically keep gpkit up to date at the resolution of our PyPI releases?

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Ok, how about I create a virtualenv were I install gpkit every time we run the tests. That way you always have what you get with pip. Sound good?

Also, could you add from .run_tests import run to init.py in gpfit/tests just for consistency?

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

sounds great.

Just did so in #32. Do you need that change on master or should I leave that branch open as the first test of jenkins/CI?

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Sure leave it open as the first test so I can get the script sorted out

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Do you want pylint? If so, you should probably add the pylint.cfg file from gpkit and grab the code from run() in run_tests.py

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

You also need to give acdl-jenkins the same privlages to gpfit as it has for gpkit before I can test

from gpfit.

whoburg avatar whoburg commented on July 21, 2024
  • ok, I gave acdl-jenkins access
  • by grab the code in run_tests, I assume you mean the xmloutput stuff. Done -- added to this PR.
  • I want pylint and added the config file to this PR, but I'm confused / have a question. I don't actually see pylint warnings over at gpkit, even though I know we have lots of them. Can you re-educate us on how to see how we're doing on pylint?

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

hmmm, still getting this error:
Couldn't create web hook for repository hoburg/gpfit. Does the user (from global configuration) have admin rights to the repository?

Yes the xml stuff.

Let me check the pylint stuff

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

nope, has write access, which is the same setting as gpkit. Does it need admin access?

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Yeah I think it needs admin access...

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Same goes for gpkit, I have seen some complaints about gpkit as well, and this might explain why

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

Here is what is going on with pylint:

https://acdl.mit.edu/csi/job/gpkit_PullRequest/658/buildnode=reynolds,optimizer=mosek/violations/

You currently have 728 violation, however the jenkins default configuration was to allow 999 violations, so this is why you have not gotten any failed builds from pylint.

I can lower the number, but you probably need to start an initiative to become pylint compliant. Presumably it will be easier to get gpfit compliant as it appears to be smaller at the moment.

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

We could gradually lower the threshold so you don't have to fix all problems at once

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

I'm around all day today if you want to get this wrapped up. We should also talk about the pylint configuration

from gpfit.

whoburg avatar whoburg commented on July 21, 2024

coming over now

from gpfit.

galbramc avatar galbramc commented on July 21, 2024

add .pylintrc and pylint.sh to the repo and then I think you can close this issue

(don't forget about test/pylint.cfg)

from gpfit.

Related Issues (20)

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.