Rin Kuryloski
ff6713d13d
Fix deps for rabbit_common in make
...
so that dialyze passes
2024-04-18 19:11:01 +02:00
Luke Bakken
349e0a5040
Move dep_credentials_obfuscation to rabbitmq-components.mk
...
Potential fix for publishing to hex.pm
2023-05-22 13:10:30 -07:00
Rin Kuryloski
eb94a58bc9
Add a workflow to compare the bazel/erlang.mk output
...
To catch any drift between the builds
2023-05-15 13:54:14 +02:00
Michael Klishin
8ad1c8be5c
Bump credentials_obfuscation to 3.2.0
2022-11-08 03:35:33 +04:00
Luke Bakken
553aab51c9
Update branch names and links
...
Fix publish of libs to hex.pm
@lhoguin noticed that the hex packages for the amqp_client, amqp10_client and related project do not currently work with erlang.mk. This PR fixes this issue.
Tested using this project: https://github.com/lukebakken/amqp-clients-test.git
2022-09-29 13:58:56 -07:00
Michael Klishin
bad6e394b2
Swap JSX for Thoas in more places
...
and adapt rabbit_json for Thoas in the process.
Pair: @pjk25
2022-07-29 10:34:51 +04:00
Loïc Hoguin
dc70cbf281
Update Erlang.mk and switch to new xref code
2022-05-31 13:51:12 +02:00
Michael Klishin
949f7e37db
Bump credentials_obfuscation to 3.1.0
2022-05-16 23:54:32 +04:00
Michael Klishin
5cf3a43523
Revert "Make master depend on credentials_obfuscation main branch"
...
This reverts commit 62819f3bcc .
This commit has served its QA purpose.
Will either update Bazel dependency to use git or pin to
a new release instead.
2022-05-14 02:58:07 +04:00
Michael Klishin
62819f3bcc
Make master depend on credentials_obfuscation main branch
2022-05-14 01:42:09 +04:00
Michael Klishin
a66ac8c347
Bump credentials_obfuscation to 3.0.0
2022-05-02 11:57:55 +04:00
Michael Klishin
f69fe93136
Correct a double quote introduced in #4603
2022-04-20 16:06:36 +04:00
Michael Klishin
7c47d0925a
Revert "Correct a double quote introduced in #4603"
...
This reverts commit 6a44e0e2ef .
That wiped a lot of files unintentionally
2022-04-20 16:05:56 +04:00
Michael Klishin
6a44e0e2ef
Correct a double quote introduced in #4603
2022-04-20 16:01:29 +04:00
Michael Klishin
cfb1d44920
Correct GitHub repo links in Hex metadata
2022-04-20 11:14:12 +04:00
Luke Bakken
fb5068a80e
Begin work migrating to native hex publishing
...
Use hex for credentials_obfuscation dep
2022-04-19 13:21:52 -07:00
Philip Kuryloski
a63f169fcb
Remove duplicate rabbitmq-components.mk and erlang.mk files
...
Also adjust the references in rabbitmq-components.mk to account for
post monorepo locations
2021-03-22 15:40:19 +01:00
Jean-Sébastien Pédron
cdcf602749
Switch from Lager to the new Erlang Logger API for logging
...
The configuration remains the same for the end-user. The only exception
is the log root directory: it is now set through the `log_root`
application env. variable in `rabbit`. People using the Cuttlefish-based
configuration file are not affected by this exception.
The main change is how the logging facility is configured. It now
happens in `rabbit_prelaunch_logging`. The `rabbit_lager` module is
removed.
The supported outputs remain the same: the console, text files, the
`amq.rabbitmq.log` exchange and syslog.
The message text format slightly changed: the timestamp is more precise
(now to the microsecond) and the level can be abbreviated to always be
4-character long to align all messages and improve readability. Here is
an example:
2021-03-03 10:22:30.377392+01:00 [dbug] <0.229.0> == Prelaunch DONE ==
2021-03-03 10:22:30.377860+01:00 [info] <0.229.0>
2021-03-03 10:22:30.377860+01:00 [info] <0.229.0> Starting RabbitMQ 3.8.10+115.g071f3fb on Erlang 23.2.5
2021-03-03 10:22:30.377860+01:00 [info] <0.229.0> Licensed under the MPL 2.0. Website: https://rabbitmq.com
The example above also shows that multiline messages are supported and
each line is prepended with the same prefix (the timestamp, the level
and the Erlang process PID).
JSON is also supported as a message format and now for any outputs.
Indeed, it is possible to use it with e.g. syslog or the exchange. Here
is an example of a JSON-formatted message sent to syslog:
Mar 3 11:23:06 localhost rabbitmq-server[27908] <0.229.0> - {"time":"2021-03-03T11:23:06.998466+01:00","level":"notice","msg":"Logging: configured log handlers are now ACTIVE","meta":{"domain":"rabbitmq.prelaunch","file":"src/rabbit_prelaunch_logging.erl","gl":"<0.228.0>","line":311,"mfa":["rabbit_prelaunch_logging","configure_logger",1],"pid":"<0.229.0>"}}
For quick testing, the values accepted by the `$RABBITMQ_LOGS`
environment variables were extended:
* `-` still means stdout
* `-stderr` means stderr
* `syslog:` means syslog on localhost
* `exchange:` means logging to `amq.rabbitmq.log`
`$RABBITMQ_LOG` was also extended. It now accepts a `+json` modifier (in
addition to the existing `+color` one). With that modifier, messages are
formatted as JSON intead of plain text.
The `rabbitmqctl rotate_logs` command is deprecated. The reason is
Logger does not expose a function to force log rotation. However, it
will detect when a file was rotated by an external tool.
From a developer point of view, the old `rabbit_log*` API remains
supported, though it is now deprecated. It is implemented as regular
modules: there is no `parse_transform` involved anymore.
In the code, it is recommended to use the new Logger macros. For
instance, `?LOG_INFO(Format, Args)`. If possible, messages should be
augmented with some metadata. For instance (note the map after the
message):
?LOG_NOTICE("Logging: switching to configured handler(s); following "
"messages may not be visible in this log output",
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH}),
Domains in Erlang Logger parlance are the way to categorize messages.
Some predefined domains, matching previous categories, are currently
defined in `rabbit_common/include/logging.hrl` or headers in the
relevant plugins for plugin-specific categories.
At this point, very few messages have been converted from the old
`rabbit_log*` API to the new macros. It can be done gradually when
working on a particular module or logging.
The Erlang builtin console/file handler, `logger_std_h`, has been forked
because it lacks date-based file rotation. The configuration of
date-based rotation is identical to Lager. Once the dust has settled for
this feature, the goal is to submit it upstream for inclusion in Erlang.
The forked module is calld `rabbit_logger_std_h` and is based
`logger_std_h` in Erlang 23.0.
2021-03-11 15:17:36 +01:00
Michael Klishin
e5def7f612
Use credentials_obfuscation master in RabbitMQ master
2021-02-07 20:58:07 +03:00
Michael Klishin
ccfd6627eb
Remove Ranch dependency from rabbit_common
...
It is not actually used there and may complicate dependency resolution
for RabbitMQ Erlang client users.
Per discussion with @dumbbell
2021-01-07 17:53:47 +03:00
Michael Klishin
e8cb671633
Bump credentials_obfuscation version
2020-12-21 03:42:42 +03:00
Jean-Sébastien Pédron
778e8dad5c
rabbit_common: Remove the rabbitmq-github-actions Erlang.mk plugin
...
This is unused after the switch to the "monorepository".
2020-11-17 15:29:05 +01:00
Michael Klishin
4deee618ab
Bump credentials_obfuscation to 2.2.0
2020-08-14 08:02:13 +03:00
Michael Klishin
2473d9e62c
Bump credentials_obfuscation to 2.1.1
2020-07-29 04:42:02 +03:00
Jean-Sébastien Pédron
368586ec1b
Switch to Mozilla Public License 2.0 (MPL 2.0)
2020-07-07 18:06:39 +02:00
Luke Bakken
846ac6e957
Update to credentials_obfuscation 2.0
...
Part of the following:
https://github.com/rabbitmq/credentials-obfuscation/pull/5
2020-05-20 16:08:26 -07:00
Jean-Sébastien Pédron
7bf6f736a3
rabbitmq-github-actions.mk: New Erlang.mk plugin to help manage GitHub Actions workflows
...
The main entry point is `make github-actions` which generates the
workflows.
Currently, it handles workflows to test the project with different
versions of Erlang.
2020-04-27 13:22:34 +02:00
Philip Kuryloski
7ef99b8e25
Avoid the dependency on rabbit_ct_helpers in worker_pool_SUITE
...
This breaks the cyclic dependency between rabbitmq_ct_helpers and
rabbit_common.
2020-03-25 10:33:06 +01:00
Michael Klishin
435e493491
Add rabbitmq_ct_helpers to test dependencies
...
Requried as of #368 .
2020-03-25 01:15:49 +03:00
Michael Klishin
735c47eca9
Depend on credentials_obfuscation 1.1.0
2019-08-20 13:21:40 +10:00
Michael Klishin
91dd7dd1ab
A typo
2019-08-20 13:13:07 +10:00
Michael Klishin
b4990145de
Use credentials_obfuscation from Hex
2019-08-20 13:10:07 +10:00
Arnaud Cogoluègnes
e4a935c49f
Use credentials obfuscation application
...
rabbit_pbe is now delegating calls to the credentials obfuscation
app/library.
[#167070941 ]
References rabbitmq/rabbitmq-erlang-client#123
2019-08-13 09:50:25 +02:00
Spring Operator
882876297b
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.
* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
([https](https://blog.listincomprehension.com/search/label/procket ) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/TOML ) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/subproc ) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
([https](https://e2project.org ) result AnnotatedConnectException).
* http://erlang.org/doc/apps/erts/erl_ext_dist.html (200) with 1 occurrences could not be migrated:
([https](https://erlang.org/doc/apps/erts/erl_ext_dist.html ) result ConnectTimeoutException).
* http://erlang.org/doc/man/erlang.html (200) with 1 occurrences could not be migrated:
([https](https://erlang.org/doc/man/erlang.html ) result ConnectTimeoutException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
([https](https://nitrogenproject.com/ ) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
([https](https://proper.softlab.ntua.gr ) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
([https](https://yaws.hyber.org ) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
([https](https://choven.ca ) result ConnectTimeoutException).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
https://fixtrading.org ([https](https://fixprotocol.org/ ) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
https://erldb.org ([https](https://erldb.org ) result UnknownHostException).
* http://host (UnknownHostException) with 1 occurrences migrated to:
https://host ([https](https://host ) result UnknownHostException).
* http://host:port/foo (UnknownHostException) with 2 occurrences migrated to:
https://host:port/foo ([https](https://host:port/foo ) result UnknownHostException).
* http://www.cs.indiana.edu/~burger/fp/index.html (301) with 1 occurrences migrated to:
https://cs.indiana.edu/~burger/fp/index.html ([https](https://www.cs.indiana.edu/~burger/fp/index.html ) result 404).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://cloudi.org/ with 27 occurrences migrated to:
https://cloudi.org/ ([https](https://cloudi.org/ ) result 200).
* http://en.wikipedia.org/wiki/X86-64 with 1 occurrences migrated to:
https://en.wikipedia.org/wiki/X86-64 ([https](https://en.wikipedia.org/wiki/X86-64 ) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
https://erlware.org/ ([https](https://erlware.org/ ) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/ ) result 200).
* http://lukego.livejournal.com/6753.html with 1 occurrences migrated to:
https://lukego.livejournal.com/6753.html ([https](https://lukego.livejournal.com/6753.html ) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
https://ninenines.eu ([https](https://ninenines.eu ) result 200).
* http://semver.org/ with 1 occurrences migrated to:
https://semver.org/ ([https](https://semver.org/ ) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
https://www.actordb.com/ ([https](https://www.actordb.com/ ) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html ) result 200).
* http://www.erlang.org/ with 2 occurrences migrated to:
https://www.erlang.org/ ([https](https://www.erlang.org/ ) result 200).
* http://www.mail-archive.com/asn1@asn1.org/msg00460.html with 1 occurrences migrated to:
https://www.mail-archive.com/asn1@asn1.org/msg00460.html ([https](https://www.mail-archive.com/asn1@asn1.org/msg00460.html ) result 200).
* http://www.rabbitmq.com/ with 2 occurrences migrated to:
https://www.rabbitmq.com/ ([https](https://www.rabbitmq.com/ ) result 200).
* http://www.rabbitmq.com/amqp-0-9-1-errata.html with 1 occurrences migrated to:
https://www.rabbitmq.com/amqp-0-9-1-errata.html ([https](https://www.rabbitmq.com/amqp-0-9-1-errata.html ) result 200).
* http://www.rabbitmq.com/memory.html with 1 occurrences migrated to:
https://www.rabbitmq.com/memory.html ([https](https://www.rabbitmq.com/memory.html ) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
https://www.rebar3.org ([https](https://www.rebar3.org ) result 200).
* http://code.google.com/p/clink/issues/detail?id=141 with 1 occurrences migrated to:
https://code.google.com/p/clink/issues/detail?id=141 ([https](https://code.google.com/p/clink/issues/detail?id=141 ) result 301).
* http://contributor-covenant.org with 1 occurrences migrated to:
https://contributor-covenant.org ([https](https://contributor-covenant.org ) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/ ) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl ) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/ ) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
https://lasp-lang.org/ ([https](https://lasp-lang.org/ ) result 301).
* http://msdn.microsoft.com/en-us/library/aa366778 with 1 occurrences migrated to:
https://msdn.microsoft.com/en-us/library/aa366778 ([https](https://msdn.microsoft.com/en-us/library/aa366778 ) result 301).
* http://msdn.microsoft.com/en-us/library/bb540814 with 1 occurrences migrated to:
https://msdn.microsoft.com/en-us/library/bb540814 ([https](https://msdn.microsoft.com/en-us/library/bb540814 ) result 301).
* http://rabbitmq.com/documentation.html with 1 occurrences migrated to:
https://rabbitmq.com/documentation.html ([https](https://rabbitmq.com/documentation.html ) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec ) result 301).
* http://www.erlang.org/doc/system_principles/versions.html with 1 occurrences migrated to:
https://www.erlang.org/doc/system_principles/versions.html ([https](https://www.erlang.org/doc/system_principles/versions.html ) result 301).
* http://www.mozilla.org/MPL/ with 66 occurrences migrated to:
https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/ ) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli ) result 301).
2019-03-20 03:13:48 -05:00
Jean-Sébastien Pédron
16d171c26d
Makefile: Add missing dependencies to `$(LOCAL_DEPS)`
...
Dialyzer reports less missing types and unknown functions.
2019-02-01 10:45:29 +01:00
Jean-Sébastien Pédron
c3628055ab
Makefile: Remove the Hex.pm `maintainers` field from .app
...
It is now deprecated by Hex.pm.
2019-01-08 08:57:51 +01:00
Loïc Hoguin
ed7802233d
Use the built-in Ranch PROXY protocol support
2018-12-04 12:29:29 +01:00
kjnilsson
8a7441cbca
Add a few applications to PLT_APPS
2018-09-28 12:59:02 +01:00
Jean-Sébastien Pédron
757dac1858
Merge branch 'stable'
2017-11-02 17:59:54 +01:00
Jean-Sébastien Pédron
8149f9cbff
erlang.mk: Disable `proper` plugin
...
[#152509619 ]
2017-11-02 14:40:37 +01:00
Michael Klishin
c3589141b6
This should be MIN_ERTS_VER
...
The new state is used starting with OTP 18, not up to it
2017-10-16 10:44:59 +03:00
Michael Klishin
2ed32e450d
Merge pull request #230 from feng19/new_sup2_state
...
fix supervisor2's state for get {badrecord,state} error when release upgrade
2017-10-15 16:22:22 -07:00
feng19
1569cf21aa
fix supervisor2's state for get {badrecord,state} error when release upgrade
2017-10-13 13:23:56 +08:00
Michael Klishin
a63ff6bedb
Fix a DEPS merge
2017-10-12 18:37:47 +03:00
Luke Bakken
7a8f7be7c4
Change recon to a build dep to remove applicaton dependency
...
DEPS it is
Use application:ensure_all_started to start up dependencies as well
2017-10-12 18:31:27 +03:00
Luke Bakken
1578bba13e
Change recon to a build dep to remove applicaton dependency
...
DEPS it is
Use application:ensure_all_started to start up dependencies as well
2017-10-06 10:10:50 -07:00
Michael Klishin
1cc6f99d7c
Merge branch 'stable'
2017-10-06 12:56:01 +01:00
Michael Klishin
9cacaddbe5
Revert "Merge branch 'rabbitmq-common-224' into stable"
...
This reverts commit d553e72af9 , reversing
changes made to 5b014bae4b .
This needs more work on the server end: recon must be started by the time
vm_memory_monitor runs.
2017-10-06 12:53:33 +01:00
Michael Klishin
ace2ec7adc
Merge branch 'stable'
2017-10-06 12:17:10 +01:00
Luke Bakken
d03bc866a0
Use recon_alloc:memory on Win32
...
Fixes #224
2017-10-03 12:59:53 -07:00