Git Product home page Git Product logo

neutron's Introduction

neutron

CI Status MergifyStatus Maven Central Scala Steward badge Cats friendly

A pulsar is a celestial object, thought to be a rapidly rotating neutron star, that emits regular pulses of radio waves and other electromagnetic radiation at rates of up to one thousand pulses per second.

pulsar

Disclaimer

Neutron started out as a fork of the original Neutron developed at Chatroulette, which was a project gvolpe started when working at that company. The main motivation for the fork was to support Scala 3, as well as adding other more opinionated changes.

Furthermore, we believe in OSS and want to maintain an Apache Pulsar library compatible with the needs of the community, and not only of the needs of a single company.

Documentation

Check out the microsite.

Development

If you have sbt installed, you don't have to worry about anything. Simply run sbt +test command in the project root to run the tests.

If you are a nix user, make sure you enter a development shell by running nix develop on the project's root.

sbt +test

Remember to first start Pulsar and its configuration via the provided shell script.

./run.sh

Schemas

Working with schemas when using our Pulsar docker-compose configuration.

Get schema compatibility strategy:

$ docker-compose exec pulsar bin/pulsar-admin namespaces get-schema-compatibility-strategy public/default
FULL

Set schema compatibility strategy:

$ docker-compose exec pulsar bin/pulsar-admin namespaces set-schema-compatibility-strategy -c BACKWARD public/default

neutron's People

Contributors

agjacome avatar andreaskostler avatar b3nk3i avatar ckipp01 avatar gvolpe avatar mergify[bot] avatar psisoyev avatar scala-steward avatar

Stargazers

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

Watchers

 avatar

neutron's Issues

Fix CI flake test

A new CI flaky test emerged on #14, but I decided to merge anyway, as all the tests consistently pass locally.

I'd appreciate any help, if someone can run these tests locally and see if it can be reproduced.

I have no idea why it fails on GH actions: https://github.com/profunktor/neutron/runs/5721525999?check_suite_focus=true

[info] dev.profunktor.pulsar.DeduplicationSuite
[error] - Producer deduplicates messages 822ms
[error]   Values not equal: (tests/src/it/scala/dev/profunktor/pulsar/DeduplicationSuite.scala:88)
[error] 
[error]   List(a, b, [b][,][ ]c)  |  List(a, b, c)
[error] 
[error] Failed: Total 13, Failed 1, Errors 0, Passed 12, Ignored 2
[error] Failed tests:
[error] 	dev.profunktor.pulsar.DeduplicationSuite
[error] (tests / IntegrationTest / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 57 s, completed Mar 28, 2022, 2:08:45 PM

If you would like to help, you can follow these steps to get started:

  1. Check out this project.
  2. Make sure you have a JDK installed or use the provided Nix dev-shell.
  3. Install and configure Docker and docker-compose if not installed.
  4. Start up Pulsar by running ./run.sh in the root of the project.
  5. Run tests via sbt it:test.
  6. Run docker-compose exec -T pulsar bin/pulsar-admin topics get-deduplication dedup.
  7. Run docker-compose exec -T pulsar cat conf/standalone.conf | grep 'topicLevelPolicies'.
  8. Report your results (including the outputs of 6 and 7) with your system info in the comments.

I'm on Linux, so I'm especially curious to hear about MacOS users running this test.

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.