Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drupal-contrib/scripts/test-issue-branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ for SPEC in "${TESTS[@]}"; do
continue
fi

# A web request during `drush si` can cache a half-installed container.
ddev drush cr 2>&1 | tail -2

log "Enabling $PROJECT..."
if ! ddev drush en "$PROJECT" -y 2>&1; then
log "WARNING: could not enable $PROJECT (may need manual enable)"
Expand Down
4 changes: 4 additions & 0 deletions drupal-contrib/template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,10 @@ COMPOSE_EOF
fi

if [ "$SETUP_FAILED" = "false" ]; then
# A healthcheck request during `drush si` can cache a half-installed
# container, which breaks the next `drush en`.
ddev drush cr >> "$SETUP_LOG" 2>&1 || true

# Enable the module or theme.
# ddev drush en can exit non-zero even when the module ends up enabled
# (e.g. a post-install hook in another module throws a fatal), so verify
Expand Down
Loading