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
0 votes
3 answers
88 views

Improve CI process by testing against docker image and fail docker build if test fails

Our CI process goes as this cycle (I think it is quite normal), unit test => build docker image => run function test against the image => if test fails remove the failed docker image, figure ...
user avatar
0 votes
2 answers
90 views

Should integration tests run after updating the feature branch from master?

We have a suite of integration tests that take about 2 hours to complete. Currently our flow is that each feature branch runs the integration tests, and only if the branch is updated from master and ...
user avatar
0 votes
1 answer
46 views

Azure DevOps Change nuget.config in CI/CD process

I'm currently working on a project which uses azure function apps, we also create a data access layers for each function app which are built as nuget packages and are then published to a private nuget ...
user avatar
0 votes
2 answers
57 views

How to reset state of exernal services when running Acceptance tests

What are the generic patterns and best practices for resetting state of a database, storage, external service, etc, in Acceptance Tests? I'm struggling with spaghetti, living in acceptance tests. It ...
user avatar
  • 111
1 vote
2 answers
66 views

How to use release toggles with Acceptance Test Driven Development?

One of the advantages of feature / release toggles is that you can integrate and deploy code without releasing it. But how does that work with ATDD? If I write some tests that are failing, because I'm ...
user avatar
-1 votes
2 answers
110 views

Nightly build, GitFlow and PR [closed]

My customer decided to have an automatic nightly build based on develop branch. We usually make a feature branch (and if it is necessary we provide a release compiled manually on that branch) and when ...
user avatar
  • 107
0 votes
1 answer
79 views

How to manage concurrent build & test toolchains in (embedded) software development?

TL;DR: How do you manage the complex development toolchain in different (embedded) projects? In our company we are discussing the toolchain setups in different development teams and how to work ...
user avatar
  • 109
0 votes
0 answers
39 views

i18n extraction and redeployment using Gitlab CI/CD

I'm getting into Gitlab Auto-DevOps to deploy code into K8s and I'm struggling to figure out a flow to extract translations from my application using CI/CD and update my deployment when new ...
user avatar
2 votes
0 answers
73 views

CI/CD artifacts -- should they include runtime?

It seems best practice is to build the final artifact, in full, at the earliest stage. And then the stages that follow (testing, deployment) should use same artifact throughout, to protect against ...
user avatar
0 votes
2 answers
124 views

Platform that converts Documentation into Unit/Integration Tests? [closed]

I've seen many SO questions around auto-generating unit tests, or documenting unit tests, but I'd like to go the reverse direction. What I'd REALLY like is to have folks (devs, tech writers, etc) ...
user avatar
  • 127
1 vote
1 answer
99 views

Python Unit Tests Mocking Imports - Removing Dependencies for CI/CD

I have a project written in python that I would like to create unit tests on. This project has a dependency on a database project which is a sort of abstraction layer to data connections. The issue ...
user avatar
2 votes
1 answer
209 views

Setting up tests and a continuous integration pipeline in a polyrepo environment

In the past I've mainly worked with monorepos, specifically a Vue.js app that was served by a rails backend. Setting up E2E/integration tests in the CI was simple, because all the required parts were ...
user avatar
0 votes
2 answers
139 views

What is the current definition of continuous integration?

It seems that there are at least two possible definitions of continuous integration: Frequent merging of a codebase to a common codebase (e.g. daily merge to the main branch of a VCS server). ...
user avatar
  • 570
-1 votes
1 answer
59 views

Service-specific releases vs Releasing all services on every change

The following applies to a platform/company at an early stage in its life, moving quickly and cheaply with a small engineering team. Imagine a platform with the following components: Cloud ...
user avatar
  • 207
60 votes
5 answers
9k views

Is the usage of random values in unit testing a good practice? [duplicate]

Having worked in complex solutions that had Unit Tests and Integration Test in the CI/CD pipeline, I recall having a tough time with tests that failed randomly (either due to random values being ...
user avatar
0 votes
1 answer
68 views

Modernizing a legacy source control / deployment infrastructure

I've got a large, old application with a clunky, extremely manual deployment process (essentially, tribal knowledge combined with random scripts / build jobs scattered across servers). The application ...
user avatar
1 vote
0 answers
145 views

Integration Testing Stripe Payments - stripe-mock or Stripe's test mode?

I'm building an automated test suite to integration/feature test my organization's Stripe implementation within a GitLab CI pipeline. We're running Laravel 8 and using phpunit for testing. Within this ...
user avatar
-1 votes
2 answers
241 views

Configuration of a staging environment vs production environment

For our software development process we used to set up 3 environments : integration , QA and master. Recently it was decided to add a new staging environment that shall mirror the production ...
user avatar
  • 19
3 votes
3 answers
458 views

How to deal with SemVer in a build number based company

My company uses Major.Minor.Patch.Build for our version numbers. When a new release is started, the Major.Minor.Patch part is set. Then as work is done, the build number goes up until a build is ...
user avatar
  • 3,968
0 votes
1 answer
195 views

How to make the tests run faster?

I develop my current project with a very strict approach to TDD and try to make it as close to Kent Beck's TDD By Example book. So right now I've got code coverage of 93%, with 1290 unit test cases, ...
user avatar
1 vote
2 answers
124 views

Automating performance tests for python code in a CI

My apologies in advance for a question that might seem trivial - I am a mostly solo dev in academic environment and a lot of industry best practices don't necessarily make it here. Several of my ...
user avatar
1 vote
3 answers
407 views

Clarifying the steps in a CI/CD, but namely if if unit testing should be done building a Docker image or before

I'm building at a Build and Deployment pipeline and looking for clarification on a couple points. In addition, I'm trying to implement Trunk Based Development with short-lived branches. The process I ...
user avatar
  • 121
3 votes
1 answer
168 views

Efficiently updating a common repository used by multiple other repositories

Suppose we have a project consisting of many microservices, all of which use a common library. The common library has been put into a separate git repository, and each microservice is also in its own ...
user avatar
  • 1,183
-2 votes
3 answers
98 views

Nightly Builds Test against real database

Is it a good practice to hit actual database for Integrations test(Not prod but pre prod DB) for Jenkins Night builds? The reason I am asking this is because our DAO uses procedures to perform simple ...
user avatar
2 votes
1 answer
232 views

Which git workflow for micro-services and testing

I would like to know what best practices exists out there with regard to micro services, CI/CD, testing and Git workflow, especially the way of working given the constraints that a) nothing should ...
user avatar
  • 137
0 votes
2 answers
97 views

How to address a common problem with automated testing on remote machine

CI/CD options such as bitbucket pipelines and github actions make use of virtual machines called runners. Changes in source code trigger the runners, which in turn trigger a set of commands. The ...
user avatar
  • 213
5 votes
2 answers
1k 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 ...
user avatar
1 vote
3 answers
155 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 ...
user avatar
-3 votes
3 answers
132 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 ...
user avatar
  • 2,932
0 votes
2 answers
69 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 ...
user avatar
1 vote
0 answers
122 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 ...
user avatar
  • 111
-1 votes
1 answer
263 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 ...
user avatar
  • 11
1 vote
1 answer
2k 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 ...
user avatar
  • 129
1 vote
2 answers
137 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 ...
user avatar
  • 499
3 votes
2 answers
1k 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 ...
user avatar
57 votes
11 answers
13k 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 ...
user avatar
  • 711
-1 votes
1 answer
57 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, ...
user avatar
  • 311
-2 votes
1 answer
132 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 ...
user avatar
2 votes
1 answer
53 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 ...
user avatar
2 votes
1 answer
458 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 ...
user avatar
  • 155
0 votes
2 answers
793 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 ...
user avatar
1 vote
1 answer
500 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) (...
user avatar
-4 votes
1 answer
489 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 ...
user avatar
  • 95
2 votes
1 answer
97 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 ...
user avatar
  • 329
-3 votes
1 answer
95 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 ...
user avatar
  • 7
-4 votes
1 answer
39 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 ...
user avatar
-2 votes
4 answers
177 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" ...
user avatar
  • 125
0 votes
1 answer
63 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 ...
user avatar
0 votes
2 answers
182 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 ...
user avatar
  • 17
1 vote
1 answer
147 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/...
user avatar
  • 610

1
2 3 4 5
8