Sunday, May 19, 2024
HomeSoftware EngineeringLaunch of SCAIFE System Model 2.0.0 Offers Help for Steady-Integration (CI) Techniques

Launch of SCAIFE System Model 2.0.0 Offers Help for Steady-Integration (CI) Techniques

The Supply Code Evaluation Built-in Framework Atmosphere (SCAIFE) system is a analysis prototype for a modular structure. The structure is designed to allow all kinds of instruments, programs, and customers to make use of synthetic intelligence (AI) classifiers for static-analysis outcomes (meta-alerts) at comparatively low price and energy. SCAIFE makes use of automation to scale back the numerous guide effort required to adjudicate the big variety of meta-alerts that static-analysis instruments produce. In June 2021, we launched Model 2.0.0 of the total SCAIFE system with new options for working with continuous-integration (CI) programs. On this weblog put up, I describe the important thing options on this new launch and the standing of evolving SEI work on SCAIFE.

SCAIFE for Steady Integration

Steady integration (CI) has historically been outlined as “the observe of merging all builders’ working copies to a shared mainline a number of occasions a day” and normally contains automated builds and exams by a CI server. In a earlier SEI weblog put up, Steady Integration in DevOps, C. Aaron Cois wrote,

This continuous merging prevents a developer’s native copy of a software program undertaking from drifting too far afield as new code is added by others, avoiding catastrophic merge conflicts…If a failure is seen, the event workforce is predicted to refocus and repair the construct earlier than making any extra code modifications. Whereas this will appear disruptive, in observe it focuses the event workforce on a singular stability metric: a working automated construct of the software program.

We now have enabled the SCAIFE system to work with a spread of variations of CI, together with these which might be broader than every day merges of developer branches on a shared server and CI-server automated testing. CI can vary from every day merges by builders after they commit modifications to a code repository server, to much less frequent merges. An instance of a much less frequent merge is when a CI construct mechanically exams developer branches on the CI server till all exams cross, and solely after that the developer department is merged into the mainline department, which could for instance take per week or longer. We additionally allow testing by improvement organizations that don’t even use a CI server but, however which have generated totally different variations of the codebase and the static-analysis software output on each variations of the codebase. This method is a much less automated model of updates {that a} CI server gives to SCAIFE mechanically, and that SCAIFE makes use of to replace its undertaking info, together with details about static-analysis outcomes.


Model 2.0.0 of SCAIFE contains 4 variations of a hands-on CI-SCAIFE integration take a look at that demonstrates options that allow SCAIFE to work with CI programs. The variations differ by the quantity of automation that the tester is ready to use. For instance, some testers could not have a CI server obtainable or could not have sufficient obtainable time (a couple of half day) to run the total CI-server model of the demo. Customers create a SCAIFE CI undertaking utilizing a git code repository, the place a brand new code decide to the code repository mechanically causes an replace—code commit and new static-analysis software output—to be despatched to the SCAIFE DataHub module (see Determine 1 under), which processes the CI replace.

Determine 1 under reveals the structure of the SCAIFE system with modifications for CI-SCAIFE integration:


Determine 1: Modified SCAIFE Structure for Integration with a CI System

Determine 2 under reveals a imaginative and prescient that integrates classifier use with CI programs.


Determine 2: Integration of Classifier Use with CI Techniques

Determine 2 reveals CI workflow, the place a member of the event and take a look at groups develops code on a brand new department (or branches) that implements a brand new function or a bug repair. The coder checks their supply code into the repository (e.g., git commit and git push). Subsequent, the CI server exams that code, first establishing what is required to run the exams (e.g., creating information and folders to document logs and take a look at artifacts, downloading pictures, creating containers, working configuration scripts), then beginning the automated exams. Within the brief CI timeframes, important exams have to be run, together with

  • unit exams that examine that small bits of performance proceed to work,
  • integration exams that examine that bigger components of the system performance proceed to work together as they need to, and typically,
  • stress exams to make sure that the system efficiency has not grow to be a lot worse.

Typically (however not all the time) static evaluation is completed throughout the CI-server testing. When this take a look at happens, it produces output with many alerts. Some meta-alerts could also be false positives, and all of them should (usually) be examined manually to adjudicate true or false positives. In very brief CI timeframes, nevertheless, coping with static-analysis alerts is of low precedence for improvement and take a look at groups. Any failed unit or integration take a look at have to be mounted earlier than the brand new code department might be merged with the event department, so these are of excessive precedence. Past that, there are main time pressures from the CI cycle and the opposite builders or testers who want that bug repair or a brand new function added so it doesn’t block their very own work or trigger a merge battle sooner or later.

To utilize static evaluation sensible throughout brief CI builds, we

  • enabled diff-based adjudication cascading within the SCAIFE DataHub, static-analysis classification that automates the dealing with of some outcomes;
  • enabled the consumer to set thresholds for classification confidence, above which the outcomes are thought of excessive confidence and under which they’re thought of indeterminate; and
  • described a way by which customers can deal with a small variety of code-flaw circumstances throughout CI builds briefly time frames. At different CI levels, customers can widen such a set of code flaws and nonetheless use SCAIFE, in a static-analysis adjudication course of that takes extra time to handle a wider vary of potential code-flaw circumstances reported from static-analysis outcomes.

The DataHub Module API gives a CI endpoint that automates evaluation utilizing SCAIFE if a bundle is configured to make the most of CI integration. Configuring a bundle for CI integration implies that the DataHub Module will straight hook up with a git-based version-control system to investigate the supply code used within the SCAIFE utility. After static evaluation runs on the supply code, the outcomes are despatched to the DataHub API to start automated processing with SCAIFE.

The DataHub updates per-project information, together with all details about information and features; the units of static-analysis alerts and meta-alerts; and adjudication cascading. Adjudication cascading includes matching static-analysis outcomes from the earlier code model with new static-analysis outcomes for the brand new code model. An identical meta-alert “cascades” any earlier guide adjudication of true or false to the brand new meta-alert and sends the up to date undertaking information to the SEI CERT Division‘s SCALe (Supply Code Evaluation Laboratory) software. SCALE is a graphical consumer interface (GUI) entrance finish for the SCAIFE system (proven on the high of Determine 1 above) that auditors use to export project-audit info to a database or file.

We offer variations of the demo exams, to allow customers to run the kind of CI-SCAIFE demo take a look at acceptable to their programs and testers. The totally different take a look at model directions are for testers who

  • have their very own CI programs and git code-repository servers,
  • have git code-repository servers however no CI, or
  • haven’t got entry to a CI or git code-repository server.

There are 4 various kinds of demos that customers can run:

  1. If the consumer has a CI system and needs to totally train the demo, this model contains use of a CI server, a git repository, and the Rosecheckers static-analysis software.
  2. For customers who’ve only some minutes, that is the quickest demo, the place a script does many of the steps: Customers comply with the steps proven right here: Demo with Utterly Automated Demo Script. The script makes use of the preset information with two code variations and Rosecheckers output that’s offered for every model of supply code, and the script itself creates an area git repository. Code-terminal output explains the importance of what occurs at steps of the demo, verifies counts of meta-alerts for each variations of the codebase, and explains the adjudication-cascading outcomes.
  3. To train the quickest non-scripted demo requiring the smallest quantity of effort, customers use the preset information at Demo with out utilizing a CI Server and comply with Method 1 utilizing the Rosecheckers output that’s offered for every model of supply code. This method has the consumer edit a offered shell script, to specify a token, URL, git commit hash, and different information gathered throughout specification of the CI Venture in SCAIFE whereas following the directions. The consumer then executes the shell script.
  4. To train the second-fastest non-scripted demo requiring a bit extra effort than (3), customers use the preset information in Demo with out utilizing a CI Server and comply with Method 2 utilizing the Rosecheckers output that’s offered for every model of supply code. This method makes use of the DataHub container’s Swagger consumer interface, plus the static-analysis outcomes, to submit static-analysis outcomes to SCAIFE.

In creating the demos, we additionally revealed the Docker container picture for the Rosecheckers static-analysis software (accessible with command-line set up command: docker pull and the code at, with an up to date README file. Our undertaking workforce created the brand new Docker-container-image publication, which allows would-be customers to shortly and simply begin to use Rosecheckers with a comparatively low-bandwidth obtain and quick container begin on any base machine. We revealed it to allow this tooling to be straightforward to entry and arrange as quick as doable, for our collaborators to run and take a look at some variations of our SCAIFE-CI demo extra shortly.

Standing of Launch and Deliberate Subsequent Steps

We’re within the strategy of sharing the total SCAIFE system with DoD organizations and DoD contractors in order that we will obtain suggestions and assessment. We additionally present entry to SCALe—one among 5 SCAIFE modules, the user-interface (UI) module, and the SCAIFE API, to most of the people at We welcome take a look at and assessment suggestions, in addition to potential collaborations! DoD and DoD contractor organizations thinking about testing SCAIFE, please contact us and we are going to get you a duplicate of the total SCAIFE system.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments