Skip to content

Commit

Permalink
Merge branch 'master' into rabbitmq-server-500
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jun 29, 2016
2 parents 71e2710 + f0f43f8 commit e4884ff
Show file tree
Hide file tree
Showing 171 changed files with 19,140 additions and 2,346 deletions.
23 changes: 13 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
.sw?
.*.sw?
*.beam
.erlang.mk/
cover/
debug/
deps/
debug/
doc/
ebin/
etc/
logs/
plugins/
*.coverdata
/.erlang.mk/
/cover/
/debug/
/deps/
/debug/
/doc/
/ebin/
/etc/
/logs/
/plugins/
/test/ct.cover.spec
/xrefr

PACKAGES/

Expand Down
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ addons:
packages:
- xsltproc
otp_release:
- "R16B03-1"
- "17.5"
- "18.0"
- "18.3"
env:
matrix:
- GROUP=1 GROUP=2
Expand Down
44 changes: 44 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open
and welcoming community, we pledge to respect all people who contribute through reporting
issues, posting feature requests, updating documentation, submitting pull requests or
patches, and other activities.

We are committed to making participation in this project a harassment-free experience for
everyone, regardless of level of experience, gender, gender identity and expression,
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses,
without explicit permission
* Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or reject comments,
commits, code, wiki edits, issues, and other contributions that are not aligned to this
Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors
that they deem inappropriate, threatening, offensive, or harmful.

By adopting this Code of Conduct, project maintainers commit themselves to fairly and
consistently applying these principles to every aspect of managing this project. Project
maintainers who do not follow or enforce the Code of Conduct may be permanently removed
from the project team.

This Code of Conduct applies both within project spaces and in public spaces when an
individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
contacting a project maintainer at [info@rabbitmq.com](mailto:info@rabbitmq.com). All complaints will
be reviewed and investigated and will result in a response that is deemed necessary and
appropriate to the circumstances. Maintainers are obligated to maintain confidentiality
with regard to the reporter of an incident.

This Code of Conduct is adapted from the
[Contributor Covenant](http://contributor-covenant.org), version 1.3.0, available at
[contributor-covenant.org/version/1/3/0/](http://contributor-covenant.org/version/1/3/0/)
17 changes: 2 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,9 @@ If what you are going to work on is a substantial change, please first ask the c
of their opinion on [RabbitMQ mailing list](https://groups.google.com/forum/#!forum/rabbitmq-users).


## (Brief) Code of Conduct
## Code of Conduct

In one line: don't be a dick.

Be respectful to the maintainers and other contributors. Open source
contributors put long hours into developing projects and doing user
support. Those projects and user support are available for free. We
believe this deserves some respect.

Be respectful to people of all races, genders, religious beliefs and
political views. Regardless of how brilliant a pull request is
technically, we will not tolerate disrespectful or aggressive
behaviour.

Contributors who violate this straightforward Code of Conduct will see
their pull requests closed and locked.
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).


## Contributor Agreement
Expand Down
38 changes: 13 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
rabbit_common/mk/rabbitmq-dist.mk \
rabbit_common/mk/rabbitmq-tools.mk

CT_OPTS += -ct_hooks cth_surefire

# FIXME: Use erlang.mk patched for RabbitMQ, while waiting for PRs to be
# reviewed and merged.

Expand All @@ -42,6 +44,7 @@ DISTRIBUTED_DEPS := rabbitmq_amqp1_0 \
rabbitmq_event_exchange \
rabbitmq_federation \
rabbitmq_federation_management \
rabbitmq_jms_topic_exchange \
rabbitmq_management \
rabbitmq_management_agent \
rabbitmq_management_visualiser \
Expand All @@ -51,7 +54,9 @@ DISTRIBUTED_DEPS := rabbitmq_amqp1_0 \
rabbitmq_shovel \
rabbitmq_shovel_management \
rabbitmq_stomp \
rabbitmq_top \
rabbitmq_tracing \
rabbitmq_trust_store \
rabbitmq_web_dispatch \
rabbitmq_web_stomp \
rabbitmq_web_stomp_examples
Expand All @@ -65,6 +70,9 @@ DEPS += $(DISTRIBUTED_DEPS)
endif
endif

# FIXME: Remove rabbitmq_test as TEST_DEPS from here for now.
TEST_DEPS := amqp_client meck proper $(filter-out rabbitmq_test,$(TEST_DEPS))

include erlang.mk

# --------------------------------------------------------------------
Expand All @@ -83,12 +91,6 @@ ifdef CREDIT_FLOW_TRACING
RMQ_ERLC_OPTS += -DCREDIT_FLOW_TRACING=true
endif

ERTS_VER := $(shell erl -version 2>&1 | sed -E 's/.* version //')
USE_SPECS_MIN_ERTS_VER = 5.11
ifeq ($(call compare_version,$(ERTS_VER),$(USE_SPECS_MIN_ERTS_VER),>=),true)
RMQ_ERLC_OPTS += -Duse_specs
endif

ifndef USE_PROPER_QC
# PropEr needs to be installed for property checking
# http://proper.softlab.ntua.gr/
Expand All @@ -101,24 +103,6 @@ clean:: clean-extra-sources
clean-extra-sources:
$(gen_verbose) rm -f $(EXTRA_SOURCES)

# --------------------------------------------------------------------
# Tests.
# --------------------------------------------------------------------

TARGETS_IN_RABBITMQ_TEST = $(patsubst %,%-in-rabbitmq_test,\
tests full unit lite conformance16 lazy-vq-tests)

.PHONY: $(TARGETS_IN_RABBITMQ_TEST)

tests:: tests-in-rabbitmq_test

$(TARGETS_IN_RABBITMQ_TEST): $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
test-build $(DEPS_DIR)/rabbitmq_test
$(MAKE) -C $(DEPS_DIR)/rabbitmq_test \
IS_DEP=1 \
RABBITMQ_BROKER_DIR=$(RABBITMQ_BROKER_DIR) \
$(patsubst %-in-rabbitmq_test,%,$@)

# --------------------------------------------------------------------
# Documentation.
# --------------------------------------------------------------------
Expand Down Expand Up @@ -218,6 +202,7 @@ RSYNC_FLAGS += -a $(RSYNC_V) \
--exclude 'plugins/' \
--exclude '$(notdir $(DIST_DIR))/' \
--exclude '/$(notdir $(PACKAGES_DIR))/' \
--exclude '/PACKAGES/' \
--exclude '/cowboy/doc/' \
--exclude '/cowboy/examples/' \
--exclude '/rabbitmq_amqp1_0/test/swiftmq/build/'\
Expand Down Expand Up @@ -275,7 +260,10 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
$(verbose) cat packaging/common/LICENSE.tail >> $@/LICENSE
$(verbose) find $@/deps/licensing -name 'LICENSE-*' -exec cp '{}' $@ \;
$(verbose) for file in $$(find $@ -name '*.app.src'); do \
sed -E -i.bak -e 's/[{]vsn[[:blank:]]*,[[:blank:]]*""[[:blank:]]*}/{vsn, "$(VERSION)"}/' $$file; \
sed -E -i.bak \
-e 's/[{]vsn[[:blank:]]*,[[:blank:]]*""[[:blank:]]*}/{vsn, "$(VERSION)"}/' \
-e 's/[{]broker_version_requirements[[:blank:]]*,[[:blank:]]*\[\][[:blank:]]*}/{broker_version_requirements, ["$(VERSION)"]}/' \
$$file; \
rm $$file.bak; \
done
$(verbose) echo "$(PROJECT) $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" > $@/git-revisions.txt
Expand Down
43 changes: 0 additions & 43 deletions build.config

This file was deleted.

3 changes: 2 additions & 1 deletion docs/rabbitmq-server.service.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# systemd unit example
[Unit]
Description=RabbitMQ broker
After=syslog.target network.target
After=network.target epmd@0.0.0.0.socket
Wants=network.target epmd@0.0.0.0.socket

[Service]
Type=notify
Expand Down
27 changes: 27 additions & 0 deletions docs/rabbitmqctl.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,33 @@
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><cmdsynopsis><command>hipe_compile</command> <arg choice="req"><replaceable>directory</replaceable></arg></cmdsynopsis></term>
<listitem>
<para>
Performs HiPE-compilation and caches resulting
.beam-files in the given directory.
</para>
<para>
Parent directories are created if necessary. Any
existing <command>.beam</command> files from the
directory are automatically deleted prior to
compilation.
</para>
<para>
To use this precompiled files, you should set
<command>RABBITMQ_SERVER_CODE_PATH</command> environment
variable to directory specified in
<command>hipe_compile</command> invokation.
</para>
<para role="example-prefix">For example:</para>
<screen role="example">rabbitmqctl hipe_compile /tmp/rabbit-hipe/ebin</screen>
<para role="example">
HiPE-compiles modules and stores them to /tmp/rabbit-hipe/ebin directory.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>

Expand Down
Loading

0 comments on commit e4884ff

Please sign in to comment.