Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specs for Continous Integration and Code Reviews #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kba
Copy link
Member

@kba kba commented Jun 21, 2023

We briefly talked about those in the Tech Call today and decided to make these part of the spec, hence this PR.

I took the liberty of updating the list of CI providers (we do not use Travis CI anymore, but we do use Github Actions), otherwise they are unchanged from @mweidling's inital drafts.

@kba
Copy link
Member Author

kba commented Jul 5, 2023

Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have several suggestions for smaller changes. Maybe also fix the typo in the summary. Otherwise I appreciate this pull request.


* GitHub
* CircleCI
* Github Actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Github Actions
* GitHub Actions

* GitLab
* GitLab CI

The choice of a CI/CD tools heavily relies on your version control server as well as your project's requirements and your instution's infrastructure.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The choice of a CI/CD tools heavily relies on your version control server as well as your project's requirements and your instution's infrastructure.
The choice of a CI/CD tools heavily relies on your version control server as well as your project's requirements and your institution's infrastructure.

Comment on lines +25 to +36
- try to keep your pipelines fast to get rapid feedback. some aspects to consider is running the fastest test first (see below), using small images for your Docker containers, and caching your data.
- your CI/CD pipelines should be furnished with proper unit and integration tests. these should run as one of the first stages in your pipelines in order to detect defects early.
- the test stage should run on every push to the remote repository in order to make sure that a commit doesn't break anything.
- commit often in order to detect breaking changes early.
- run your fastest test first. if they fail, they fail early and save a lot of resources compared to running slower tests first.
- run your tests locally before running them via pipelines. this will save a lot of resources as well.
- commit often in order to detect breaking changes early.
- either minimize your branching model or make sure that the pipelines run on feature/bugfix branches as well. otherwise you might not notice breaking changes in time.
- ensure that the main functionality of your software is still up and running after having deployed (smoke testing).
- provide an easy way to rollback in case something goes really wrong, e.g. being able to re-deploy a previous release.
- reuse existing configuration, e.g. by leveraging CircleCI's orbs or GitLab templates.
- secure your pipelines. secret variable should be secret, and not everyone in your organization should have admin rights in your CI/CD environment.
Copy link
Contributor

@stweil stweil Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- try to keep your pipelines fast to get rapid feedback. some aspects to consider is running the fastest test first (see below), using small images for your Docker containers, and caching your data.
- your CI/CD pipelines should be furnished with proper unit and integration tests. these should run as one of the first stages in your pipelines in order to detect defects early.
- the test stage should run on every push to the remote repository in order to make sure that a commit doesn't break anything.
- commit often in order to detect breaking changes early.
- run your fastest test first. if they fail, they fail early and save a lot of resources compared to running slower tests first.
- run your tests locally before running them via pipelines. this will save a lot of resources as well.
- commit often in order to detect breaking changes early.
- either minimize your branching model or make sure that the pipelines run on feature/bugfix branches as well. otherwise you might not notice breaking changes in time.
- ensure that the main functionality of your software is still up and running after having deployed (smoke testing).
- provide an easy way to rollback in case something goes really wrong, e.g. being able to re-deploy a previous release.
- reuse existing configuration, e.g. by leveraging CircleCI's orbs or GitLab templates.
- secure your pipelines. secret variable should be secret, and not everyone in your organization should have admin rights in your CI/CD environment.
- Try to keep your pipelines fast to get rapid feedback. Some aspects to consider are running the fastest test first (see below), using small images for your Docker containers, and caching your data.
- Your CI/CD pipelines should be furnished with proper unit and integration tests. These should run as one of the first stages in your pipelines in order to detect defects early.
- The test stage should run on every push to the remote repository in order to make sure that a commit doesn't break anything.
- Commit often in order to detect breaking changes early.
- Run your fastest test first. If they fail, they fail early and save a lot of resources compared to running slower tests first.
- Run your tests locally before running them via pipelines. This will save a lot of resources as well.
- Commit often in order to detect breaking changes early.
- Either minimize your branching model or make sure that the pipelines run on feature/bugfix branches as well. Otherwise you might not notice breaking changes in time.
- Ensure that the main functionality of your software is still up and running after having deployed (smoke testing).
- Provide an easy way to rollback in case something goes really wrong, e.g. being able to re-deploy a previous release.
- Reuse existing configuration, e.g. by leveraging CircleCI's orbs or GitLab templates.
- Secure your pipelines. Secret variable should be secret, and not everyone in your organization should have admin rights in your CI/CD environment.

@stweil
Copy link
Contributor

stweil commented Jul 2, 2024

Meanwhile this PR is older than a year. Is there any chance that it will be merged (with my suggestions)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants