Questions tagged [continuous-integration]

In software engineering, continuous integration (CI) implements the continuous building and automated testing of the full software product on a frequent schedule. At least once a day, often several times a day and sometimes as often as after every check in to the version control system.

Filter by
Sorted by
Tagged with
4
votes
2answers
148 views

Should Docker be used in a Windows Production environment?

As my team's microservice architecture grows, as does the pain of manually deploying each individual service in the application. I've played with Docker before and am now learning to leverage the ...
1
vote
3answers
121 views

How to create a release while implementing CI?

It may be a pretty simple question, but if I understand the concepts correctly, I can't really grasp how are you supposed to create releases with CI. Basically, if you merge unfinished branches into ...
-3
votes
3answers
98 views

How do you test that an API wasn't broken by a change?

I have an infrastructure package that multiple projects depend upon. This package is supposed to be a stable API shared by those projects. I want to know if a change made in the package has broken ...
0
votes
2answers
54 views

Is this Git flow suitable to manage merges and deployments?

We have prepared a Git flow with teammates, and I wonder if it is sustainable. We want to keep committing on both dev and feature branches. Also, we we want to avoid facing with conflicts during ...
1
vote
0answers
30 views

Build & deploy individual apps from a monorepo

My Proposed Monorepo Architecture This layout is what I've come up with from reading through tons of articles and being convinced that Nx suits many of our needs where I work. The layout works fine ...
-2
votes
1answer
71 views

To lint on the client, or the server?

I am debating two strategies for setting up a linter for my team's github repository. Is strategy #1 standard practice, or not? #1 - Set up a pre-commit hook that runs the linter #2 - My team will ...
0
votes
0answers
26 views

Should I put build and deploy scripts as a git submodule to application repo?

Our build-deploy repo consist of scripts that would build and deploy our application. (Dockerfile, Kubernetes Manifest, Ansible for generating app config). I plan to make it a submodule under ...
1
vote
1answer
249 views

What's the best practice to use semantic-release to update version number in a node.js or frontend project

I'm using semantic-release to auto find out the next version based on the git commit. It's working fine with creating new version, upload to npm and create new git tag. And semantic-release is ...
1
vote
2answers
119 views

Is there a pattern for unit/integration testing where tests that are higher level are intended to act as “gates” for other more specific tests?

The motivating concept here is that the fewer tests you have, the faster your test suite runs. This kinda feels like I'm basically describing smoke tests, but I think smoke tests and other tests are ...
1
vote
2answers
258 views

What's the best way to get GitLab Docker runners and Python tox to work together?

I'm trying to get a better understanding of how tox and GitLab CI (with docker runners) would work together, as they seem to have a bit of overlap in what each does. I think I may be missing something ...
52
votes
11answers
10k views

If two individual branches pass unit tests, once they're merged, is the result also guaranteed to pass unit tests?

Suppose we have two branches A and B which have been forked from master. Both branches A and B make some changes and implement some unit tests. They pass all current and new tests, then are merged ...
-1
votes
1answer
46 views

Are DB integration tests relevant to test DB schema (and worth being impl.) when being run in a CI pipeline? If not when are they?

This is something that is puzzling me a bit. I am seeing some people who like to implement DB-related integration tests (in the case of BLOBAs) to test the insertion with a Legacy DB in a CI pipeline, ...
-2
votes
1answer
128 views

First time teamwork (PHP): version control and continuous integration?

A colleague and I are going to be working together on a single project for the first time. This raises a few technical questions for me. Like how. I think a version control system is a must now, if it ...
1
vote
1answer
48 views

Single Build Command / Continuous Integration

I was reading the Continuous Integration by Martin Fowler article yesterday, the article is from 2006 but I think it is still very applicable today, the statement around a single command stuck in my ...
2
votes
1answer
452 views

Should a large number of system tests be part of the build?

I believe extensive automated unit tests should be part of the build. However the testing pyramid suggests that there should be a much smaller number of system tests. Should an automatic build include ...
0
votes
2answers
124 views

What is the relationship between continuous integration and git hooks?

I'm trying to get into the habit of making sure that each master commit to a repository I work on does not break any existent tests. In my current flawed workflow, there are some intermediate commits ...
0
votes
0answers
30 views

How to version k8s yaml files and keep them in sync with the cluster in the cloud?

Intro When a developer deploy his code, the ci will execute kubectl set image deployment/gcloud-example gcloud-example=stavalfi/gcloud-example:<new-tag>. But the ci won't change the tag in the ...
1
vote
1answer
158 views

Continuous Integration practices for forked repository

We have an on-premises BitBucket server with a git repo for an embedded device. We use a multi-branch pipeline in Jenkins to: Build and run tests Build the firmware (and a little supporting PC tool) (...
-4
votes
1answer
94 views

Best practice for organizing build products of dependencies and project code in your repo source tree?

I've checked quite a few related questions on source tree organization, but couldn't find the answer for my exact need: How should I organize my source tree? What's the best structure for a ...
2
votes
1answer
80 views

How should one perform a major refactor in parallel with continuous delivery of new features?

Suppose you've been hired to perform a major refactor/rewrite of a large project that is already in production and maintained by a very small team. The scope of this rewrite is to the point where you ...
-3
votes
1answer
71 views

How to test dependencies between microservices?

We have two microservices A and B that are developed inhouse. A provides an API that B consumes. Let's assume that B has some specific integration tests that ensure that B is compatible with A. We ...
-4
votes
1answer
23 views

GitLab Pipeline set to Public but Behaves Private

I'm using GitLab for open-source projects, they are all configured with the same privacy settings. One of my projects however is acting as if I have Pipelines set to Only Project Members, even though ...
-2
votes
4answers
150 views

Is Continuous Integration nowadays intended as “Continuous Inspection”?

I've been reading a log about CI (mostly Addison-Wesley books) and taking "CI" courses. I see two clear distinctions between old books on CI and new ones: Old ones focus on "committing" or "pushing" ...
0
votes
1answer
30 views

Use CI to generate ER diagram and put it into readthedocs

I have an open source API server project on Github and I am trying to put it into continous integration. The project uses SQL Alchemy and I use ELAlchemy to manually generate a png database ...
1
vote
2answers
117 views

How to deploy pipeline rerun?

I have an application that's mostly one large data pipeline. That pipeline runs daily and stores processed data in the database (it takes the execution date as its argument). Occasionally the client ...
0
votes
0answers
25 views

How to design fan-out deployments for Docker containers?

I am designing an application that will run on AWS ECS. The app will be able to run with multiple configurations for jobs. There will be two packages on GIT; Config Repository Application It is a ...
1
vote
1answer
83 views

Implementing semver within a development pipeline when building libraries

This is not about the specification of semver itself (which is crystal clear), but rather about the best approach to implement it within a development pipeline when building libraries. TL;DR: who/...
0
votes
2answers
70 views

Best practices for python CD/CI with machines on-site at customer

I asked this question originally on StackOverflow, and was advised to post it here instead. My question is concerning the best practices for continuous deployment and continuous integration especially ...
1
vote
2answers
67 views

Should I pull to another job workspace or should I push from it the 2nd job dependencies?

I have a question regarding CI/CD procedure. I do have 2 Jenkins jobs, the 1st one will build a binary file who is a dependency to the 2nd job build successfully. Should I push this binary from 1st ...
1
vote
2answers
90 views

Testing Environment Variables Strategies

I am in the process of implementing an API for the OPTIONS request for a pre-flight check on CORS calls. The Allowed-Origins host between local, test and prod will all be different so I moved this to ...
1
vote
2answers
71 views

How do I maintain configuration in the case of multiple test environments and application instances

What's the best practice for maintaining app configuration for multiple test environments, (and production)? At the moment I am keeping all the config in the code repo (a bitbucket server). Configs ...
-2
votes
3answers
164 views

What's the proper order of stages in a CI build?

I've read some articles about CI/CD and find that a typical CI pipeline often includes Build, Test and Deploy. We also add Code Quality Scan stage to our pipeline. The question is that, what is the ...
1
vote
0answers
81 views

How to run the Unit Test on Master branch using hook before merging the incoming changes of other branches

We have project which have more than 500 unit test and run for hours through Jenkins CI pipeline. In case there is failure of single UNIT test we need to kick off the build job again. I want to run ...
3
votes
2answers
150 views

For Evolutionary Database Tools like Flyway or LiquidBase, it is better to integrate the tool or left it as a stand alone step in the CI process?

Although I believe my question is language and DB agnostic, I will provide the specifics technologies in this case study because it might help understanding my question (sorry for my English). It's ...
2
votes
8answers
438 views

Should automated testing be specified in software requirements?

When defining software requirements, should automated testing (unit and integration) be specified? I have not seen any guidance on this, and "testing" is not a functional requirement for the software. ...
0
votes
2answers
74 views

Exact gap from Continuous Integration to Continuous Delivery

I have read some blog articles, papers and books about Continuous Integration and Continuous Delivery, but I still can't find a point where you could say this is where CI ends and CD starts. I ...
6
votes
1answer
271 views

How to prevent CI/CD process from being suspended while big changes happen?

This is more of a procedure and maybe a philosophical problem. The development team I am in is divided into Scrum teams or Squads that work on the same product. Occasionally, either one of these ...
37
votes
11answers
7k views

Unexpected Code Coverage Reduction

I am adding unit tests to some existing code which initially was not tested at all. I have set up my CI system to fail builds where the code coverage percentage is reduced compared to previous build -...
1
vote
3answers
176 views

Why would you cut off your continuous integration system from the internet?

I read that Facebook's continuous integration environments are cut off from the internet for security and reliability reasons. What would these reasons be? Is this a common practice?
46
votes
9answers
9k views

How do we avoid CI-driven development…?

I'm working on a very large research-led open-source project, with a bunch of other regular contributors. Because the project is now quite big, a consortium (composed of two full-time employees and ...
1
vote
2answers
184 views

Where should I start with an Integration Test for a Legacy Software in .NET? [closed]

Currently, I'm planning a new project of CI/CD with Azure DevOps (with Git, already committed) for an old Solution, which contains 17 C# projects. Technically, we have access to the source code and it'...
2
votes
0answers
25 views

Deployment pipeline as a component of an application

I am writing a serverless application using AWS SAM. I am wondering, would it be a good idea to include in my template a definition of a CodePipeline (and CodeBuild for that matter) for deploying that ...
0
votes
1answer
138 views

Using a db as part of CI

I am designing a CI system where I need to leverage a database as part of the software build process for integration tests. Different developers on different branches of the same repo will want to run ...
2
votes
4answers
224 views

Finding Feature Bugs As Quickly As Possible

Currently, whenever I am developing a feature, I write the behaviour tests for it using mocks for our downstream services. These mocks are dumb always serve the same output. I faced something grave ...
10
votes
5answers
477 views

When do you have enough automatic testing to be confident in your continuous integration pipeline?

Continuous integration with testing is useful for making sure that you have "shippable" code checked in all the time. However, it is really difficult to keep up a comprehensive suite of tests and ...
4
votes
0answers
458 views

Efficiently sharing a large node_modules directory between TeamCity build agents

The CI flow for our Node.js app looks roughly like this: Currently, this all takes place in a single TeamCity 'job' with three 'steps' (the Test step runs 4 concurrent child processes). Problems ...
0
votes
0answers
34 views

Packaging for distribution: include CI config and other files the end user doesn't need in the package?

(Disclaimers: I have checked on Google and this site. I have read this answer, which is the only related one I could find here. Additionally, that answer is from 2017, and I wonder if things have ...
2
votes
1answer
113 views

Blue-Green Deployment - What about data updates?

A lot of articles online give very simple examples on Blue-Green deployments. However, how would data update be handled? Say I have a column called Category with values (A, B, C, D). In my next ...
1
vote
1answer
152 views

Is infrequent syncing in DVCS trunk based development similar to a long-lived feature branch in GitFlow?

I'm working on a project and trying to understand the differences and trade-offs between variations of trunk based development and feature branching like git flow so I can help implement an ...
2
votes
0answers
35 views

AWS codepipeline deployment

I currently have an AWS Codepipeline that is setup to automatically pull an Express, NodeJS API and deploy it with Lambda and API Gateway. It pulls the code from my GitHub repo production branch and ...

1
2 3 4 5
7