Skip to content

Commit

Permalink
Add test_ddev.sh and update the issue templates [skip ci][ci skip] (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Mar 9, 2021
1 parent 549852c commit cf65c71
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 36 deletions.
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ assignees: ''

---

**Run a Diagnostic**

If you're having trouble with ddev,

1. Please use the latest stable version of DDEV-Local before reporting. Upgrading is easy.
2. Please run a quick diagnostic and post the results as a new gist on gist.github.com (or on another pastebin-type site if you prefer). You can download [test_ddev.sh](https://raw.githubusercontent.com/drud/ddev/master/scripts/test_ddev.sh) and run it per the instructions at the top, or `curl -sSL https://raw.githubusercontent.com/drud/ddev/master/scripts/test_ddev.sh.sh | bash -s` - That will help so we don't have to ask so many questions... And it it works, it probably means there's something wrong with your project, not ddev.
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

Expand Down
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/Meta.md

This file was deleted.

39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/Support_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Support Request
about: Get help with a problem
title: ''
labels: ''
assignees: ''

---

**Run a Diagnostic**

If you're having trouble with ddev,

1. Please use the latest stable version of DDEV-Local before reporting. Upgrading is easy.
2. Please run a quick diagnostic and post the results as a new gist on gist.github.com (or on another pastebin-type site if you prefer). You can download [test_ddev.sh](https://raw.githubusercontent.com/drud/ddev/master/scripts/test_ddev.sh) and run it per the instructions at the top, or `curl -sSL https://raw.githubusercontent.com/drud/ddev/master/scripts/test_ddev.sh.sh | bash -s` - That will help so we don't have to ask so many questions... And it it works, it probably means there's something wrong with your project, not ddev.

**Describe the Problem**

Please explain exactly what the problem is.

**To Reproduce**

Please describe step-by-step exactly how to recreate the problem you're having.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version and configuration information (please complete the following information):**

This is only necessary if you did *not* run the script above.. which we'd appreciate it if you'd run.

- Host computer OS and Version: [e.g. Windows 10, macOS Big Sur, Linux (distro), WSL2 (distro)]
- Docker Desktop version if on macOS or Windows (from "About Docker Desktop")
- ddev version information (use `ddev version`)
- config.yaml contents for the misbehaving project
- Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? If so, have you tried without them?

**Additional context**
Add any other context about the problem here. Thanks!
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/release-checklist-template.md

This file was deleted.

40 changes: 40 additions & 0 deletions scripts/test_ddev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

# Please run this script with "bash testddev.sh"
# You can copy and paste it (make a file named testddev.sh)
# Or use curl or wget to download the *raw* version.
# If you're on Windows (not WSL2) please run it in a git-bash window
# When you are reporting an issue, please include the full output of this script.
# If you have NFS enabled globally, please temporarily disable it with
# `ddev config global --nfs-mount-enabled=false`

PROJECT_NAME=tryddevproject-${RANDOM}

function cleanup {
printf "\nPlease delete this project after debugging with 'ddev delete -Oy ${PROJECT_NAME}'\n"
}
trap cleanup EXIT

uname -a
ddev version
ls -l "$(which docker)"
ddev poweroff
docker ps -a
docker run -it --rm busybox ls
mkdir -p ~/tmp/${PROJECT_NAME} && cd ~/tmp/${PROJECT_NAME}
printf "<?php\nprint 'ddev is working. You will want to delete this project with \"ddev delete -Oy ${PROJECT_NAME}\"';\n" >index.php
ddev config --project-type=php
ddev start || ( \
set +x && \
ddev list && \
printf "========= web container healthcheck ======\n" && \
docker inspect --format "{{json .State.Health }}" ddev-${PROJECT_NAME}-web && \
printf "============= ddev-router healthcheck =========\n" && \
docker inspect --format "{{json .State.Health }}" ddev-router && \
ddev logs >logs.txt && \
printf "Start failed. Please provide this output and the contents of ~/tmp/${PROJECT_NAME}/logs.txt in a new gist at gist.github.com\n" && \
exit 1 )
echo "Thanks for running the diagnostic. It was successful."
echo "Please provide the output of this script in a new gist at gist.github.com"
echo "Running ddev launch in 5 seconds" && sleep 5
ddev launch

0 comments on commit cf65c71

Please sign in to comment.