Configure Systemd Socket Activation

as new way for Poseidon to accept connections. This should reduce our issues caused by deployments.
This commit is contained in:
Maximilian Paß
2023-12-02 16:56:43 +01:00
parent eaa022282c
commit eaddc65989
11 changed files with 128 additions and 58 deletions

View File

@ -208,9 +208,20 @@ jobs:
./poseidon | tee poseidon.log &
until curl -s --fail http://localhost:7200/api/v1/health ; do sleep 1; done
make e2e-test
- name: Run e2e recovery tests
- name: Setup Poseidon Socket
run: |
killall poseidon
mkdir -p ~/.config/systemd/user
cp ./.github/workflows/resources/poseidon-minimal.socket ~/.config/systemd/user/poseidon.socket
cat ./.github/workflows/resources/poseidon-minimal.service | envsubst > ~/.config/systemd/user/poseidon.service
systemctl --user daemon-reload
systemctl --user start poseidon.socket
- name: Print Poseidon Failure logs
if: failure()
run: journalctl -xen --no-pager
- name: Run e2e recovery tests
run: |
tail -f /var/log/syslog &
make e2e-test-recovery
if: ${{ success() || failure() }}
- name: Convert coverage reports