DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. CI Tools: Anti-Patterns

CI Tools: Anti-Patterns

Ben Wootton user avatar by
Ben Wootton
·
Oct. 24, 12 · Interview
Like (0)
Save
Tweet
Share
8.73K Views

Join the DZone community and get the full member experience.

Join For Free

The benefits of continuous builds are so obvious, widely documented and experienced nowadays that anyone with even a passing interest in agile process improvement, a continuous integration server will be one of the first things they set up in their teams.

However, these same teams are often not using the investment in setting up and running continuous integration to it’s full potential.

Here’s a few mistakes and anti patterns that I have come across and read about:

Inadequate Tests

If you do not have enough automated tests in your code base, your continuous integration server is reduced to a fancy shared compiler.

The aim of continuous integration is not only to check that your code continuously compiles, but also to check that the integrated code base continuously holds a certain degree of quality as changes are committed by various developers and those changes interact and intersect.

The only way to practically achieve this is by judiciously implementing lots of unit tests, integration tests, and if possible, automated acceptance tests which can be ran against each build.

Infrequent Runs

Many teams do a daily or twice daily build.  In my experience, this can reduce the value of the continuous integration process as feedback on your check-ins can be too infrequent, and people tend to batch check-ins right before the build.

Ideally, we want people integrating with the shared build early and often, bringing forward as far as possible feedback from the integration process.

This drastically improves the potential for people to be working on the same areas of the code base without treading on each others toes.

Infrequent Commits

Related to the above is the fact that if developers are not committing to the code base frequently (perhaps due to practices such as feature branching) then code is not pushed into the integration server and is not being tested early enough.

If developers are working on complex features, they may find that their code is off of the integrated path that is being tested for days or even weeks at a time, increasing the chance of problems when it comes to merge or test the code later to the release.

No Continuous Deployment

If you have gone to the trouble of setting up a continuous integration server, but do not have a continuous deployment into some environment, your CI server is then effectively just reduced to a fancy shared compiler and test runner.

By frequently deploying the output of your continuous integration process into some environment, you’ll start to realise the benefits in terms of giving your users working software, and bringing forward the stage where you can begin to run acceptance tests and manual tests against the product.

Continuous Integration/Deployment Anti-pattern Integration Testing

Published at DZone with permission of Ben Wootton, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Orchestration Pattern: Managing Distributed Transactions
  • Introduction Garbage Collection Java
  • Configure Kubernetes Health Checks
  • Host Hack Attempt Detection Using ELK

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: