Updated: 7/28/2020
NOTE: AutoBugTracker currently exists as two separate and distinct repositories. One, for the local side and the other for the server side. You're currently on the server side 😏 ☀️ 🌊.
AutoBugTracker is a python program that executes a client program, detects bugs, and filters bugs of your choosing. It then sends any bugs it encounters to a server where it, records, and reports the bugs to Github. AutoBugTracker utilizes a PostgreSQL database to help keep things organized and keeps team members updated on the status of bugs via email.
AutoBugTracker facilitates an efficient workflow for programmers, making it a great addition to any development suite.
AutoBugTracker is valuable to developers working in large teams, that need the ability to accumulate a large quantity of debug information from their customers. AutoBugTracker is highly configurable and can be tailored for your teams specific needs.
-
Setting up a google vm instance:
- f1 micro
- Allow http requests
-
Reserve a static IP address for the newly created VM instance
-
Open SSH command line for the newly create VM instance and enter the following commands
sudo apt-get install python-setuptools python-dev build-essential
sudo apt-get install python3-pip
sudo passwd
(set a new root password)su root
(log into root with the password created from the step before)sudo apt-get install docker.io
docker run --rm --name postgresContainer -e POSTGRES_PASSWORD=my_secret_password -d -p 5432:5432 postgres
- set environment variables in your
.bashrc
fileUSERNAME=[EMAIL]
PASSWORD=[PASSWORD]
PYTHONPATH=[path-to-src]
- install dependencies
pip3 install PyGithub
pip3 install psycopg2-binary
pip3 install yagmail
- Run program with
python3 src/Server.py
- Shut down server, update your config file located at
/root .autobug.ini
- Start server back up with
python3 src/Server.py
-
You should now be able to clone the server side repo to the VM instance via SSH.
Database Name: bug_tracker
Database Username: postgres
Database Password: my_secret_password
{
"first": "John",
"last": "Doe",
"email": "[email protected]",
"create_debug_log": true,
"overwrite_previous_entry": false,
"log_file": "log.txt",
"github_integration": false,
"github_access_token": "",
"github_repo_name": "",
"send_email": true,
"send_github_issue": false
}
If create_debug_log
is set to true, AutoBugTracker will create a file for debugging purposes with a filename of log_file
log.txt:
2020-07-15 16:05:07 DEBUG Error while connecting to PostgreSQL Section postgres_server not found on the C:\Users\*****\PycharmProjects\resource\Database.ini file
2020-07-15 16:05:07 DEBUG Could not create table connect() argument after ** must be a mapping, not NoneType
The server side is mostly automated! However, you can login to the server via SSH and:
- Run the AutoBugTracker server side program with
python3 src/Server.py
. - Update the configuration file at
/root .autobug.ini
. - Manipulate the database.
- and end the program / shut the server down with
CTRL + C
.
- Allow customization of program settings via the use of configuration file/s.
- Send emails.
- Instantiate a PostgreSQL database.
- Communicate with Github.
- Notify team members that bugs have been resolved via email automatically from remote server.
- Alter config options at program execution via command line arguments.
😂 Antonio DiMaggio
😏 Ryan Campbell
😆 Ramon Guarnes
😀 Dana Khoshnaw
😊 Princess Kim
😉 Armando Lajara
😎 Mahmoud Al Robiai