Introducing an Architectural Conformance Process in Continuous Integration
Arthur F. Pinto (Federal University of Lavras, Brazil)
Ricardo Terra (Federal University of Lavras, Brazil)
Eduardo Guerra (Instituto Nacional de Pesquisas Espaciais (INPE), Brazil)
Fernanda São Sabbas (Instituto Nacional de Pesquisas Espaciais (INPE), Brazil)
Abstract: As software evolves, developers usually introduce deviations from the planned architecture, due to unawareness, conflicting requirements, technical difficulties, deadlines, etc. This occurs in systems with an explicit division of responsibility between groups of classes, such as modules and layers. Although there are architectural conformance tools to identify architectural violations, these tools are underused and detected violations are rarely corrected. To address these shortcomings, this article introduces an architectural conformance process into continuous integration. Thus, the conformance process is triggered by every code integration and, when no violations are detected, the code is integrated into the repository. The implemented tool, called ArchCI, supports the proposed solution using DCL (Dependency Constraint Language) as underlying conformance technique and Jenkins as the Continuous Integration server. We also evaluated the applicability of our proposed solution in a real-world Java project where we incrementally introduced 44 constraints through six releases. As the result, our process was able to detect 42 violations, which have always been fixed before the ensuing release.
Keywords: architectural conformance, continuous integration, software architecture erosion
Categories: D.2, D.2.2, D.2.7, D.2.9