This project has retired. For details please refer to its Attic page.
Apache Trafodion Develop

This page describes how to help develop the Trafodion source tree. Please refer to the Contribute page for information about other ways to contribute to the Trafodion project.

You need to register as a Trafodion contributor before you can help us develop Trafodion. Please perform the following registration actions:

Area Notes URL
Individual Contributor License Agreement (ICLA) You should sign the ICLA before contributing content to the Trafodion source tree. (Required to become a committer.) ICLA Agreement
Approval Process
Source Control You must have a git account in order to contribute to the Trafodion source. If you haven't already done so, please join git. Git Signup
Defect Tracking In order to have certain permissions, including assigning issues to yourself, you need to be a Contributor in the project. Be sure to sign up for a JIRA account if you don't have one. Jira Signup

Please send an e-mail to the Trafodion development list with the approved ICLA attached. Include your git and Jira IDs.

Wait for the response and then you’re ready to help us develop Trafodion.

Development Environment

You use the following tools and guidelines to develop Trafodion:

Area Tool Notes Location
Trafodion Architecture Document Please review the Trafodion architecture to ensure that you understand how the different components related to each other. Trafodion Architecture
Defect Tracking Jira View all the Trafodion defects and enhancements requests in the Jira system hosted by Apache. Trafodion Jiras
Defect Management Document Please read about our approach to defect management. Mostly, any changes you'll make will be in response to a defect reported in Jira. Defect Management (TBD)
Git Tools git

Most of the Trafodion development is done on Linux. Development of the web site and/or documentation can successfully be done on Windows.

Please download the appropriate tool version; Linux or Windows.

Then, please refer to GitHub Documentation for information on how to set up your git environment. Ensure that you register your ssh keys.

Download git
Code Repository git The full Trafodion source tree can be retrieved from either of these repositories. Apache Repository
GitHub Mirror
Code Organization Document Please familiarize yourself with the Trafodion code organization. Code Organization
C++ Coding Guidelines Document Please read the coding guidelines for the Trafodion C++ code before making changes. C++ Coding Guidelines
Debugging Tips Document Documented tips describing how to debug your code in unit testing. Debugging Tips (TBD)
Testing Document Trafodion has a rich set of test suites for each of its components. You'll need to run the tests before submitting a code change for review. How to Test
Code Reviews git

We use GitHub pull-requests for code review. All of the activity on github is captured in ASF JIRA and/or ASF project mail archives by ASF INFRA team automation. In this way, we do not depend on github for accurate history of where contributions come from.

Each pull-request title should start with a JIRA ID in brackets, so that activity can be logged to the correct JIRA issue.

Regardless of the title, the pull-request activity is also logged to the code-review mail list.

Current Pull Requests

Initial Setup

This set of tasks is performed after downloading the git tools. Refer to Development Environment above.

You should not have to perform these tasks more than once.

Setting Up the Git Enviroment

If you have not done so already, now is the time to set up your git environment. Refer to the GitHub Documentation for information on how to set up your Git environment. Please ensure that you register your ssh keys.

Fork the Trafodion Repository

You create a private fork of Trafodion on https://github.com/apache/incubator-trafodion. Use the fork button top-right on the page to create your fork, which will be named <your-git-id>_fork.

The following examples use trafdeveloper to represent <your-git-id>.

Clone the Trafodion Repository

Use the git shell to perform this task.

# Move to the directory where you want to install the Trafodion source code.
cd mysource
# Clone the Trafodion source code
git clone git://git.apache.org/incubator-trafodion.git
# Register your fork as a remote branch
git remote add trafdeveloper_fork git@github.com:trafdeveloper/incubator-trafodion

At this point, you’ve finished all preparation steps. Now, you can start making changes.

Making Changes

Create a Task Branch

You create a task branch to make changes to the Trafodion source. Typically, we name the branches after the Jira we are working on. In this example, the Jira is: TRAFODION-1507.

# Ensure that you have the latest changes
git fetch --all
# Checkout source
git checkout -b TRAFODION-1507 origin/master

Note

The source tar file has been signed with pgp key A44C5A05, which is included in the download location's KEYS file

Change Recipes

The procedure to make changes depends on what type of problem or feature you’re working on.

Change Type Refer To
Code Modify Code
Documentation Modify Documentation
QA Tests Modify Tests
Web Site Modify Web Site

Commit Changes

Reminder

If making code changes: please ensure that you run the Regression Tests before committing changes.

Perform the following steps to commit your changes.

# Commit changes
git commit -a
# Dry-run check
git push -n trafdeveloper_fork HEAD
# Push changes to your private fork
git push trafdeveloper_fork TRAFODION-1507

Create Pull Request

Your changed code needs to be reviewed by a Trafodion committer. Therefore, you need to create a pull request for your private repositoryc.

# Generate pull request
git pull-request

Ensure that you include the Jira ID at the beginning of the title in your pull request. For example:

[TRAFODION-1507] Explanation of the changes you made.

Automated Tests are normally triggered to run on every pull request. If you have modified the documentation or the web site, then you can skip the automated testing by adding the following phrase to the comments of the pull request:

jenkins, skip test

Review Comments

The pull request gets reviewed by the committers and once you get a consensus, then the committer merges your changes into the main incubator-trafodion branch.

Address Review Comments

Follow the GitHub conversation on your pull request (you should be automatically subscribed). Respond to questions and issues.

If you need to make additional changes, then do the following:

  1. Check out the code: git checkout TRAFODION-1507
  2. Make the requested changes.
  3. Run regression tests.
  4. Commit the changes: git commit -a
  5. Push the changes back to your private git fork: git push trafdeveloper_fork TRAFODION-1507

Merge Changes

If all is well, a committer will merge your change into the Apache repository, which is mirrored on github.

You may be asked to close out the JIRA or other follow up.

Your change is done. Thanks for your contribution to Trafodion.

Automated Tests

Automated tests take several hours to complete from when your pull-request was approved by a committer or updated with a new commit.

Normally, the Traf-Jenkins user will post a message in the pull-request with a link to the results. You can also check the Jenkins server to see the status even before the tests are finished. Look in the Build History table for the build/test job that matches your pull-request. For example, the master branch tests are located at: https://jenkins.esgyn.com/job/Check-PR-master/

Reviewing Logs

There are two approaches to reviewing logs.

Approach 1

  • The first two columns in build-job table are links to the specific sub-job. Clicl on the link to drill down.
  • The console log of each job has a link to the log file directories (close to the top). Look for Detailed logs.

Approach 2

More Information

The check tests do not include all of the automated daily tests. If you (or another contributor) want, you can run additional tests on the pull request. Refer automated test setup (TBD) for more information.

Back to top


Disclaimer: Apache Trafodion is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache, Apache Maven, Apache Maven Fluido Skin, the Apache feather logo, the Apache Maven project logo and the Apache Incubator project logo are trademarks of The Apache Software Foundation.