Git Product home page Git Product logo

Comments (4)

ftrvxmtrx avatar ftrvxmtrx commented on May 25, 2024

You could also try http://goci.me/

from amqp.

streadway avatar streadway commented on May 25, 2024

cheers @ftrvxmtrx, I'm pretty far with TravisCI support and @peterbourgon is working together with the Travis team to get a little more first-class Go support.

The unit tests are passing fine, but the integration tests (when AMQP_URL is in the environment during go test) are not completing in time. If http://goci.me had a RabbitMQ server within local range, I'd be welcome to try that as well. So far I can't narrow it down, nor get a stacktrace on timeout to see where the stall is actually happening. I suspect it's due to buggy shutdown, but would like to get a local or remote reproduction case to break into or stack dump.

http://travis-ci.org/#!/streadway/amqp for progress on the build.

from amqp.

peterbourgon avatar peterbourgon commented on May 25, 2024

re: Rabbit in Travis, it should work as-is with default credentials, so the timeouts indicate perhaps something else. I know I had to add basic sleep+retry logic to some unit tests of mine which depended on a server (which the unit test started) being present. Or maybe some error in "localhost" vs. "127.0.0.1" resolution? Maybe see these steps for how to explicitly set credentials. Also, note of warning:

we will have to disable most services on boot soon to save some memory, so
if you add a before_install line like this: sudo service rabbitmq-server start,
it should be future proof

edit: more suggestions: try enquotifying the AMQP_URL, and/or try adding this to the .travis.yml

before_script: sudo service rabbitmq-server status

second edit: actually, I'd bet it's that ConsumeBigBody test. It takes even a long time on my laptop, which is much more powerful than the Travis VMs.

from amqp.

streadway avatar streadway commented on May 25, 2024

Looks like the stall is related to a race condition in RabbitMQ where the consumer is getting handled after the publisher is finished. This should cause the test to fail and a wire dump will reveal if the messages are sent in the correct order and will likely require a small sleep between consumer setup and publishings.

The rest of the travis integration went very well now with native Go language support thanks to @peterbourgon and @michaelklishin.

from amqp.

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.