mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
ci: Enable parallel tests again, increase timeouts (#1125)
This commit is contained in:
parent
4c810a5daa
commit
8606348c02
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -27,7 +27,6 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
name: "integration test"
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
|
||||
@ -41,7 +41,7 @@ echo "${_group}Starting Sentry for tests ..."
|
||||
echo 'SENTRY_BEACON=False' >> $SENTRY_CONFIG_PY
|
||||
$dcr web createuser --superuser --email $TEST_USER --password $TEST_PASS || true
|
||||
$dc up -d
|
||||
printf "Waiting for Sentry to be up"; timeout 60 bash -c 'until $(curl -Isf -o /dev/null $SENTRY_TEST_HOST); do printf '.'; sleep 0.5; done'
|
||||
printf "Waiting for Sentry to be up"; timeout 90 bash -c 'until $(curl -Isf -o /dev/null $SENTRY_TEST_HOST); do printf '.'; sleep 0.5; done'
|
||||
echo ""
|
||||
echo "${_endgroup}"
|
||||
|
||||
@ -99,7 +99,7 @@ EVENT_PATH="projects/sentry/internal/events/$TEST_EVENT_ID/"
|
||||
export -f sentry_api_request get_csrf_token
|
||||
export SENTRY_TEST_HOST COOKIE_FILE EVENT_PATH
|
||||
printf "Getting the test event back"
|
||||
timeout 30 bash -c 'until $(sentry_api_request "$EVENT_PATH" -Isf -X GET -o /dev/null); do printf '.'; sleep 0.5; done'
|
||||
timeout 60 bash -c 'until $(sentry_api_request "$EVENT_PATH" -Isf -X GET -o /dev/null); do printf '.'; sleep 0.5; done'
|
||||
echo " got it!";
|
||||
|
||||
EVENT_RESPONSE=$(sentry_api_request "$EVENT_PATH")
|
||||
|
||||
@ -3,6 +3,7 @@ if [[ "$MINIMIZE_DOWNTIME" ]]; then
|
||||
|
||||
# Start the whole setup, except nginx and relay.
|
||||
$dc up -d --remove-orphans $($dc config --services | grep -v -E '^(nginx|relay)$')
|
||||
$dc restart relay
|
||||
$dc exec -T nginx nginx -s reload
|
||||
|
||||
docker run --rm --network="${COMPOSE_PROJECT_NAME}_default" alpine ash \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user