-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove duplicate debugging section. * Fix how to submit PR and testing. * Reorganize the contribution section. * Add an installation guide under getting started.
- Loading branch information
Showing
33 changed files
with
300 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Architecture Diagram | ||
======================== | ||
|
||
.. image:: ../../images/evadb/evadb-arch.png | ||
:width: 1200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Contributing | ||
---------------- | ||
|
||
We welcome all kinds of contributions to EvaDB. | ||
|
||
- `Code reviews <https://github.com/georgia-tech-db/evadb/pulls>`_ | ||
- `Improving documentation <https://github.com/georgia-tech-db/evadb/tree/master/docs>`_ | ||
- `Tutorials and applications <https://github.com/georgia-tech-db/evadb/tree/master/tutorials>`_ | ||
- `New features <new-command.html>`__ | ||
|
||
This document goes over how to contribute to EvaDB in details. | ||
|
||
.. tableofcontents:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Code Style | ||
============ | ||
|
||
We use the `black <https://github.com/psf/black>`__ code style for | ||
formatting the Python code. For docstrings and documentation, we use | ||
`Google Pydoc format <https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html>`__. | ||
|
||
.. code-block:: python | ||
def function_with_types_in_docstring(param1, param2) -> bool: | ||
"""Example function with types documented in the docstring. | ||
Additional explanatory text can be added in paragraphs. | ||
Args: | ||
param1 (int): The first parameter. | ||
param2 (str): The second parameter. | ||
Returns: | ||
bool: The return value. True for success, False otherwise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Development Environment | ||
===================================================== | ||
|
||
Checkout Latest EvaDB | ||
--------------------- | ||
|
||
First, you will need to checkout the repository from GitHub and build EvaDB from the source. | ||
|
||
.. code-block:: bash | ||
git clone https://github.com/georgia-tech-db/evadb.git && cd evadb | ||
Build EvaDB Locally | ||
------------------- | ||
|
||
Follow the following instructions to build EvaDB locally. We recommend using a virtual environment and the pip package manager. | ||
|
||
.. code-block:: bash | ||
python3 -m venv test_evadb_venv | ||
source test_evadb_venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -e ".[dev]" | ||
After installing the package locally, you can make changes and run the test cases to check their impact. | ||
|
||
.. note:: | ||
|
||
EvaDB provides multiple installation options for extending its functionalities. | ||
Please see :doc:`Installation Guide <getting-started/install-guide>` for all options. | ||
|
||
Other options can be installed with the ``dev`` environment. | ||
|
||
.. code-block:: bash | ||
pip install -e ".[dev,ludwig]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Submitting a PR | ||
============================ | ||
|
||
For every open PR, we only run unit tests and short integration test to facilitate merging features quickly. | ||
Once PR passes those tests, it will be merged into our ``staging`` branch for more comprehensive integration, version, and | ||
application tests. | ||
|
||
Follow the following steps to contribute to EvaDB. | ||
|
||
Sync with ``Staging`` Branch | ||
---------------------------- | ||
|
||
Merge the most recent changes from the ``staging`` branch | ||
|
||
.. code-block:: bash | ||
git remote add origin [email protected]:georgia-tech-db/evadb.git | ||
git pull . origin/staging | ||
Testing | ||
------- | ||
|
||
Run the :doc:`test script <./testing>` to ensure that all the test cases pass. | ||
|
||
Documentation | ||
------------- | ||
|
||
If you are adding a new EvaDB command, add an illustrative example usage in the | ||
`documentation <https://github.com/georgia-tech-db/evadb/tree/master/docs>`_. | ||
|
||
Formatting | ||
---------- | ||
|
||
Run the following command to ensure that code is properly formatted. | ||
|
||
.. code-block:: python | ||
python script/formatting/formatter.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Testing | ||
========= | ||
|
||
Check if your local changes broke any unit or integration tests by running the following script: | ||
|
||
.. code-block:: bash | ||
bash script/test/test.sh | ||
By default, it will run the full test suite. You can also run subset of test suites. | ||
|
||
.. code-block:: bash | ||
# Unit tests. | ||
bash script/test/test.sh -m UNIT | ||
# Integration tests. | ||
bash script/test/test.sh -m "SHORT INTEGRATION" | ||
bash script/test/test.sh -m "LONG INTEGRATION" | ||
If you want to run a specific test file, use the following command. | ||
|
||
.. code-block:: bash | ||
PYTHONPATH="." python -m pytest test/integration_tests/test_select_executor.py | ||
Use the following command to run a specific test case within a specific test file. | ||
|
||
.. code-block:: bash | ||
PYTHONPATH="." python -m pytest test/integration_tests/test_select_executor.py -k 'test_should_load_and_select_in_table' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Troubleshooting | ||
==================== | ||
|
||
If the test suite fails with a `PermissionDenied` exception, update the `path_prefix` attribute under the `storage` section in the EvaDB configuration file (``~/.evadb/evadb.yml``) to a directory where you have write privileges. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.