-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from seriyps/code-change
Add `code_change` implementation and `appup` and hot upgrade test
- Loading branch information
Showing
13 changed files
with
289 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Hot upgrade | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
ci: | ||
name: Hot code upgrade from ${{ matrix.from_version }} on OTP-${{ matrix.otp }} | ||
runs-on: ${{matrix.os}} | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-20.04"] | ||
otp: ["23.3"] | ||
rebar3: ["3.17.0"] | ||
from_version: | ||
- "1.5.2" | ||
- "9c28fb479f9329e2a1644565a632bc222780f1b7" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ matrix.otp }} | ||
rebar3-version: ${{ matrix.rebar3 }} | ||
|
||
- name: Hot-upgrade | ||
run: make hotupgrade_setup BASE_REV=${{ matrix.from_version }} hotupgrade_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{application, pooler, [ | ||
{description, "An OTP Process Pool Application"}, | ||
{vsn, git}, | ||
{registered, []}, | ||
{vsn, "1.6.0"}, | ||
{registered, [pooler_sup, pooler_starter_sup]}, | ||
{applications, [ | ||
kernel, | ||
stdlib | ||
]}, | ||
{mod, {pooler_app, []}}, | ||
{env, []} | ||
{env, []}, | ||
{licenses, ["Apache License 2.0"]}, | ||
{links, [{"Github", "https://github.com/epgsql/pooler"}]} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
% -*- mode: erlang -*- | ||
{"1.6.0", | ||
[{<<"1\\.5\\.2.*">>, | ||
[{update, pooler, {advanced, []}}, | ||
{load_module, pooler_starter}, | ||
{load_module, pooler_app}, | ||
{update, pooler_sup, supervisor}, | ||
{update, pooler_pool_sup, supervisor}, | ||
{update, pooler_starter_sup, supervisor}, | ||
{update, pooler_pooled_worker_sup, supervisor}, | ||
{delete_module, pooler_config}] | ||
}, | ||
{<<"1\\.5\\.3.*">>, | ||
[{update, pooler, {advanced, []}}, | ||
{load_module, pooler_starter}, | ||
{load_module, pooler_app}, | ||
{update, pooler_sup, supervisor}, | ||
{update, pooler_pool_sup, supervisor}, | ||
{update, pooler_starter_sup, supervisor}, | ||
{update, pooler_pooled_worker_sup, supervisor}, | ||
{delete_module, pooler_config}] | ||
} | ||
], | ||
[{<<".*">>, []}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.