Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
MENDER_SERVER_REGISTRY=docker.io
MENDER_SERVER_ENTERPRISE_REGISTRY=registry.mender.io
MENDER_SERVER_REPOSITORY=mendersoftware
MENDER_SERVER_ENTERPRISE_REPOSITORY=mender-server-enterprise
MENDER_SERVER_TAG=main
# Tag for all mender-server images (OS and Enterprise).
#
# Deliberately do NOT set MENDER_IMAGE_REGISTRY or MENDER_IMAGE_REPOSITORY here:
# mender-server's base and enterprise compose files reuse those same two
# variables with different defaults (docker.io/mendersoftware vs
# registry.mender.io/mender-server-enterprise), so setting either one globally
# breaks the other flavour.
MENDER_IMAGE_TAG=main

# mongod 8.0 requires AVX; pin lower for runners that lack it.
MONGO_VERSION=7.0

MENDER_CLIENT_REGISTRY=docker.io
MENDER_CLIENT_ENTERPRISE_REGISTRY=registry.mender.io
Expand Down Expand Up @@ -37,11 +43,3 @@ MENDER_CONTAINER_MODULES_VERSION=main

# Version of the Mender Client "bundle"
MENDER_CLIENT_VERSION=main

# If MENDER_LEGACY_IMAGE is defined, the image reference uses
# the legacy format:
# * For enterprise, some images have their -enterprise suffix appended
# * Workflows worker uses the legacy workflows-worker image
# This will only work if MENDER_TAG < mender-3.7 and
# MENDER_ENTERPRISE_REPOSITORY=mendersoftware
# MENDER_LEGACY_IMAGE="true"
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ tags
/release-state.yml
/mender-demo-artifact.mender

/docker-compose.testing.yml
# Lock file created by the container manager when compose is driven from the
# repo root rather than tests/
/docker_lock

# Output of the old 'keygen' script, removed along with the demo composition
/keys-generated/

__pycache__
.cache
Expand All @@ -29,3 +34,6 @@ venv
# direnv Python virtualenv setup
*.direnv
*.envrc

# Materialised from the mender-testkit package by tests/conftest.py
tests/mender_server/
8 changes: 8 additions & 0 deletions .gitlab-ci-full-integration-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ test:integration:$CI_NODE_INDEX:
# jobs (e.g. a test that blocks forever) at 2h instead of burning the full
# default budget.
timeout: 2h
variables:
# No submodules needed: the backend composition arrives with the
# mender-testkit package, which conftest materialises before any test runs.
GIT_SUBMODULE_STRATEGY: none
before_script:
# These two variables would be set by GitLab CI "parallel" feature, and are used by our Pytest
# plugin to split the tests among the CI jobs. They get substituted by the generator.
Expand All @@ -23,10 +27,14 @@ test:integration:$CI_NODE_INDEX:
- echo "$REGISTRY_MENDER_IO_PASSWORD" | docker login registry.mender.io --username "$REGISTRY_MENDER_IO_USERNAME" --password-stdin
- echo "$DOCKER_HUB_PASSWORD" | docker login docker.io --username "$DOCKER_HUB_USERNAME" --password-stdin
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" --username "$CI_REGISTRY_USER" --password-stdin
# apk-requirements.txt carries skopeo, e2fsprogs-extra (debugfs) and iptables,
# all of which conftest now checks for before collecting.
- apk add $(cat ./tests/requirements-system/apk-requirements.txt)
- apk add py3-virtualenv screen
- python -m virtualenv /.venv
- source /.venv/bin/activate
# mender-testkit brings testutils, the Server facade and mender-server's
# compose files; this file carries everything else.
- pip3 install -r ./tests/requirements-python/python-requirements.txt
- pip3 install pyyaml
# Gitlab CI tends to set these DOCKER_ variables internally.
Expand Down
9 changes: 8 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ variables:
description: |
Number of parallel xdist jobs per CI job for integration tests.
Tests in parallel = CI_JOBS_IN_PARALLEL_INTEGRATION x XDIST_JOBS_IN_PARALLEL_INTEGRATION
value: 4

Lowered from 4 to 3 for the mender-server composition: an environment is
now 18 containers (23 for Enterprise) rather than ~14, mostly because
SeaweedFS replaces MinIO with four. 3 workers was measured to run cleanly on
8 cores / 11 GB available; 4 was not tested and would put ~92 containers on
one runner for the Enterprise setups. Worth re-tuning upwards once there is
evidence from the actual runner.
value: 3

DOCKER_VERSION:
description: "Docker version to use in jobs"
Expand Down
12 changes: 0 additions & 12 deletions cert/cert.crt

This file was deleted.

5 changes: 0 additions & 5 deletions cert/private.key

This file was deleted.

5 changes: 0 additions & 5 deletions common.yml

This file was deleted.

29 changes: 0 additions & 29 deletions config/traefik/static/traefik.yaml

This file was deleted.

95 changes: 0 additions & 95 deletions config/traefik/traefik.enterprise.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions config/traefik/traefik.middlewares.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions config/traefik/traefik.minio.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/traefik/traefik.tls.yaml

This file was deleted.

Loading